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/x87/code-stubs-x87.cc

Issue 513613003: X87: Minor-key-ify new LoadICTrampolineStub. (Closed) Base URL: https://chromium.googlesource.com/external/v8.git@bleeding_edge
Patch Set: Created 6 years, 3 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 | no next file » | 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_X87 7 #if V8_TARGET_ARCH_X87
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 4124 matching lines...) Expand 10 before | Expand all | Expand 10 after
4135 __ pop(ecx); 4135 __ pop(ecx);
4136 int additional_offset = 4136 int additional_offset =
4137 function_mode() == JS_FUNCTION_STUB_MODE ? kPointerSize : 0; 4137 function_mode() == JS_FUNCTION_STUB_MODE ? kPointerSize : 0;
4138 __ lea(esp, MemOperand(esp, ebx, times_pointer_size, additional_offset)); 4138 __ lea(esp, MemOperand(esp, ebx, times_pointer_size, additional_offset));
4139 __ jmp(ecx); // Return to IC Miss stub, continuation still on stack. 4139 __ jmp(ecx); // Return to IC Miss stub, continuation still on stack.
4140 } 4140 }
4141 4141
4142 4142
4143 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { 4143 void LoadICTrampolineStub::Generate(MacroAssembler* masm) {
4144 EmitLoadTypeFeedbackVector(masm, FullVectorLoadConvention::VectorRegister()); 4144 EmitLoadTypeFeedbackVector(masm, FullVectorLoadConvention::VectorRegister());
4145 VectorLoadStub stub(isolate(), state_); 4145 VectorLoadStub stub(isolate(), state());
4146 __ jmp(stub.GetCode(), RelocInfo::CODE_TARGET); 4146 __ jmp(stub.GetCode(), RelocInfo::CODE_TARGET);
4147 } 4147 }
4148 4148
4149 4149
4150 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { 4150 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) {
4151 EmitLoadTypeFeedbackVector(masm, FullVectorLoadConvention::VectorRegister()); 4151 EmitLoadTypeFeedbackVector(masm, FullVectorLoadConvention::VectorRegister());
4152 VectorKeyedLoadStub stub(isolate()); 4152 VectorKeyedLoadStub stub(isolate());
4153 __ jmp(stub.GetCode(), RelocInfo::CODE_TARGET); 4153 __ jmp(stub.GetCode(), RelocInfo::CODE_TARGET);
4154 } 4154 }
4155 4155
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
4658 Operand(ebp, 7 * kPointerSize), 4658 Operand(ebp, 7 * kPointerSize),
4659 NULL); 4659 NULL);
4660 } 4660 }
4661 4661
4662 4662
4663 #undef __ 4663 #undef __
4664 4664
4665 } } // namespace v8::internal 4665 } } // namespace v8::internal
4666 4666
4667 #endif // V8_TARGET_ARCH_X87 4667 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698