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

Side by Side Diff: src/x64/code-stubs-x64.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: Reduced constant in deep recursion test for windows. Created 5 years, 9 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 | « src/isolate.cc ('k') | src/x64/frames-x64.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_X64 7 #if V8_TARGET_ARCH_X64
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 2068 matching lines...) Expand 10 before | Expand all | Expand 10 after
2079 __ GetBuiltinEntry(rdx, Builtins::CALL_NON_FUNCTION_AS_CONSTRUCTOR); 2079 __ GetBuiltinEntry(rdx, Builtins::CALL_NON_FUNCTION_AS_CONSTRUCTOR);
2080 __ bind(&do_call); 2080 __ bind(&do_call);
2081 // Set expected number of arguments to zero (not changing rax). 2081 // Set expected number of arguments to zero (not changing rax).
2082 __ Set(rbx, 0); 2082 __ Set(rbx, 0);
2083 __ Jump(isolate()->builtins()->ArgumentsAdaptorTrampoline(), 2083 __ Jump(isolate()->builtins()->ArgumentsAdaptorTrampoline(),
2084 RelocInfo::CODE_TARGET); 2084 RelocInfo::CODE_TARGET);
2085 } 2085 }
2086 2086
2087 2087
2088 static void EmitLoadTypeFeedbackVector(MacroAssembler* masm, Register vector) { 2088 static void EmitLoadTypeFeedbackVector(MacroAssembler* masm, Register vector) {
2089 __ movp(vector, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); 2089 __ movp(vector,
2090 __ movp(vector, FieldOperand(vector, JSFunction::kSharedFunctionInfoOffset)); 2090 Operand(rbp, JavaScriptFrameConstants::kFeedbackVectorOffset));
2091 __ movp(vector, FieldOperand(vector,
2092 SharedFunctionInfo::kFeedbackVectorOffset));
2093 } 2091 }
2094 2092
2095 2093
2096 void CallIC_ArrayStub::Generate(MacroAssembler* masm) { 2094 void CallIC_ArrayStub::Generate(MacroAssembler* masm) {
2097 // rdi - function 2095 // rdi - function
2098 // rdx - slot id (as integer) 2096 // rdx - slot id (as integer)
2099 // rbx - vector 2097 // rbx - vector
2100 Label miss; 2098 Label miss;
2101 int argc = arg_count(); 2099 int argc = arg_count();
2102 ParameterCount actual(argc); 2100 ParameterCount actual(argc);
(...skipping 3255 matching lines...) Expand 10 before | Expand all | Expand 10 after
5358 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, getter_arg, 5356 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, getter_arg,
5359 kStackSpace, nullptr, return_value_operand, NULL); 5357 kStackSpace, nullptr, return_value_operand, NULL);
5360 } 5358 }
5361 5359
5362 5360
5363 #undef __ 5361 #undef __
5364 5362
5365 } } // namespace v8::internal 5363 } } // namespace v8::internal
5366 5364
5367 #endif // V8_TARGET_ARCH_X64 5365 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/x64/frames-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698