Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: src/arm/code-stubs-arm.cc

Issue 942513002: Put the type feedback vector in the unoptimized JavaScript frame. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: ia32 lithium fix. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/arm/frames-arm.h » ('j') | src/arm/macro-assembler-arm.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/arm/frames-arm.h » ('j') | src/arm/macro-assembler-arm.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698