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