| 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_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 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 4178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4230 kStackUnwindSpace, nullptr, return_value_operand, | 4225 kStackUnwindSpace, nullptr, return_value_operand, |
| 4231 NULL); | 4226 NULL); |
| 4232 } | 4227 } |
| 4233 | 4228 |
| 4234 #undef __ | 4229 #undef __ |
| 4235 | 4230 |
| 4236 } // namespace internal | 4231 } // namespace internal |
| 4237 } // namespace v8 | 4232 } // namespace v8 |
| 4238 | 4233 |
| 4239 #endif // V8_TARGET_ARCH_X87 | 4234 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |