| 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 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
| 8 | 8 |
| 9 // Note on Mips implementation: | 9 // Note on Mips implementation: |
| 10 // | 10 // |
| (...skipping 2877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2888 callee->IsVariableProxy() ? CallICState::FUNCTION : CallICState::METHOD; | 2888 callee->IsVariableProxy() ? CallICState::FUNCTION : CallICState::METHOD; |
| 2889 | 2889 |
| 2890 // Get the target function. | 2890 // Get the target function. |
| 2891 if (call_type == CallICState::FUNCTION) { | 2891 if (call_type == CallICState::FUNCTION) { |
| 2892 { StackValueContext context(this); | 2892 { StackValueContext context(this); |
| 2893 EmitVariableLoad(callee->AsVariableProxy()); | 2893 EmitVariableLoad(callee->AsVariableProxy()); |
| 2894 PrepareForBailout(callee, NO_REGISTERS); | 2894 PrepareForBailout(callee, NO_REGISTERS); |
| 2895 } | 2895 } |
| 2896 // Push undefined as receiver. This is patched in the method prologue if it | 2896 // Push undefined as receiver. This is patched in the method prologue if it |
| 2897 // is a sloppy mode method. | 2897 // is a sloppy mode method. |
| 2898 __ Push(isolate()->factory()->undefined_value()); | 2898 __ LoadRoot(at, Heap::kUndefinedValueRootIndex); |
| 2899 __ push(at); |
| 2899 } else { | 2900 } else { |
| 2900 // Load the function from the receiver. | 2901 // Load the function from the receiver. |
| 2901 DCHECK(callee->IsProperty()); | 2902 DCHECK(callee->IsProperty()); |
| 2902 DCHECK(!callee->AsProperty()->IsSuperAccess()); | 2903 DCHECK(!callee->AsProperty()->IsSuperAccess()); |
| 2903 __ lw(LoadDescriptor::ReceiverRegister(), MemOperand(sp, 0)); | 2904 __ lw(LoadDescriptor::ReceiverRegister(), MemOperand(sp, 0)); |
| 2904 EmitNamedPropertyLoad(callee->AsProperty()); | 2905 EmitNamedPropertyLoad(callee->AsProperty()); |
| 2905 PrepareForBailoutForId(callee->AsProperty()->LoadId(), TOS_REG); | 2906 PrepareForBailoutForId(callee->AsProperty()->LoadId(), TOS_REG); |
| 2906 // Push the target function under the receiver. | 2907 // Push the target function under the receiver. |
| 2907 __ lw(at, MemOperand(sp, 0)); | 2908 __ lw(at, MemOperand(sp, 0)); |
| 2908 __ push(at); | 2909 __ push(at); |
| (...skipping 2535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5444 Assembler::target_address_at(pc_immediate_load_address)) == | 5445 Assembler::target_address_at(pc_immediate_load_address)) == |
| 5445 reinterpret_cast<uint32_t>( | 5446 reinterpret_cast<uint32_t>( |
| 5446 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5447 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 5447 return OSR_AFTER_STACK_CHECK; | 5448 return OSR_AFTER_STACK_CHECK; |
| 5448 } | 5449 } |
| 5449 | 5450 |
| 5450 | 5451 |
| 5451 } } // namespace v8::internal | 5452 } } // namespace v8::internal |
| 5452 | 5453 |
| 5453 #endif // V8_TARGET_ARCH_MIPS | 5454 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |