OLD | NEW |
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_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
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/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 2955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2966 __ PushRoot(Heap::kUndefinedValueRootIndex); | 2966 __ PushRoot(Heap::kUndefinedValueRootIndex); |
2967 | 2967 |
2968 // Save context, callee and call data. | 2968 // Save context, callee and call data. |
2969 __ Push(context, callee, call_data); | 2969 __ Push(context, callee, call_data); |
2970 if (!is_lazy()) { | 2970 if (!is_lazy()) { |
2971 // Load context from callee. | 2971 // Load context from callee. |
2972 __ lw(context, FieldMemOperand(callee, JSFunction::kContextOffset)); | 2972 __ lw(context, FieldMemOperand(callee, JSFunction::kContextOffset)); |
2973 } | 2973 } |
2974 | 2974 |
2975 Register scratch = call_data; | 2975 Register scratch = call_data; |
2976 if (!call_data_undefined()) { | 2976 __ LoadRoot(scratch, Heap::kUndefinedValueRootIndex); |
2977 __ LoadRoot(scratch, Heap::kUndefinedValueRootIndex); | |
2978 } | |
2979 // Push return value and default return value. | 2977 // Push return value and default return value. |
2980 __ Push(scratch, scratch); | 2978 __ Push(scratch, scratch); |
2981 __ li(scratch, Operand(ExternalReference::isolate_address(masm->isolate()))); | 2979 __ li(scratch, Operand(ExternalReference::isolate_address(masm->isolate()))); |
2982 // Push isolate and holder. | 2980 // Push isolate and holder. |
2983 __ Push(scratch, holder); | 2981 __ Push(scratch, holder); |
2984 | 2982 |
2985 // Prepare arguments. | 2983 // Prepare arguments. |
2986 __ mov(scratch, sp); | 2984 __ mov(scratch, sp); |
2987 | 2985 |
2988 // Allocate the v8::Arguments structure in the arguments' space since | 2986 // Allocate the v8::Arguments structure in the arguments' space since |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3100 kStackUnwindSpace, kInvalidStackOffset, | 3098 kStackUnwindSpace, kInvalidStackOffset, |
3101 return_value_operand, NULL); | 3099 return_value_operand, NULL); |
3102 } | 3100 } |
3103 | 3101 |
3104 #undef __ | 3102 #undef __ |
3105 | 3103 |
3106 } // namespace internal | 3104 } // namespace internal |
3107 } // namespace v8 | 3105 } // namespace v8 |
3108 | 3106 |
3109 #endif // V8_TARGET_ARCH_MIPS | 3107 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |