vala r1962 - in trunk: . gobject



Author: juergbi
Date: Mon Nov  3 08:10:23 2008
New Revision: 1962
URL: http://svn.gnome.org/viewvc/vala?rev=1962&view=rev

Log:
2008-11-03  JÃrg Billeter  <j bitron ch>

	* gobject/valaccodearraymodule.vala:
	* gobject/valaccodeassignmentmodule.vala:
	* gobject/valaccodedynamicpropertymodule.vala:
	* gobject/valaccodedynamicsignalmodule.vala:
	* gobject/valaccodegenerator.vala:
	* gobject/valaccodeinvocationexpressionmodule.vala:
	* gobject/valaccodememberaccessmodule.vala:
	* gobject/valaccodemethodmodule.vala:
	* gobject/valaccodestructmodule.vala:
	* gobject/valadbusclientmodule.vala:
	* gobject/valadbusservermodule.vala:
	* gobject/valagasyncmodule.vala:
	* gobject/valagobjectmodule.vala:
	* gobject/valagsignalmodule.vala:
	* gobject/valagtypemodule.vala:

	Combine internal modules by inheritance to improve performance


Modified:
   trunk/ChangeLog
   trunk/gobject/valaccodearraymodule.vala
   trunk/gobject/valaccodeassignmentmodule.vala
   trunk/gobject/valaccodedynamicpropertymodule.vala
   trunk/gobject/valaccodedynamicsignalmodule.vala
   trunk/gobject/valaccodegenerator.vala
   trunk/gobject/valaccodeinvocationexpressionmodule.vala
   trunk/gobject/valaccodememberaccessmodule.vala
   trunk/gobject/valaccodemethodmodule.vala
   trunk/gobject/valaccodestructmodule.vala
   trunk/gobject/valadbusclientmodule.vala
   trunk/gobject/valadbusservermodule.vala
   trunk/gobject/valagasyncmodule.vala
   trunk/gobject/valagobjectmodule.vala
   trunk/gobject/valagsignalmodule.vala
   trunk/gobject/valagtypemodule.vala

Modified: trunk/gobject/valaccodearraymodule.vala
==============================================================================
--- trunk/gobject/valaccodearraymodule.vala	(original)
+++ trunk/gobject/valaccodearraymodule.vala	Mon Nov  3 08:10:23 2008
@@ -27,7 +27,7 @@
 /**
  * The link between an assignment and generated code.
  */
