[svn:parrot] r47777 - in branches/gsoc_past_optimization: . config/gen/makefiles runtime/parrot/library/PAST runtime/parrot/library/PCT

tcurtis at svn.parrot.org tcurtis at svn.parrot.org
Wed Jun 23 07:29:38 UTC 2010


Author: tcurtis
Date: Wed Jun 23 07:29:37 2010
New Revision: 47777
URL: https://trac.parrot.org/parrot/changeset/47777

Log:
Added a stub PCT::Pattern class.

Added:
   branches/gsoc_past_optimization/runtime/parrot/library/PCT/Pattern.nqp   (contents, props changed)
Modified:
   branches/gsoc_past_optimization/MANIFEST
   branches/gsoc_past_optimization/MANIFEST.SKIP
   branches/gsoc_past_optimization/config/gen/makefiles/root.in
   branches/gsoc_past_optimization/runtime/parrot/library/PAST/Pattern.nqp
   branches/gsoc_past_optimization/runtime/parrot/library/PCT/   (props changed)

Modified: branches/gsoc_past_optimization/MANIFEST
==============================================================================
--- branches/gsoc_past_optimization/MANIFEST	Wed Jun 23 05:38:48 2010	(r47776)
+++ branches/gsoc_past_optimization/MANIFEST	Wed Jun 23 07:29:37 2010	(r47777)
@@ -1,7 +1,7 @@
 # ex: set ro:
 # $Id$
 #
-# generated by tools/dev/mk_manifest_and_skip.pl Wed Jun 23 05:23:24 2010 UT
+# generated by tools/dev/mk_manifest_and_skip.pl Wed Jun 23 07:19:12 2010 UT
 #
 # See below for documentation on the format of this file.
 #
@@ -1179,6 +1179,7 @@
 runtime/parrot/library/PAST/Transformer/Dynamic.pir         [library]
 runtime/parrot/library/PAST/Walker.pir                      [library]
 runtime/parrot/library/PAST/Walker/Dynamic.pir              [library]
+runtime/parrot/library/PCT/Pattern.nqp                      [library]
 runtime/parrot/library/PCT/README                           []doc
 runtime/parrot/library/PGE/Dumper.pir                       [library]
 runtime/parrot/library/PGE/Glob.pir                         [library]

Modified: branches/gsoc_past_optimization/MANIFEST.SKIP
==============================================================================
--- branches/gsoc_past_optimization/MANIFEST.SKIP	Wed Jun 23 05:38:48 2010	(r47776)
+++ branches/gsoc_past_optimization/MANIFEST.SKIP	Wed Jun 23 07:29:37 2010	(r47777)
@@ -1,6 +1,6 @@
 # ex: set ro:
 # $Id$
-# generated by tools/dev/mk_manifest_and_skip.pl Wed Jun 23 04:50:40 2010 UT
+# generated by tools/dev/mk_manifest_and_skip.pl Wed Jun 23 07:19:12 2010 UT
 #
 # This file should contain a transcript of the svn:ignore properties
 # of the directories in the Parrot subversion repository. (Needed for
@@ -595,11 +595,6 @@
 ^runtime/parrot/library/PAST/.*\.pbc/
 ^runtime/parrot/library/PAST/Pattern\.pir$
 ^runtime/parrot/library/PAST/Pattern\.pir/
-# generated from svn:ignore of 'runtime/parrot/library/PAST/Pattern/'
-^runtime/parrot/library/PAST/Pattern/.*\.pbc$
-^runtime/parrot/library/PAST/Pattern/.*\.pbc/
-^runtime/parrot/library/PAST/Pattern/Node\.pir$
-^runtime/parrot/library/PAST/Pattern/Node\.pir/
 # generated from svn:ignore of 'runtime/parrot/library/PAST/Transformer/'
 ^runtime/parrot/library/PAST/Transformer/.*\.pbc$
 ^runtime/parrot/library/PAST/Transformer/.*\.pbc/
