| 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 2926 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2937 CallIC(ic); | 2937 CallIC(ic); |
| 2938 | 2938 |
| 2939 RecordJSReturnSite(expr); | 2939 RecordJSReturnSite(expr); |
| 2940 // Restore context register. | 2940 // Restore context register. |
| 2941 __ ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); | 2941 __ ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
| 2942 context()->DropAndPlug(1, r0); | 2942 context()->DropAndPlug(1, r0); |
| 2943 } | 2943 } |
| 2944 | 2944 |
| 2945 | 2945 |
| 2946 void FullCodeGenerator::EmitResolvePossiblyDirectEval(int arg_count) { | 2946 void FullCodeGenerator::EmitResolvePossiblyDirectEval(int arg_count) { |
| 2947 // r4: copy of the first argument or undefined if it doesn't exist. | 2947 // r5: copy of the first argument or undefined if it doesn't exist. |
| 2948 if (arg_count > 0) { | 2948 if (arg_count > 0) { |
| 2949 __ ldr(r4, MemOperand(sp, arg_count * kPointerSize)); | 2949 __ ldr(r5, MemOperand(sp, arg_count * kPointerSize)); |
| 2950 } else { | 2950 } else { |
| 2951 __ LoadRoot(r4, Heap::kUndefinedValueRootIndex); | 2951 __ LoadRoot(r5, Heap::kUndefinedValueRootIndex); |
| 2952 } | 2952 } |
| 2953 | 2953 |
| 2954 // r4: the receiver of the enclosing function. |
| 2955 __ ldr(r4, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
| 2956 |
| 2954 // r3: the receiver of the enclosing function. | 2957 // r3: the receiver of the enclosing function. |
| 2955 int receiver_offset = 2 + info_->scope()->num_parameters(); | 2958 int receiver_offset = 2 + info_->scope()->num_parameters(); |
| 2956 __ ldr(r3, MemOperand(fp, receiver_offset * kPointerSize)); | 2959 __ ldr(r3, MemOperand(fp, receiver_offset * kPointerSize)); |
| 2957 | 2960 |
| 2958 // r2: strict mode. | 2961 // r2: strict mode. |
| 2959 __ mov(r2, Operand(Smi::FromInt(strict_mode()))); | 2962 __ mov(r2, Operand(Smi::FromInt(strict_mode()))); |
| 2960 | 2963 |
| 2961 // r1: the start position of the scope the calls resides in. | 2964 // r1: the start position of the scope the calls resides in. |
| 2962 __ mov(r1, Operand(Smi::FromInt(scope()->start_position()))); | 2965 __ mov(r1, Operand(Smi::FromInt(scope()->start_position()))); |
| 2963 | 2966 |
| 2964 // Do the runtime call. | 2967 // Do the runtime call. |
| 2968 __ Push(r5); |
| 2965 __ Push(r4, r3, r2, r1); | 2969 __ Push(r4, r3, r2, r1); |
| 2966 __ CallRuntime(Runtime::kResolvePossiblyDirectEval, 5); | 2970 __ CallRuntime(Runtime::kResolvePossiblyDirectEval, 6); |
| 2967 } | 2971 } |
| 2968 | 2972 |
| 2969 | 2973 |
| 2970 void FullCodeGenerator::EmitLoadSuperConstructor(SuperReference* super_ref) { | 2974 void FullCodeGenerator::EmitLoadSuperConstructor(SuperReference* super_ref) { |
| 2971 DCHECK(super_ref != NULL); | 2975 DCHECK(super_ref != NULL); |
| 2972 __ ldr(r0, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 2976 __ ldr(r0, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
| 2973 __ Push(r0); | 2977 __ Push(r0); |
| 2974 __ CallRuntime(Runtime::kGetPrototype, 1); | 2978 __ CallRuntime(Runtime::kGetPrototype, 1); |
| 2975 } | 2979 } |
| 2976 | 2980 |
| (...skipping 2301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5278 | 5282 |
| 5279 DCHECK(interrupt_address == | 5283 DCHECK(interrupt_address == |
| 5280 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5284 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 5281 return OSR_AFTER_STACK_CHECK; | 5285 return OSR_AFTER_STACK_CHECK; |
| 5282 } | 5286 } |
| 5283 | 5287 |
| 5284 | 5288 |
| 5285 } } // namespace v8::internal | 5289 } } // namespace v8::internal |
| 5286 | 5290 |
| 5287 #endif // V8_TARGET_ARCH_ARM | 5291 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |