OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |