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

Side by Side Diff: src/ia32/code-stubs-ia32.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/code-stubs.h ('k') | src/x64/code-stubs-x64.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 #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 4484 matching lines...) Expand 10 before | Expand all | Expand 10 after
4495 __ pop(ecx); 4495 __ pop(ecx);
4496 int additional_offset = 4496 int additional_offset =
4497 function_mode() == JS_FUNCTION_STUB_MODE ? kPointerSize : 0; 4497 function_mode() == JS_FUNCTION_STUB_MODE ? kPointerSize : 0;
4498 __ lea(esp, MemOperand(esp, ebx, times_pointer_size, additional_offset)); 4498 __ lea(esp, MemOperand(esp, ebx, times_pointer_size, additional_offset));
4499 __ jmp(ecx); // Return to IC Miss stub, continuation still on stack. 4499 __ jmp(ecx); // Return to IC Miss stub, continuation still on stack.
4500 } 4500 }
4501 4501
4502 4502
4503 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { 4503 void LoadICTrampolineStub::Generate(MacroAssembler* masm) {
4504 EmitLoadTypeFeedbackVector(masm, FullVectorLoadConvention::VectorRegister()); 4504 EmitLoadTypeFeedbackVector(masm, FullVectorLoadConvention::VectorRegister());
4505 VectorLoadStub stub(isolate(), state_); 4505 VectorLoadStub stub(isolate(), state());
4506 __ jmp(stub.GetCode(), RelocInfo::CODE_TARGET); 4506 __ jmp(stub.GetCode(), RelocInfo::CODE_TARGET);
4507 } 4507 }
4508 4508
4509 4509
4510 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { 4510 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) {
4511 EmitLoadTypeFeedbackVector(masm, FullVectorLoadConvention::VectorRegister()); 4511 EmitLoadTypeFeedbackVector(masm, FullVectorLoadConvention::VectorRegister());
4512 VectorKeyedLoadStub stub(isolate()); 4512 VectorKeyedLoadStub stub(isolate());
4513 __ jmp(stub.GetCode(), RelocInfo::CODE_TARGET); 4513 __ jmp(stub.GetCode(), RelocInfo::CODE_TARGET);
4514 } 4514 }
4515 4515
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
5018 Operand(ebp, 7 * kPointerSize), 5018 Operand(ebp, 7 * kPointerSize),
5019 NULL); 5019 NULL);
5020 } 5020 }
5021 5021
5022 5022
5023 #undef __ 5023 #undef __
5024 5024
5025 } } // namespace v8::internal 5025 } } // namespace v8::internal
5026 5026
5027 #endif // V8_TARGET_ARCH_IA32 5027 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698