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

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

Issue 2532483002: [stubs] Port FastFunctionBindStub to TF (Closed)
Patch Set: Review feedback Created 4 years 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 | « src/x64/code-stubs-x64.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 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 #if V8_TARGET_ARCH_X87 5 #if V8_TARGET_ARCH_X87
6 6
7 #include "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/api-arguments.h" 8 #include "src/api-arguments.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 16 matching lines...) Expand all
27 void ArrayNArgumentsConstructorStub::Generate(MacroAssembler* masm) { 27 void ArrayNArgumentsConstructorStub::Generate(MacroAssembler* masm) {
28 __ pop(ecx); 28 __ pop(ecx);
29 __ mov(MemOperand(esp, eax, times_4, 0), edi); 29 __ mov(MemOperand(esp, eax, times_4, 0), edi);
30 __ push(edi); 30 __ push(edi);
31 __ push(ebx); 31 __ push(ebx);
32 __ push(ecx); 32 __ push(ecx);
33 __ add(eax, Immediate(3)); 33 __ add(eax, Immediate(3));
34 __ TailCallRuntime(Runtime::kNewArray); 34 __ TailCallRuntime(Runtime::kNewArray);
35 } 35 }
36 36
37 void FastFunctionBindStub::InitializeDescriptor(
38 CodeStubDescriptor* descriptor) {
39 Address deopt_handler = Runtime::FunctionForId(Runtime::kFunctionBind)->entry;
40 descriptor->Initialize(eax, deopt_handler, -1, JS_FUNCTION_STUB_MODE);
41 }
42
43 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm, 37 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm,
44 ExternalReference miss) { 38 ExternalReference miss) {
45 // Update the static counter each time a new code stub is generated. 39 // Update the static counter each time a new code stub is generated.
46 isolate()->counters()->code_stubs()->Increment(); 40 isolate()->counters()->code_stubs()->Increment();
47 41
48 CallInterfaceDescriptor descriptor = GetCallInterfaceDescriptor(); 42 CallInterfaceDescriptor descriptor = GetCallInterfaceDescriptor();
49 int param_count = descriptor.GetRegisterParameterCount(); 43 int param_count = descriptor.GetRegisterParameterCount();
50 { 44 {
51 // Call the runtime system in a fresh internal frame. 45 // Call the runtime system in a fresh internal frame.
52 FrameScope scope(masm, StackFrame::INTERNAL); 46 FrameScope scope(masm, StackFrame::INTERNAL);
(...skipping 4172 matching lines...) Expand 10 before | Expand all | Expand 10 after
4225 kStackUnwindSpace, nullptr, return_value_operand, 4219 kStackUnwindSpace, nullptr, return_value_operand,
4226 NULL); 4220 NULL);
4227 } 4221 }
4228 4222
4229 #undef __ 4223 #undef __
4230 4224
4231 } // namespace internal 4225 } // namespace internal
4232 } // namespace v8 4226 } // namespace v8
4233 4227
4234 #endif // V8_TARGET_ARCH_X87 4228 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698