Revision: 17300
Author:   [email protected]
Date:     Mon Oct 21 14:18:55 2013 UTC
Log:      HEnvironmentMarker factory added

[email protected]

Review URL: https://codereview.chromium.org/32513002
http://code.google.com/p/v8/source/detail?r=17300

Modified:
 /branches/bleeding_edge/src/hydrogen-instructions.h
 /branches/bleeding_edge/src/hydrogen.h

=======================================
--- /branches/bleeding_edge/src/hydrogen-instructions.h Mon Oct 21 13:35:48 2013 UTC +++ /branches/bleeding_edge/src/hydrogen-instructions.h Mon Oct 21 14:18:55 2013 UTC
@@ -1776,8 +1776,7 @@
  public:
   enum Kind { BIND, LOOKUP };

-  HEnvironmentMarker(Kind kind, int index)
-      : kind_(kind), index_(index), next_simulate_(NULL) { }
+  DECLARE_INSTRUCTION_FACTORY_P2(HEnvironmentMarker, Kind, int);

   Kind kind() { return kind_; }
   int index() { return index_; }
@@ -1804,6 +1803,9 @@
   DECLARE_CONCRETE_INSTRUCTION(EnvironmentMarker);

  private:
+  HEnvironmentMarker(Kind kind, int index)
+      : kind_(kind), index_(index), next_simulate_(NULL) { }
+
   Kind kind_;
   int index_;
   HSimulate* next_simulate_;
=======================================
--- /branches/bleeding_edge/src/hydrogen.h      Mon Oct 21 14:09:32 2013 UTC
+++ /branches/bleeding_edge/src/hydrogen.h      Mon Oct 21 14:18:55 2013 UTC
@@ -1948,7 +1948,7 @@
     env->Bind(index, value);
     if (IsEligibleForEnvironmentLivenessAnalysis(var, index, value, env)) {
       HEnvironmentMarker* bind =
-          new(zone()) HEnvironmentMarker(HEnvironmentMarker::BIND, index);
+          New<HEnvironmentMarker>(HEnvironmentMarker::BIND, index);
       AddInstruction(bind);
 #ifdef DEBUG
       bind->set_closure(env->closure());
@@ -1961,7 +1961,7 @@
     HValue* value = env->Lookup(index);
     if (IsEligibleForEnvironmentLivenessAnalysis(var, index, value, env)) {
       HEnvironmentMarker* lookup =
- new(zone()) HEnvironmentMarker(HEnvironmentMarker::LOOKUP, index);
+          New<HEnvironmentMarker>(HEnvironmentMarker::LOOKUP, index);
       AddInstruction(lookup);
 #ifdef DEBUG
       lookup->set_closure(env->closure());

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to