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

Side by Side Diff: src/arm/code-stubs-arm.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 | « no previous file | src/arm64/code-stubs-arm64.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_ARM 5 #if V8_TARGET_ARCH_ARM
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 3456 matching lines...) Expand 10 before | Expand all | Expand 10 after
3467 } 3467 }
3468 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE); 3468 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE);
3469 __ mov(r1, Operand(r1, LSL, kPointerSizeLog2)); 3469 __ mov(r1, Operand(r1, LSL, kPointerSizeLog2));
3470 __ add(sp, sp, r1); 3470 __ add(sp, sp, r1);
3471 __ Ret(); 3471 __ Ret();
3472 } 3472 }
3473 3473
3474 3474
3475 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { 3475 void LoadICTrampolineStub::Generate(MacroAssembler* masm) {
3476 __ EmitLoadTypeFeedbackVector(LoadWithVectorDescriptor::VectorRegister()); 3476 __ EmitLoadTypeFeedbackVector(LoadWithVectorDescriptor::VectorRegister());
3477 LoadICStub stub(isolate(), state()); 3477 LoadICStub stub(isolate());
3478 stub.GenerateForTrampoline(masm); 3478 stub.GenerateForTrampoline(masm);
3479 } 3479 }
3480 3480
3481 3481
3482 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { 3482 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) {
3483 __ EmitLoadTypeFeedbackVector(LoadWithVectorDescriptor::VectorRegister()); 3483 __ EmitLoadTypeFeedbackVector(LoadWithVectorDescriptor::VectorRegister());
3484 KeyedLoadICStub stub(isolate(), state()); 3484 KeyedLoadICStub stub(isolate());
3485 stub.GenerateForTrampoline(masm); 3485 stub.GenerateForTrampoline(masm);
3486 } 3486 }
3487 3487
3488 3488
3489 void CallICTrampolineStub::Generate(MacroAssembler* masm) { 3489 void CallICTrampolineStub::Generate(MacroAssembler* masm) {
3490 __ EmitLoadTypeFeedbackVector(r2); 3490 __ EmitLoadTypeFeedbackVector(r2);
3491 CallICStub stub(isolate(), state()); 3491 CallICStub stub(isolate(), state());
3492 __ Jump(stub.GetCode(), RelocInfo::CODE_TARGET); 3492 __ Jump(stub.GetCode(), RelocInfo::CODE_TARGET);
3493 } 3493 }
3494 3494
(...skipping 1844 matching lines...) Expand 10 before | Expand all | Expand 10 after
5339 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, 5339 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref,
5340 kStackUnwindSpace, NULL, return_value_operand, NULL); 5340 kStackUnwindSpace, NULL, return_value_operand, NULL);
5341 } 5341 }
5342 5342
5343 #undef __ 5343 #undef __
5344 5344
5345 } // namespace internal 5345 } // namespace internal
5346 } // namespace v8 5346 } // namespace v8
5347 5347
5348 #endif // V8_TARGET_ARCH_ARM 5348 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm64/code-stubs-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698