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

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

Issue 499343002: Added vector-based loadic hydrogen stubs. Not yet callable. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: More comments. 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
« src/arm64/code-stubs-arm64.cc ('K') | « src/ic/ic.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 4423 matching lines...) Expand 10 before | Expand all | Expand 10 after
4434 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE); 4434 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE);
4435 __ PopReturnAddressTo(rcx); 4435 __ PopReturnAddressTo(rcx);
4436 int additional_offset = function_mode_ == JS_FUNCTION_STUB_MODE 4436 int additional_offset = function_mode_ == JS_FUNCTION_STUB_MODE
4437 ? kPointerSize 4437 ? kPointerSize
4438 : 0; 4438 : 0;
4439 __ leap(rsp, MemOperand(rsp, rbx, times_pointer_size, additional_offset)); 4439 __ leap(rsp, MemOperand(rsp, rbx, times_pointer_size, additional_offset));
4440 __ jmp(rcx); // Return to IC Miss stub, continuation still on stack. 4440 __ jmp(rcx); // Return to IC Miss stub, continuation still on stack.
4441 } 4441 }
4442 4442
4443 4443
4444 void LoadICTrampolineStub::Generate(MacroAssembler* masm) {
4445 EmitLoadTypeFeedbackVector(masm, FullVectorLoadConvention::VectorRegister());
4446 if (GetCodeKind() == Code::KEYED_LOAD_IC) {
4447 VectorKeyedLoadStub stub(isolate());
4448 __ jmp(stub.GetCode(), RelocInfo::CODE_TARGET);
4449 } else {
4450 DCHECK(GetCodeKind() == Code::LOAD_IC);
4451 VectorLoadStub stub(isolate(), state_);
4452 __ jmp(stub.GetCode(), RelocInfo::CODE_TARGET);
4453 }
4454 }
4455
4456
4444 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { 4457 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) {
4445 if (masm->isolate()->function_entry_hook() != NULL) { 4458 if (masm->isolate()->function_entry_hook() != NULL) {
4446 ProfileEntryHookStub stub(masm->isolate()); 4459 ProfileEntryHookStub stub(masm->isolate());
4447 masm->CallStub(&stub); 4460 masm->CallStub(&stub);
4448 } 4461 }
4449 } 4462 }
4450 4463
4451 4464
4452 void ProfileEntryHookStub::Generate(MacroAssembler* masm) { 4465 void ProfileEntryHookStub::Generate(MacroAssembler* masm) {
4453 // This stub can be called from essentially anywhere, so it needs to save 4466 // This stub can be called from essentially anywhere, so it needs to save
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
4976 return_value_operand, 4989 return_value_operand,
4977 NULL); 4990 NULL);
4978 } 4991 }
4979 4992
4980 4993
4981 #undef __ 4994 #undef __
4982 4995
4983 } } // namespace v8::internal 4996 } } // namespace v8::internal
4984 4997
4985 #endif // V8_TARGET_ARCH_X64 4998 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/arm64/code-stubs-arm64.cc ('K') | « src/ic/ic.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698