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

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

Issue 2497243002: [stubs] Port builtin for Array.push fast-case from Crankshaft to TF (Closed)
Patch Set: Fix GC mole 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/code-stubs-hydrogen.cc ('k') | src/interface-descriptors.h » ('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 #if V8_TARGET_ARCH_IA32 5 #if V8_TARGET_ARCH_IA32
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 FastArrayPushStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {
38 Address deopt_handler = Runtime::FunctionForId(Runtime::kArrayPush)->entry;
39 descriptor->Initialize(eax, deopt_handler, -1, JS_FUNCTION_STUB_MODE);
40 }
41
42 void FastFunctionBindStub::InitializeDescriptor( 37 void FastFunctionBindStub::InitializeDescriptor(
43 CodeStubDescriptor* descriptor) { 38 CodeStubDescriptor* descriptor) {
44 Address deopt_handler = Runtime::FunctionForId(Runtime::kFunctionBind)->entry; 39 Address deopt_handler = Runtime::FunctionForId(Runtime::kFunctionBind)->entry;
45 descriptor->Initialize(eax, deopt_handler, -1, JS_FUNCTION_STUB_MODE); 40 descriptor->Initialize(eax, deopt_handler, -1, JS_FUNCTION_STUB_MODE);
46 } 41 }
47 42
48 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm, 43 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm,
49 ExternalReference miss) { 44 ExternalReference miss) {
50 // Update the static counter each time a new code stub is generated. 45 // Update the static counter each time a new code stub is generated.
51 isolate()->counters()->code_stubs()->Increment(); 46 isolate()->counters()->code_stubs()->Increment();
(...skipping 4377 matching lines...) Expand 10 before | Expand all | Expand 10 after
4429 kStackUnwindSpace, nullptr, return_value_operand, 4424 kStackUnwindSpace, nullptr, return_value_operand,
4430 NULL); 4425 NULL);
4431 } 4426 }
4432 4427
4433 #undef __ 4428 #undef __
4434 4429
4435 } // namespace internal 4430 } // namespace internal
4436 } // namespace v8 4431 } // namespace v8
4437 4432
4438 #endif // V8_TARGET_ARCH_IA32 4433 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/interface-descriptors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698