-public class Vala.CCodeArrayModule : CCodeModule {
+public class Vala.CCodeArrayModule : CCodeInvocationExpressionModule {
 	public CCodeArrayModule (CCodeGenerator codegen, CCodeModule? next) {
 		base (codegen, next);
 	}

Modified: trunk/gobject/valaccodeassignmentmodule.vala
==============================================================================
--- trunk/gobject/valaccodeassignmentmodule.vala	(original)
+++ trunk/gobject/valaccodeassignmentmodule.vala	Mon Nov  3 08:10:23 2008
@@ -27,7 +27,7 @@
 /**
  * The link between an assignment and generated code.
  */
-public class Vala.CCodeAssignmentModule : CCodeModule {
+public class Vala.CCodeAssignmentModule : CCodeMemberAccessModule {
 	public CCodeAssignmentModule (CCodeGenerator codegen, CCodeModule? next) {
 		base (codegen, next);
 	}

Modified: trunk/gobject/valaccodedynamicpropertymodule.vala
==============================================================================
--- trunk/gobject/valaccodedynamicpropertymodule.vala	(original)
+++ trunk/gobject/valaccodedynamicpropertymodule.vala	Mon Nov  3 08:10:23 2008
@@ -26,7 +26,7 @@
 /**
  * The link between a dynamic property and generated code.
  */
-public class Vala.CCodeDynamicPropertyModule : CCodeModule {
+public class Vala.CCodeDynamicPropertyModule : CCodeArrayModule {
 	int dynamic_property_id;
 
 	public CCodeDynamicPropertyModule (CCodeGenerator codegen, CCodeModule? next) {

Modified: trunk/gobject/valaccodedynamicsignalmodule.vala
==============================================================================
--- trunk/gobject/valaccodedynamicsignalmodule.vala	(original)
+++ trunk/gobject/valaccodedynamicsignalmodule.vala	Mon Nov  3 08:10:23 2008
@@ -26,7 +26,7 @@
 /**
  * The link between a dynamic signal and generated code.
  */
-public class Vala.CCodeDynamicSignalModule : CCodeModule {
+public class Vala.CCodeDynamicSignalModule : CCodeDynamicPropertyModule {
 	public CCodeDynamicSignalModule (CCodeGenerator codegen, CCodeModule? next) {
 		base (codegen, next);
 	}

Modified: trunk/gobject/valaccodegenerator.vala
==============================================================================
--- trunk/gobject/valaccodegenerator.vala	(original)
+++ trunk/gobject/valaccodegenerator.vala	Mon Nov  3 08:10:23 2008
@@ -143,6 +143,7 @@
 	public Set<string> wrappers;
 
 	public CCodeGenerator () {
+		/* included by inheritance
 		head = new CCodeBaseModule (this, head);
 		head = new CCodeStructModule (this, head);
 		head = new CCodeMethodModule (this, head);
@@ -157,6 +158,7 @@
 		head = new GSignalModule (this, head);
 		head = new GAsyncModule (this, head);
 		head = new DBusClientModule (this, head);
+		*/
 		head = new DBusServerModule (this, head);
 
 		predefined_marshal_set = new HashSet<string> (str_hash, str_equal);

Modified: trunk/gobject/valaccodeinvocationexpressionmodule.vala
==============================================================================
--- trunk/gobject/valaccodeinvocationexpressionmodule.vala	(original)
+++ trunk/gobject/valaccodeinvocationexpressionmodule.vala	Mon Nov  3 08:10:23 2008
@@ -24,7 +24,7 @@
 using GLib;
 using Gee;
 
-public class Vala.CCodeInvocationExpressionModule : CCodeModule {
+public class Vala.CCodeInvocationExpressionModule : CCodeAssignmentModule {
 	public CCodeInvocationExpressionModule (CCodeGenerator codegen, CCodeModule? next) {
 		base (codegen, next);
 	}

Modified: trunk/gobject/valaccodememberaccessmodule.vala
==============================================================================
--- trunk/gobject/valaccodememberaccessmodule.vala	(original)
+++ trunk/gobject/valaccodememberaccessmodule.vala	Mon Nov  3 08:10:23 2008
@@ -23,7 +23,7 @@
 
 using GLib;
 
-public class Vala.CCodeMemberAccessModule : CCodeModule {
+public class Vala.CCodeMemberAccessModule : CCodeMethodModule {
 	public CCodeMemberAccessModule (CCodeGenerator codegen, CCodeModule? next) {
 		base (codegen, next);
 	}

Modified: trunk/gobject/valaccodemethodmodule.vala
==============================================================================
--- trunk/gobject/valaccodemethodmodule.vala	(original)
+++ trunk/gobject/valaccodemethodmodule.vala	Mon Nov  3 08:10:23 2008
@@ -27,7 +27,7 @@
 /**
  * The link between a method and generated code.
  */
-public class Vala.CCodeMethodModule : CCodeModule {
+public class Vala.CCodeMethodModule : CCodeStructModule {
 	public CCodeMethodModule (CCodeGenerator codegen, CCodeModule? next) {
 		base (codegen, next);
 	}

Modified: trunk/gobject/valaccodestructmodule.vala
==============================================================================
--- trunk/gobject/valaccodestructmodule.vala	(original)
+++ trunk/gobject/valaccodestructmodule.vala	Mon Nov  3 08:10:23 2008
@@ -23,7 +23,7 @@
 
 using GLib;
 
-public class Vala.CCodeStructModule : CCodeModule {
+public class Vala.CCodeStructModule : CCodeBaseModule {
 	public CCodeStructModule (CCodeGenerator codegen, CCodeModule? next) {
 		base (codegen, next);
 	}

Modified: trunk/gobject/valadbusclientmodule.vala
==============================================================================
--- trunk/gobject/valadbusclientmodule.vala	(original)
+++ trunk/gobject/valadbusclientmodule.vala	Mon Nov  3 08:10:23 2008
@@ -28,7 +28,7 @@
 /**
  * The link between a dynamic method and generated code.
  */
-public class Vala.DBusClientModule : CCodeModule {
+public class Vala.DBusClientModule : GAsyncModule {
 	public DBusClientModule (CCodeGenerator codegen, CCodeModule? next) {
 		base (codegen, next);
 	}

Modified: trunk/gobject/valadbusservermodule.vala
==============================================================================
--- trunk/gobject/valadbusservermodule.vala	(original)
+++ trunk/gobject/valadbusservermodule.vala	Mon Nov  3 08:10:23 2008
@@ -28,7 +28,7 @@
 /**
  * The link between a dynamic method and generated code.
  */
-public class Vala.DBusServerModule : CCodeModule {
+public class Vala.DBusServerModule : DBusClientModule {
 	public DBusServerModule (CCodeGenerator codegen, CCodeModule? next) {
 		base (codegen, next);
 	}

Modified: trunk/gobject/valagasyncmodule.vala
==============================================================================
--- trunk/gobject/valagasyncmodule.vala	(original)
+++ trunk/gobject/valagasyncmodule.vala	Mon Nov  3 08:10:23 2008
@@ -23,7 +23,7 @@
 using GLib;
 using Gee;
 
-public class Vala.GAsyncModule : CCodeModule {
+public class Vala.GAsyncModule : GSignalModule {
 	public GAsyncModule (CCodeGenerator codegen, CCodeModule? next) {
 		base (codegen, next);
 	}

Modified: trunk/gobject/valagobjectmodule.vala
==============================================================================
--- trunk/gobject/valagobjectmodule.vala	(original)
+++ trunk/gobject/valagobjectmodule.vala	Mon Nov  3 08:10:23 2008
@@ -23,7 +23,7 @@
 
 using GLib;
 
-public class Vala.GObjectModule : CCodeModule {
+public class Vala.GObjectModule : GTypeModule {
 	public GObjectModule (CCodeGenerator codegen, CCodeModule? next) {
 		base (codegen, next);
 	}

Modified: trunk/gobject/valagsignalmodule.vala
==============================================================================
--- trunk/gobject/valagsignalmodule.vala	(original)
+++ trunk/gobject/valagsignalmodule.vala	Mon Nov  3 08:10:23 2008
@@ -23,7 +23,7 @@
 
 using GLib;
 
-public class Vala.GSignalModule : CCodeModule {
+public class Vala.GSignalModule : GObjectModule {
 	public GSignalModule (CCodeGenerator codegen, CCodeModule? next) {
 		base (codegen, next);
 	}

Modified: trunk/gobject/valagtypemodule.vala
==============================================================================
--- trunk/gobject/valagtypemodule.vala	(original)
+++ trunk/gobject/valagtypemodule.vala	Mon Nov  3 08:10:23 2008
@@ -23,7 +23,7 @@
 
 using GLib;
 
-public class Vala.GTypeModule : CCodeModule {
+public class Vala.GTypeModule : CCodeDynamicSignalModule {
 	public GTypeModule (CCodeGenerator codegen, CCodeModule? next) {
 		base (codegen, next);
 	}



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