| Index: src/compiler/js-graph.cc
|
| diff --git a/src/compiler/js-graph.cc b/src/compiler/js-graph.cc
|
| index f6afc77dddb5ab7dbc639de5604006f590785101..cafd047e74781f9a2b5e72c4c7f4e1aed65ea5bb 100644
|
| --- a/src/compiler/js-graph.cc
|
| +++ b/src/compiler/js-graph.cc
|
| @@ -29,15 +29,23 @@ Node* JSGraph::ToNumberBuiltinConstant() {
|
| HeapConstant(isolate()->builtins()->ToNumber()));
|
| }
|
|
|
| -Node* JSGraph::CEntryStubConstant(int result_size) {
|
| - if (result_size == 1) {
|
| - return CACHED(kCEntryStubConstant,
|
| - HeapConstant(CEntryStub(isolate(), 1).GetCode()));
|
| +Node* JSGraph::CEntryStubConstant(int result_size, SaveFPRegsMode save_doubles,
|
| + ArgvMode argv_mode, bool builtin_exit_frame) {
|
| + if (save_doubles == kDontSaveFPRegs && argv_mode == kArgvOnStack &&
|
| + result_size == 1) {
|
| + CachedNode key = builtin_exit_frame
|
| + ? kCEntryStubWithBuiltinExitFrameConstant
|
| + : kCEntryStubConstant;
|
| + return CACHED(key,
|
| + HeapConstant(CEntryStub(isolate(), result_size, save_doubles,
|
| + argv_mode, builtin_exit_frame)
|
| + .GetCode()));
|
| }
|
| - return HeapConstant(CEntryStub(isolate(), result_size).GetCode());
|
| + CEntryStub stub(isolate(), result_size, save_doubles, argv_mode,
|
| + builtin_exit_frame);
|
| + return HeapConstant(stub.GetCode());
|
| }
|
|
|
| -
|
| Node* JSGraph::EmptyFixedArrayConstant() {
|
| return CACHED(kEmptyFixedArrayConstant,
|
| HeapConstant(factory()->empty_fixed_array()));
|
|
|