@@ -609,6 +604,8 @@
 # generated from svn:ignore of 'runtime/parrot/library/PCT/'
 ^runtime/parrot/library/PCT/.*\.pbc$
 ^runtime/parrot/library/PCT/.*\.pbc/
+^runtime/parrot/library/PCT/Pattern\.pir$
+^runtime/parrot/library/PCT/Pattern\.pir/
 # generated from svn:ignore of 'runtime/parrot/library/PGE/'
 ^runtime/parrot/library/PGE/.*\.pbc$
 ^runtime/parrot/library/PGE/.*\.pbc/

Modified: branches/gsoc_past_optimization/config/gen/makefiles/root.in
==============================================================================
--- branches/gsoc_past_optimization/config/gen/makefiles/root.in	Wed Jun 23 05:38:48 2010	(r47776)
+++ branches/gsoc_past_optimization/config/gen/makefiles/root.in	Wed Jun 23 07:29:37 2010	(r47777)
@@ -286,6 +286,8 @@
     $(LIBRARY_DIR)/PAST/Transformer/Dynamic.pbc \
     $(LIBRARY_DIR)/PAST/Walker.pbc \
     $(LIBRARY_DIR)/PAST/Walker/Dynamic.pbc \
+    $(LIBRARY_DIR)/PCT/Pattern.pbc \
+    $(LIBRARY_DIR)/PCT/Pattern.pir \
     $(LIBRARY_DIR)/ProfTest.pbc \
     $(LIBRARY_DIR)/ProfTest/PIRProfile.pir \
     $(LIBRARY_DIR)/ProfTest/NQPProfile.pir \
@@ -1101,6 +1103,12 @@
 $(LIBRARY_DIR)/PAST/Pattern.pir: $(LIBRARY_DIR)/PAST/Pattern.nqp $(NQP_RX)
 	$(NQP_RX) --target=pir $(LIBRARY_DIR)/PAST/Pattern.nqp > $@
 
+$(LIBRARY_DIR)/PCT/Pattern.pbc: $(LIBRARY_DIR)/PCT/Pattern.pir
+	$(PARROT) -o $@ $(LIBRARY_DIR)/PCT/Pattern.pir
+
+$(LIBRARY_DIR)/PCT/Pattern.pir: $(LIBRARY_DIR)/PCT/Pattern.nqp $(NQP_RX)
+	$(NQP_RX) --target=pir $(LIBRARY_DIR)/PCT/Pattern.nqp > $@
+
 #
 # Profiling runcore test supporting code
 #

Modified: branches/gsoc_past_optimization/runtime/parrot/library/PAST/Pattern.nqp
==============================================================================
--- branches/gsoc_past_optimization/runtime/parrot/library/PAST/Pattern.nqp	Wed Jun 23 05:38:48 2010	(r47776)
+++ branches/gsoc_past_optimization/runtime/parrot/library/PAST/Pattern.nqp	Wed Jun 23 07:29:37 2010	(r47777)
@@ -3,8 +3,7 @@
 # $Id$
 
 INIT {
-    pir::load_bytecode('Tree/Pattern.pbc');
-    pir::load_bytecode('PCT.pbc');
+    pir::load_bytecode('PCT/Pattern.pbc');
 }
 
 module PAST::Node {
@@ -17,7 +16,7 @@
     }
 }
 
-class PAST::Pattern is Tree::Pattern {
+class PAST::Pattern is PCT::Pattern {
     method attr ($name, $value, $has_value) {
         my $result;
         if ($has_value) {

Added: branches/gsoc_past_optimization/runtime/parrot/library/PCT/Pattern.nqp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ branches/gsoc_past_optimization/runtime/parrot/library/PCT/Pattern.nqp	Wed Jun 23 07:29:37 2010	(r47777)
@@ -0,0 +1,12 @@
+#!./parrot-nqp
+# Copyright (C) 2010, Parrot Foundation.
+# $Id$
+
+INIT {
+    pir::load_bytecode('Tree/Pattern.pbc');
+    pir::load_bytecode('PCT.pbc');
+}
+
+class PCT::Pattern is Tree::Pattern {
+
+}


More information about the parrot-commits mailing list