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/ia32/code-stubs-ia32.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
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_IA32 7 #if V8_TARGET_ARCH_IA32
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 4483 matching lines...) Expand 10 before | Expand all | Expand 10 after
4494 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE); 4494 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE);
4495 __ pop(ecx); 4495 __ pop(ecx);
4496 int additional_offset = function_mode_ == JS_FUNCTION_STUB_MODE 4496 int additional_offset = function_mode_ == JS_FUNCTION_STUB_MODE
4497 ? kPointerSize 4497 ? kPointerSize
4498 : 0; 4498 : 0;
4499 __ lea(esp, MemOperand(esp, ebx, times_pointer_size, additional_offset)); 4499 __ lea(esp, MemOperand(esp, ebx, times_pointer_size, additional_offset));
4500 __ jmp(ecx); // Return to IC Miss stub, continuation still on stack. 4500 __ jmp(ecx); // Return to IC Miss stub, continuation still on stack.
4501 } 4501 }
4502 4502
4503 4503
4504 void LoadICTrampolineStub::Generate(MacroAssembler* masm) {
4505 EmitLoadTypeFeedbackVector(masm, FullVectorLoadConvention::VectorRegister());
4506 if (GetCodeKind() == Code::KEYED_LOAD_IC) {
4507 VectorKeyedLoadStub stub(isolate());
4508 __ jmp(stub.GetCode(), RelocInfo::CODE_TARGET);
4509 } else {
4510 DCHECK(GetCodeKind() == Code::LOAD_IC);
4511 VectorLoadStub stub(isolate(), state_);
4512 __ jmp(stub.GetCode(), RelocInfo::CODE_TARGET);
4513 }
4514 }
4515
4516
4504 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { 4517 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) {
4505 if (masm->isolate()->function_entry_hook() != NULL) { 4518 if (masm->isolate()->function_entry_hook() != NULL) {
4506 ProfileEntryHookStub stub(masm->isolate()); 4519 ProfileEntryHookStub stub(masm->isolate());
4507 masm->CallStub(&stub); 4520 masm->CallStub(&stub);
4508 } 4521 }
4509 } 4522 }
4510 4523
4511 4524
4512 void ProfileEntryHookStub::Generate(MacroAssembler* masm) { 4525 void ProfileEntryHookStub::Generate(MacroAssembler* masm) {
4513 // Save volatile registers. 4526 // Save volatile registers.
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
5005 Operand(ebp, 7 * kPointerSize), 5018 Operand(ebp, 7 * kPointerSize),
5006 NULL); 5019 NULL);
5007 } 5020 }
5008 5021
5009 5022
5010 #undef __ 5023 #undef __
5011 5024
5012 } } // namespace v8::internal 5025 } } // namespace v8::internal
5013 5026
5014 #endif // V8_TARGET_ARCH_IA32 5027 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« src/arm64/code-stubs-arm64.cc ('K') | « src/code-stubs-hydrogen.cc ('k') | src/ic/ic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698