[svn:parrot] r38672 - in branches/pmc_pct: compilers/pmcc compilers/pmcc/src/emitter/pmc config/gen/makefiles

bacek at svn.parrot.org bacek at svn.parrot.org
Sun May 10 09:58:11 UTC 2009


Author: bacek
Date: Sun May 10 09:58:10 2009
New Revision: 38672
URL: https://trac.parrot.org/parrot/changeset/38672

Log:
Add stub for default.pmc specialised handling.

Added:
   branches/pmc_pct/compilers/pmcc/src/emitter/pmc/
   branches/pmc_pct/compilers/pmcc/src/emitter/pmc/default.pm
Modified:
   branches/pmc_pct/compilers/pmcc/pmcc.pir
   branches/pmc_pct/config/gen/makefiles/pmcc.in

Modified: branches/pmc_pct/compilers/pmcc/pmcc.pir
==============================================================================
--- branches/pmc_pct/compilers/pmcc/pmcc.pir	Sun May 10 05:42:13 2009	(r38671)
+++ branches/pmc_pct/compilers/pmcc/pmcc.pir	Sun May 10 09:58:10 2009	(r38672)
@@ -36,6 +36,7 @@
 .include 'src/gen_emitter.pir'
 .include 'src/emitter/gen_pmc.pir'
 .include 'src/emitter/gen_c.pir'
+.include 'src/emitter/pmc/gen_default.pir'
 .include 'src/gen_vtable_info.pir'
 .include 'src/parser/gen_grammar.pir'
 .include 'src/parser/gen_actions.pir'

Added: branches/pmc_pct/compilers/pmcc/src/emitter/pmc/default.pm
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ branches/pmc_pct/compilers/pmcc/src/emitter/pmc/default.pm	Sun May 10 09:58:10 2009	(r38672)
@@ -0,0 +1,42 @@
+# Copyright (C) 2009, Parrot Foundation.
+# $Id$
+
+=head1 C<PMC::Emitter::PMC::default>
+
+Specialised emitter for default PMC.
+
+=over 4
+
+=cut
+
+class PMC::Emitter::PMC::default;
+
+=item C<get_vtable_func>
+
+Generate C-code for C<Parrot_default_get_vtable> and
+C<Parrot_default_ro_get_vtable> functions.
+
+=cut
+
+method get_vtable_func() {
+}
+
+=item C<update_vtable_func>
+
+Sorry, no update_vtable for default
+
+=cut
+method update_vtable_func() {
+    "";
+}
+
+
+=back
+
+=cut
+
+# Local Variables:
+#   mode: pir
+#   fill-column: 100
+# End:
+# vim: expandtab shiftwidth=4:

Modified: branches/pmc_pct/config/gen/makefiles/pmcc.in
==============================================================================
--- branches/pmc_pct/config/gen/makefiles/pmcc.in	Sun May 10 05:42:13 2009	(r38671)
+++ branches/pmc_pct/config/gen/makefiles/pmcc.in	Sun May 10 09:58:10 2009	(r38672)
@@ -22,6 +22,7 @@
   src/emitter/gen_pmc.pir \
   src/emitter/c.pir \
   src/emitter/gen_c.pir \
+  src/emitter/pmc/gen_default.pir \
   src/parser/gen_grammar.pir \
   src/parser/gen_actions.pir \
   src/gen_emitter.pir \
@@ -51,6 +52,10 @@
 	$(PARROT) $(PARROT_ARGS) $(NQP) --output=src/emitter/gen_c.pir \
 	    --target=pir src/emitter/c.pm
 
+src/emitter/pmc/gen_default.pir: $(NQP) $(PCT) src/emitter/pmc/default.pm
+	$(PARROT) $(PARROT_ARGS) $(NQP) --output=src/emitter/pmc/gen_default.pir \
+	    --target=pir src/emitter/pmc/default.pm
+
 src/gen_emitter.pir: $(NQP) $(PCT) src/emitter.pm
 	$(PARROT) $(PARROT_ARGS) $(NQP) --output=src/gen_emitter.pir \
 	    --target=pir src/emitter.pm


More information about the parrot-commits mailing list