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

Side by Side Diff: src/x64/code-stubs-x64.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/s390/code-stubs-s390.cc ('k') | src/x87/code-stubs-x87.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 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 #if V8_TARGET_ARCH_X64 5 #if V8_TARGET_ARCH_X64
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/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 3360 matching lines...) Expand 10 before | Expand all | Expand 10 after
3371 __ PopReturnAddressTo(rcx); 3371 __ PopReturnAddressTo(rcx);
3372 int additional_offset = 3372 int additional_offset =
3373 function_mode() == JS_FUNCTION_STUB_MODE ? kPointerSize : 0; 3373 function_mode() == JS_FUNCTION_STUB_MODE ? kPointerSize : 0;
3374 __ leap(rsp, MemOperand(rsp, rbx, times_pointer_size, additional_offset)); 3374 __ leap(rsp, MemOperand(rsp, rbx, times_pointer_size, additional_offset));
3375 __ jmp(rcx); // Return to IC Miss stub, continuation still on stack. 3375 __ jmp(rcx); // Return to IC Miss stub, continuation still on stack.
3376 } 3376 }
3377 3377
3378 3378
3379 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { 3379 void LoadICTrampolineStub::Generate(MacroAssembler* masm) {
3380 __ EmitLoadTypeFeedbackVector(LoadWithVectorDescriptor::VectorRegister()); 3380 __ EmitLoadTypeFeedbackVector(LoadWithVectorDescriptor::VectorRegister());
3381 LoadICStub stub(isolate(), state()); 3381 LoadICStub stub(isolate());
3382 stub.GenerateForTrampoline(masm); 3382 stub.GenerateForTrampoline(masm);
3383 } 3383 }
3384 3384
3385 3385
3386 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { 3386 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) {
3387 __ EmitLoadTypeFeedbackVector(LoadWithVectorDescriptor::VectorRegister()); 3387 __ EmitLoadTypeFeedbackVector(LoadWithVectorDescriptor::VectorRegister());
3388 KeyedLoadICStub stub(isolate(), state()); 3388 KeyedLoadICStub stub(isolate());
3389 stub.GenerateForTrampoline(masm); 3389 stub.GenerateForTrampoline(masm);
3390 } 3390 }
3391 3391
3392 3392
3393 static void HandleArrayCases(MacroAssembler* masm, Register feedback, 3393 static void HandleArrayCases(MacroAssembler* masm, Register feedback,
3394 Register receiver_map, Register scratch1, 3394 Register receiver_map, Register scratch1,
3395 Register scratch2, Register scratch3, 3395 Register scratch2, Register scratch3,
3396 bool is_polymorphic, Label* miss) { 3396 bool is_polymorphic, Label* miss) {
3397 // feedback initially contains the feedback array 3397 // feedback initially contains the feedback array
3398 Label next_loop, prepare_next; 3398 Label next_loop, prepare_next;
(...skipping 1931 matching lines...) Expand 10 before | Expand all | Expand 10 after
5330 kStackUnwindSpace, nullptr, return_value_operand, 5330 kStackUnwindSpace, nullptr, return_value_operand,
5331 NULL); 5331 NULL);
5332 } 5332 }
5333 5333
5334 #undef __ 5334 #undef __
5335 5335
5336 } // namespace internal 5336 } // namespace internal
5337 } // namespace v8 5337 } // namespace v8
5338 5338
5339 #endif // V8_TARGET_ARCH_X64 5339 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/s390/code-stubs-s390.cc ('k') | src/x87/code-stubs-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698