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 2615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2626 __ GetBuiltinFunction(r1, Builtins::CALL_NON_FUNCTION_AS_CONSTRUCTOR); | 2626 __ GetBuiltinFunction(r1, Builtins::CALL_NON_FUNCTION_AS_CONSTRUCTOR); |
2627 __ bind(&do_call); | 2627 __ bind(&do_call); |
2628 // Set expected number of arguments to zero (not changing r0). | 2628 // Set expected number of arguments to zero (not changing r0). |
2629 __ mov(r2, Operand::Zero()); | 2629 __ mov(r2, Operand::Zero()); |
2630 __ Jump(masm->isolate()->builtins()->ArgumentsAdaptorTrampoline(), | 2630 __ Jump(masm->isolate()->builtins()->ArgumentsAdaptorTrampoline(), |
2631 RelocInfo::CODE_TARGET); | 2631 RelocInfo::CODE_TARGET); |
2632 } | 2632 } |
2633 | 2633 |
2634 | 2634 |
2635 static void EmitLoadTypeFeedbackVector(MacroAssembler* masm, Register vector) { | 2635 static void EmitLoadTypeFeedbackVector(MacroAssembler* masm, Register vector) { |
2636 __ ldr(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 2636 __ ldr(vector, |
2637 __ ldr(vector, FieldMemOperand(vector, | 2637 MemOperand(fp, JavaScriptFrameConstants::kFeedbackVectorOffset)); |
2638 JSFunction::kSharedFunctionInfoOffset)); | |
2639 __ ldr(vector, FieldMemOperand(vector, | |
2640 SharedFunctionInfo::kFeedbackVectorOffset)); | |
2641 } | 2638 } |
2642 | 2639 |
2643 | 2640 |
2644 void CallIC_ArrayStub::Generate(MacroAssembler* masm) { | 2641 void CallIC_ArrayStub::Generate(MacroAssembler* masm) { |
2645 // r1 - function | 2642 // r1 - function |
2646 // r3 - slot id | 2643 // r3 - slot id |
2647 // r2 - vector | 2644 // r2 - vector |
2648 Label miss; | 2645 Label miss; |
2649 int argc = arg_count(); | 2646 int argc = arg_count(); |
2650 ParameterCount actual(argc); | 2647 ParameterCount actual(argc); |
(...skipping 2351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5002 kStackUnwindSpace, NULL, | 4999 kStackUnwindSpace, NULL, |
5003 MemOperand(fp, 6 * kPointerSize), NULL); | 5000 MemOperand(fp, 6 * kPointerSize), NULL); |
5004 } | 5001 } |
5005 | 5002 |
5006 | 5003 |
5007 #undef __ | 5004 #undef __ |
5008 | 5005 |
5009 } } // namespace v8::internal | 5006 } } // namespace v8::internal |
5010 | 5007 |
5011 #endif // V8_TARGET_ARCH_ARM | 5008 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |