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

Side by Side Diff: src/ia32/code-stubs-ia32.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/frames.cc ('k') | src/ia32/deoptimizer-ia32.cc » ('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 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_IA32 7 #if V8_TARGET_ARCH_IA32
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 2192 matching lines...) Expand 10 before | Expand all | Expand 10 after
2203 __ bind(&do_call); 2203 __ bind(&do_call);
2204 // Set expected number of arguments to zero (not changing eax). 2204 // Set expected number of arguments to zero (not changing eax).
2205 __ Move(ebx, Immediate(0)); 2205 __ Move(ebx, Immediate(0));
2206 Handle<Code> arguments_adaptor = 2206 Handle<Code> arguments_adaptor =
2207 isolate()->builtins()->ArgumentsAdaptorTrampoline(); 2207 isolate()->builtins()->ArgumentsAdaptorTrampoline();
2208 __ jmp(arguments_adaptor, RelocInfo::CODE_TARGET); 2208 __ jmp(arguments_adaptor, RelocInfo::CODE_TARGET);
2209 } 2209 }
2210 2210
2211 2211
2212 static void EmitLoadTypeFeedbackVector(MacroAssembler* masm, Register vector) { 2212 static void EmitLoadTypeFeedbackVector(MacroAssembler* masm, Register vector) {
2213 __ mov(vector, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); 2213 __ mov(vector, Operand(ebp, JavaScriptFrameConstants::kFeedbackVectorOffset));
2214 __ mov(vector, FieldOperand(vector, JSFunction::kSharedFunctionInfoOffset));
2215 __ mov(vector, FieldOperand(vector,
2216 SharedFunctionInfo::kFeedbackVectorOffset));
2217 } 2214 }
2218 2215
2219 2216
2220 void CallIC_ArrayStub::Generate(MacroAssembler* masm) { 2217 void CallIC_ArrayStub::Generate(MacroAssembler* masm) {
2221 // edi - function 2218 // edi - function
2222 // edx - slot id 2219 // edx - slot id
2223 // ebx - vector 2220 // ebx - vector
2224 Label miss; 2221 Label miss;
2225 int argc = arg_count(); 2222 int argc = arg_count();
2226 ParameterCount actual(argc); 2223 ParameterCount actual(argc);
(...skipping 3176 matching lines...) Expand 10 before | Expand all | Expand 10 after
5403 ApiParameterOperand(2), kStackSpace, nullptr, 5400 ApiParameterOperand(2), kStackSpace, nullptr,
5404 Operand(ebp, 7 * kPointerSize), NULL); 5401 Operand(ebp, 7 * kPointerSize), NULL);
5405 } 5402 }
5406 5403
5407 5404
5408 #undef __ 5405 #undef __
5409 5406
5410 } } // namespace v8::internal 5407 } } // namespace v8::internal
5411 5408
5412 #endif // V8_TARGET_ARCH_IA32 5409 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/frames.cc ('k') | src/ia32/deoptimizer-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698