[vala/0.10-parallel: 30/32] CodeWriter: Do not do any sorting in FAST mode



commit 683fdf86039ade0da7be35c711000c0af2e53823
Author: Jürg Billeter <j bitron ch>
Date:   Fri Sep 10 17:34:43 2010 +0200

    CodeWriter: Do not do any sorting in FAST mode
    
    Order of virtual methods matters for fast-vapis

 vala/valacodewriter.vala |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala
index 3b2a123..9a07c83 100644
--- a/vala/valacodewriter.vala
+++ b/vala/valacodewriter.vala
@@ -357,6 +357,14 @@ public class Vala.CodeWriter : CodeVisitor {
 	}
 
 	void visit_sorted (List<Symbol> symbols) {
+		if (type != CodeWriterType.EXTERNAL) {
+			// order of virtual methods matters for fast vapis
+			foreach (Symbol sym in symbols) {
+				sym.accept (this);
+			}
+			return;
+		}
+
 		var sorted_symbols = new ArrayList<Symbol> ();
 		foreach (Symbol sym in symbols) {
 			int left = 0;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]