Index: src/compiler/js-graph.cc |
diff --git a/src/compiler/js-graph.cc b/src/compiler/js-graph.cc |
index da6d66df627691c9c22d2f8a85b679a06266f6d7..d3741ef0eee8539c10a845df7af67ff4639aae34 100644 |
--- a/src/compiler/js-graph.cc |
+++ b/src/compiler/js-graph.cc |
@@ -17,12 +17,17 @@ Node* JSGraph::ImmovableHeapConstant(Handle<HeapObject> object) { |
} |
-Node* JSGraph::CEntryStubConstant() { |
- if (!c_entry_stub_constant_.is_set()) { |
- c_entry_stub_constant_.set( |
- ImmovableHeapConstant(CEntryStub(isolate(), 1).GetCode())); |
+Node* JSGraph::CEntryStubConstant(int result_size) { |
+ if (result_size == 1) { |
+ if (!c_entry_stub_constant_.is_set()) { |
+ c_entry_stub_constant_.set( |
+ ImmovableHeapConstant(CEntryStub(isolate(), 1).GetCode())); |
+ } |
+ return c_entry_stub_constant_.get(); |
} |
- return c_entry_stub_constant_.get(); |
+ |
+ DCHECK(result_size == 2); |
titzer
2014/11/07 14:53:06
Any risk in just passing the result_size through t
mvstanton
2014/11/07 15:00:00
Done.
|
+ return ImmovableHeapConstant(CEntryStub(isolate(), 2).GetCode()); |
} |