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

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

Issue 500423002: Minor-key-ify new LoadICTrampolineStub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | 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 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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_X64 7 #if V8_TARGET_ARCH_X64
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 4424 matching lines...) Expand 10 before | Expand all | Expand 10 after
4435 __ PopReturnAddressTo(rcx); 4435 __ PopReturnAddressTo(rcx);
4436 int additional_offset = 4436 int additional_offset =
4437 function_mode() == JS_FUNCTION_STUB_MODE ? kPointerSize : 0; 4437 function_mode() == JS_FUNCTION_STUB_MODE ? kPointerSize : 0;
4438 __ leap(rsp, MemOperand(rsp, rbx, times_pointer_size, additional_offset)); 4438 __ leap(rsp, MemOperand(rsp, rbx, times_pointer_size, additional_offset));
4439 __ jmp(rcx); // Return to IC Miss stub, continuation still on stack. 4439 __ jmp(rcx); // Return to IC Miss stub, continuation still on stack.
4440 } 4440 }
4441 4441
4442 4442
4443 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { 4443 void LoadICTrampolineStub::Generate(MacroAssembler* masm) {
4444 EmitLoadTypeFeedbackVector(masm, FullVectorLoadConvention::VectorRegister()); 4444 EmitLoadTypeFeedbackVector(masm, FullVectorLoadConvention::VectorRegister());
4445 VectorLoadStub stub(isolate(), state_); 4445 VectorLoadStub stub(isolate(), state());
4446 __ jmp(stub.GetCode(), RelocInfo::CODE_TARGET); 4446 __ jmp(stub.GetCode(), RelocInfo::CODE_TARGET);
4447 } 4447 }
4448 4448
4449 4449
4450 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { 4450 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) {
4451 EmitLoadTypeFeedbackVector(masm, FullVectorLoadConvention::VectorRegister()); 4451 EmitLoadTypeFeedbackVector(masm, FullVectorLoadConvention::VectorRegister());
4452 VectorKeyedLoadStub stub(isolate()); 4452 VectorKeyedLoadStub stub(isolate());
4453 __ jmp(stub.GetCode(), RelocInfo::CODE_TARGET); 4453 __ jmp(stub.GetCode(), RelocInfo::CODE_TARGET);
4454 } 4454 }
4455 4455
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
4989 return_value_operand, 4989 return_value_operand,
4990 NULL); 4990 NULL);
4991 } 4991 }
4992 4992
4993 4993
4994 #undef __ 4994 #undef __
4995 4995
4996 } } // namespace v8::internal 4996 } } // namespace v8::internal
4997 4997
4998 #endif // V8_TARGET_ARCH_X64 4998 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698