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/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 2632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2643 __ GetBuiltinFunction(r1, Builtins::CALL_NON_FUNCTION_AS_CONSTRUCTOR); | 2643 __ GetBuiltinFunction(r1, Builtins::CALL_NON_FUNCTION_AS_CONSTRUCTOR); |
2644 __ bind(&do_call); | 2644 __ bind(&do_call); |
2645 // Set expected number of arguments to zero (not changing r0). | 2645 // Set expected number of arguments to zero (not changing r0). |
2646 __ mov(r2, Operand::Zero()); | 2646 __ mov(r2, Operand::Zero()); |
2647 __ Jump(masm->isolate()->builtins()->ArgumentsAdaptorTrampoline(), | 2647 __ Jump(masm->isolate()->builtins()->ArgumentsAdaptorTrampoline(), |
2648 RelocInfo::CODE_TARGET); | 2648 RelocInfo::CODE_TARGET); |
2649 } | 2649 } |
2650 | 2650 |
2651 | 2651 |
2652 static void EmitLoadTypeFeedbackVector(MacroAssembler* masm, Register vector) { | 2652 static void EmitLoadTypeFeedbackVector(MacroAssembler* masm, Register vector) { |
2653 __ ldr(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 2653 __ ldr(vector, |
2654 __ ldr(vector, FieldMemOperand(vector, | 2654 MemOperand(fp, JavaScriptFrameConstants::kFeedbackVectorOffset)); |
2655 JSFunction::kSharedFunctionInfoOffset)); | |
2656 __ ldr(vector, FieldMemOperand(vector, | |
2657 SharedFunctionInfo::kFeedbackVectorOffset)); | |
2658 } | 2655 } |
2659 | 2656 |
2660 | 2657 |
2661 void CallIC_ArrayStub::Generate(MacroAssembler* masm) { | 2658 void CallIC_ArrayStub::Generate(MacroAssembler* masm) { |
2662 // r1 - function | 2659 // r1 - function |
2663 // r3 - slot id | 2660 // r3 - slot id |
2664 // r2 - vector | 2661 // r2 - vector |
2665 Label miss; | 2662 Label miss; |
2666 int argc = arg_count(); | 2663 int argc = arg_count(); |
2667 ParameterCount actual(argc); | 2664 ParameterCount actual(argc); |
(...skipping 2615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5283 kStackUnwindSpace, NULL, | 5280 kStackUnwindSpace, NULL, |
5284 MemOperand(fp, 6 * kPointerSize), NULL); | 5281 MemOperand(fp, 6 * kPointerSize), NULL); |
5285 } | 5282 } |
5286 | 5283 |
5287 | 5284 |
5288 #undef __ | 5285 #undef __ |
5289 | 5286 |
5290 } } // namespace v8::internal | 5287 } } // namespace v8::internal |
5291 | 5288 |
5292 #endif // V8_TARGET_ARCH_ARM | 5289 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |