Index: src/hydrogen.h |
diff --git a/src/hydrogen.h b/src/hydrogen.h |
index 4d51fd36a225c65eb402a0243c439267c88193ea..c5f35a32b6c8562bd1ecc7b62176127ea83bf0c3 100644 |
--- a/src/hydrogen.h |
+++ b/src/hydrogen.h |
@@ -613,6 +613,8 @@ class HEnvironment final : public ZoneObject { |
void SetExpressionStackAt(int index_from_top, HValue* value); |
HValue* RemoveExpressionStackAt(int index_from_top); |
+ void Print() const; |
+ |
HEnvironment* Copy() const; |
HEnvironment* CopyWithoutHistory() const; |
HEnvironment* CopyAsLoopHeader(HBasicBlock* block) const; |
@@ -2026,17 +2028,38 @@ inline HInstruction* HGraphBuilder::AddUncasted<HCallRuntime>( |
} |
-template<> |
-inline HContext* HGraphBuilder::New<HContext>() { |
- return HContext::New(zone()); |
+template <> |
+inline HParameter* HGraphBuilder::New<HParameter>(unsigned index) { |
+ return HParameter::New(isolate(), zone(), nullptr, index); |
} |
-template<> |
-inline HInstruction* HGraphBuilder::NewUncasted<HContext>() { |
- return New<HContext>(); |
+template <> |
+inline HParameter* HGraphBuilder::New<HParameter>( |
+ unsigned index, HParameter::ParameterKind kind) { |
+ return HParameter::New(isolate(), zone(), nullptr, index, kind); |
+} |
+ |
+ |
+template <> |
+inline HParameter* HGraphBuilder::New<HParameter>( |
+ unsigned index, HParameter::ParameterKind kind, Representation r) { |
+ return HParameter::New(isolate(), zone(), nullptr, index, kind, r); |
} |
+ |
+template <> |
+inline HPrologue* HGraphBuilder::New<HPrologue>() { |
+ return HPrologue::New(zone()); |
+} |
+ |
+ |
+template <> |
+inline HContext* HGraphBuilder::New<HContext>() { |
+ return HContext::New(zone()); |
+} |
+ |
+ |
class HOptimizedGraphBuilder : public HGraphBuilder, public AstVisitor { |
public: |
// A class encapsulating (lazily-allocated) break and continue blocks for |