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

Side by Side Diff: src/x64/code-stubs-x64.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/ppc/code-stubs-ppc.cc ('k') | src/x87/code-stubs-x87.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 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 #if V8_TARGET_ARCH_X64 5 #if V8_TARGET_ARCH_X64
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/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 14 matching lines...) Expand all
25 void ArrayNArgumentsConstructorStub::Generate(MacroAssembler* masm) { 25 void ArrayNArgumentsConstructorStub::Generate(MacroAssembler* masm) {
26 __ popq(rcx); 26 __ popq(rcx);
27 __ movq(MemOperand(rsp, rax, times_8, 0), rdi); 27 __ movq(MemOperand(rsp, rax, times_8, 0), rdi);
28 __ pushq(rdi); 28 __ pushq(rdi);
29 __ pushq(rbx); 29 __ pushq(rbx);
30 __ pushq(rcx); 30 __ pushq(rcx);
31 __ addq(rax, Immediate(3)); 31 __ addq(rax, Immediate(3));
32 __ TailCallRuntime(Runtime::kNewArray); 32 __ TailCallRuntime(Runtime::kNewArray);
33 } 33 }
34 34
35 void FastFunctionBindStub::InitializeDescriptor(
36 CodeStubDescriptor* descriptor) {
37 Address deopt_handler = Runtime::FunctionForId(Runtime::kFunctionBind)->entry;
38 descriptor->Initialize(rax, deopt_handler, -1, JS_FUNCTION_STUB_MODE);
39 }
40
41 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm, 35 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm,
42 ExternalReference miss) { 36 ExternalReference miss) {
43 // Update the static counter each time a new code stub is generated. 37 // Update the static counter each time a new code stub is generated.
44 isolate()->counters()->code_stubs()->Increment(); 38 isolate()->counters()->code_stubs()->Increment();
45 39
46 CallInterfaceDescriptor descriptor = GetCallInterfaceDescriptor(); 40 CallInterfaceDescriptor descriptor = GetCallInterfaceDescriptor();
47 int param_count = descriptor.GetRegisterParameterCount(); 41 int param_count = descriptor.GetRegisterParameterCount();
48 { 42 {
49 // Call the runtime system in a fresh internal frame. 43 // Call the runtime system in a fresh internal frame.
50 FrameScope scope(masm, StackFrame::INTERNAL); 44 FrameScope scope(masm, StackFrame::INTERNAL);
(...skipping 4289 matching lines...) Expand 10 before | Expand all | Expand 10 after
4340 kStackUnwindSpace, nullptr, return_value_operand, 4334 kStackUnwindSpace, nullptr, return_value_operand,
4341 NULL); 4335 NULL);
4342 } 4336 }
4343 4337
4344 #undef __ 4338 #undef __
4345 4339
4346 } // namespace internal 4340 } // namespace internal
4347 } // namespace v8 4341 } // namespace v8
4348 4342
4349 #endif // V8_TARGET_ARCH_X64 4343 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ppc/code-stubs-ppc.cc ('k') | src/x87/code-stubs-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698