| Index: src/compiler/js-graph.cc
|
| diff --git a/src/compiler/js-graph.cc b/src/compiler/js-graph.cc
|
| index da6d66df627691c9c22d2f8a85b679a06266f6d7..b8a7f976e82ce6e4a91726ea7faff57dc87a4b6b 100644
|
| --- a/src/compiler/js-graph.cc
|
| +++ b/src/compiler/js-graph.cc
|
| @@ -17,12 +17,16 @@ 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();
|
| +
|
| + return ImmovableHeapConstant(CEntryStub(isolate(), result_size).GetCode());
|
| }
|
|
|
|
|
|
|