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

Side by Side Diff: src/arm64/code-stubs-arm64.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
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 3018 matching lines...) Expand 10 before | Expand all | Expand 10 after
3029 3029
3030 __ Bind(&do_call); 3030 __ Bind(&do_call);
3031 // Set expected number of arguments to zero (not changing x0). 3031 // Set expected number of arguments to zero (not changing x0).
3032 __ Mov(x2, 0); 3032 __ Mov(x2, 0);
3033 __ Jump(isolate()->builtins()->ArgumentsAdaptorTrampoline(), 3033 __ Jump(isolate()->builtins()->ArgumentsAdaptorTrampoline(),
3034 RelocInfo::CODE_TARGET); 3034 RelocInfo::CODE_TARGET);
3035 } 3035 }
3036 3036
3037 3037
3038 static void EmitLoadTypeFeedbackVector(MacroAssembler* masm, Register vector) { 3038 static void EmitLoadTypeFeedbackVector(MacroAssembler* masm, Register vector) {
3039 __ Ldr(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 3039 __ Ldr(vector,
3040 __ Ldr(vector, FieldMemOperand(vector, 3040 MemOperand(fp, JavaScriptFrameConstants::kFeedbackVectorOffset));
3041 JSFunction::kSharedFunctionInfoOffset));
3042 __ Ldr(vector, FieldMemOperand(vector,
3043 SharedFunctionInfo::kFeedbackVectorOffset));
3044 } 3041 }
3045 3042
3046 3043
3047 void CallIC_ArrayStub::Generate(MacroAssembler* masm) { 3044 void CallIC_ArrayStub::Generate(MacroAssembler* masm) {
3048 // x1 - function 3045 // x1 - function
3049 // x3 - slot id 3046 // x3 - slot id
3050 // x2 - vector 3047 // x2 - vector
3051 Label miss; 3048 Label miss;
3052 Register function = x1; 3049 Register function = x1;
3053 Register feedback_vector = x2; 3050 Register feedback_vector = x2;
(...skipping 2427 matching lines...) Expand 10 before | Expand all | Expand 10 after
5481 kStackUnwindSpace, NULL, spill_offset, 5478 kStackUnwindSpace, NULL, spill_offset,
5482 MemOperand(fp, 6 * kPointerSize), NULL); 5479 MemOperand(fp, 6 * kPointerSize), NULL);
5483 } 5480 }
5484 5481
5485 5482
5486 #undef __ 5483 #undef __
5487 5484
5488 } } // namespace v8::internal 5485 } } // namespace v8::internal
5489 5486
5490 #endif // V8_TARGET_ARCH_ARM64 5487 #endif // V8_TARGET_ARCH_ARM64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698