Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: src/mips64/code-stubs-mips64.cc

Issue 2838143003: [stubs] Drop CallApiCallbackStub::call_data_undefined optimization. (Closed)
Patch Set: Fix handler-compiler for remaining archs. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #if V8_TARGET_ARCH_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 #include "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/api-arguments.h" 8 #include "src/api-arguments.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 2958 matching lines...) Expand 10 before | Expand all | Expand 10 after
2969 __ PushRoot(Heap::kUndefinedValueRootIndex); 2969 __ PushRoot(Heap::kUndefinedValueRootIndex);
2970 2970
2971 // Save context, callee and call data. 2971 // Save context, callee and call data.
2972 __ Push(context, callee, call_data); 2972 __ Push(context, callee, call_data);
2973 if (!is_lazy()) { 2973 if (!is_lazy()) {
2974 // Load context from callee. 2974 // Load context from callee.
2975 __ Ld(context, FieldMemOperand(callee, JSFunction::kContextOffset)); 2975 __ Ld(context, FieldMemOperand(callee, JSFunction::kContextOffset));
2976 } 2976 }
2977 2977
2978 Register scratch = call_data; 2978 Register scratch = call_data;
2979 if (!call_data_undefined()) { 2979 __ LoadRoot(scratch, Heap::kUndefinedValueRootIndex);
2980 __ LoadRoot(scratch, Heap::kUndefinedValueRootIndex);
2981 }
2982 // Push return value and default return value. 2980 // Push return value and default return value.
2983 __ Push(scratch, scratch); 2981 __ Push(scratch, scratch);
2984 __ li(scratch, Operand(ExternalReference::isolate_address(masm->isolate()))); 2982 __ li(scratch, Operand(ExternalReference::isolate_address(masm->isolate())));
2985 // Push isolate and holder. 2983 // Push isolate and holder.
2986 __ Push(scratch, holder); 2984 __ Push(scratch, holder);
2987 2985
2988 // Prepare arguments. 2986 // Prepare arguments.
2989 __ mov(scratch, sp); 2987 __ mov(scratch, sp);
2990 2988
2991 // Allocate the v8::Arguments structure in the arguments' space since 2989 // Allocate the v8::Arguments structure in the arguments' space since
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
3107 kStackUnwindSpace, kInvalidStackOffset, 3105 kStackUnwindSpace, kInvalidStackOffset,
3108 return_value_operand, NULL); 3106 return_value_operand, NULL);
3109 } 3107 }
3110 3108
3111 #undef __ 3109 #undef __
3112 3110
3113 } // namespace internal 3111 } // namespace internal
3114 } // namespace v8 3112 } // namespace v8
3115 3113
3116 #endif // V8_TARGET_ARCH_MIPS64 3114 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698