| 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_ARM | 7 #if V8_TARGET_ARCH_ARM |
| 8 | 8 |
| 9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 2895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2906 callee->IsVariableProxy() ? CallICState::FUNCTION : CallICState::METHOD; | 2906 callee->IsVariableProxy() ? CallICState::FUNCTION : CallICState::METHOD; |
| 2907 | 2907 |
| 2908 // Get the target function. | 2908 // Get the target function. |
| 2909 if (call_type == CallICState::FUNCTION) { | 2909 if (call_type == CallICState::FUNCTION) { |
| 2910 { StackValueContext context(this); | 2910 { StackValueContext context(this); |
| 2911 EmitVariableLoad(callee->AsVariableProxy()); | 2911 EmitVariableLoad(callee->AsVariableProxy()); |
| 2912 PrepareForBailout(callee, NO_REGISTERS); | 2912 PrepareForBailout(callee, NO_REGISTERS); |
| 2913 } | 2913 } |
| 2914 // Push undefined as receiver. This is patched in the method prologue if it | 2914 // Push undefined as receiver. This is patched in the method prologue if it |
| 2915 // is a sloppy mode method. | 2915 // is a sloppy mode method. |
| 2916 __ Push(isolate()->factory()->undefined_value()); | 2916 __ LoadRoot(ip, Heap::kUndefinedValueRootIndex); |
| 2917 __ push(ip); |
| 2917 } else { | 2918 } else { |
| 2918 // Load the function from the receiver. | 2919 // Load the function from the receiver. |
| 2919 DCHECK(callee->IsProperty()); | 2920 DCHECK(callee->IsProperty()); |
| 2920 DCHECK(!callee->AsProperty()->IsSuperAccess()); | 2921 DCHECK(!callee->AsProperty()->IsSuperAccess()); |
| 2921 __ ldr(LoadDescriptor::ReceiverRegister(), MemOperand(sp, 0)); | 2922 __ ldr(LoadDescriptor::ReceiverRegister(), MemOperand(sp, 0)); |
| 2922 EmitNamedPropertyLoad(callee->AsProperty()); | 2923 EmitNamedPropertyLoad(callee->AsProperty()); |
| 2923 PrepareForBailoutForId(callee->AsProperty()->LoadId(), TOS_REG); | 2924 PrepareForBailoutForId(callee->AsProperty()->LoadId(), TOS_REG); |
| 2924 // Push the target function under the receiver. | 2925 // Push the target function under the receiver. |
| 2925 __ ldr(ip, MemOperand(sp, 0)); | 2926 __ ldr(ip, MemOperand(sp, 0)); |
| 2926 __ push(ip); | 2927 __ push(ip); |
| (...skipping 2574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5501 | 5502 |
| 5502 DCHECK(interrupt_address == | 5503 DCHECK(interrupt_address == |
| 5503 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5504 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 5504 return OSR_AFTER_STACK_CHECK; | 5505 return OSR_AFTER_STACK_CHECK; |
| 5505 } | 5506 } |
| 5506 | 5507 |
| 5507 | 5508 |
| 5508 } } // namespace v8::internal | 5509 } } // namespace v8::internal |
| 5509 | 5510 |
| 5510 #endif // V8_TARGET_ARCH_ARM | 5511 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |