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

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

Issue 2065373003: [ic] LoadICState cleanup. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@cleanup-load-global-ic
Patch Set: Rebasing Created 4 years, 6 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/disassembler.cc ('k') | src/ic/handler-compiler.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 #if V8_TARGET_ARCH_IA32 5 #if V8_TARGET_ARCH_IA32
6 6
7 #include "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/api-arguments.h" 8 #include "src/api-arguments.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 3425 matching lines...) Expand 10 before | Expand all | Expand 10 after
3436 __ pop(ecx); 3436 __ pop(ecx);
3437 int additional_offset = 3437 int additional_offset =
3438 function_mode() == JS_FUNCTION_STUB_MODE ? kPointerSize : 0; 3438 function_mode() == JS_FUNCTION_STUB_MODE ? kPointerSize : 0;
3439 __ lea(esp, MemOperand(esp, ebx, times_pointer_size, additional_offset)); 3439 __ lea(esp, MemOperand(esp, ebx, times_pointer_size, additional_offset));
3440 __ jmp(ecx); // Return to IC Miss stub, continuation still on stack. 3440 __ jmp(ecx); // Return to IC Miss stub, continuation still on stack.
3441 } 3441 }
3442 3442
3443 3443
3444 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { 3444 void LoadICTrampolineStub::Generate(MacroAssembler* masm) {
3445 __ EmitLoadTypeFeedbackVector(LoadWithVectorDescriptor::VectorRegister()); 3445 __ EmitLoadTypeFeedbackVector(LoadWithVectorDescriptor::VectorRegister());
3446 LoadICStub stub(isolate(), state()); 3446 LoadICStub stub(isolate());
3447 stub.GenerateForTrampoline(masm); 3447 stub.GenerateForTrampoline(masm);
3448 } 3448 }
3449 3449
3450 3450
3451 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { 3451 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) {
3452 __ EmitLoadTypeFeedbackVector(LoadWithVectorDescriptor::VectorRegister()); 3452 __ EmitLoadTypeFeedbackVector(LoadWithVectorDescriptor::VectorRegister());
3453 KeyedLoadICStub stub(isolate(), state()); 3453 KeyedLoadICStub stub(isolate());
3454 stub.GenerateForTrampoline(masm); 3454 stub.GenerateForTrampoline(masm);
3455 } 3455 }
3456 3456
3457 3457
3458 static void HandleArrayCases(MacroAssembler* masm, Register receiver, 3458 static void HandleArrayCases(MacroAssembler* masm, Register receiver,
3459 Register key, Register vector, Register slot, 3459 Register key, Register vector, Register slot,
3460 Register feedback, bool is_polymorphic, 3460 Register feedback, bool is_polymorphic,
3461 Label* miss) { 3461 Label* miss) {
3462 // feedback initially contains the feedback array 3462 // feedback initially contains the feedback array
3463 Label next, next_loop, prepare_next; 3463 Label next, next_loop, prepare_next;
(...skipping 2154 matching lines...) Expand 10 before | Expand all | Expand 10 after
5618 kStackUnwindSpace, nullptr, return_value_operand, 5618 kStackUnwindSpace, nullptr, return_value_operand,
5619 NULL); 5619 NULL);
5620 } 5620 }
5621 5621
5622 #undef __ 5622 #undef __
5623 5623
5624 } // namespace internal 5624 } // namespace internal
5625 } // namespace v8 5625 } // namespace v8
5626 5626
5627 #endif // V8_TARGET_ARCH_IA32 5627 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/disassembler.cc ('k') | src/ic/handler-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698