| 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 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
| 8 | 8 |
| 9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 4106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4117 __ bind(&loop); | 4117 __ bind(&loop); |
| 4118 __ push(Operand(edx, -1 * kPointerSize)); | 4118 __ push(Operand(edx, -1 * kPointerSize)); |
| 4119 __ sub(edx, Immediate(kPointerSize)); | 4119 __ sub(edx, Immediate(kPointerSize)); |
| 4120 __ dec(ecx); | 4120 __ dec(ecx); |
| 4121 __ j(not_zero, &loop); | 4121 __ j(not_zero, &loop); |
| 4122 } | 4122 } |
| 4123 | 4123 |
| 4124 __ bind(&args_set_up); | 4124 __ bind(&args_set_up); |
| 4125 | 4125 |
| 4126 __ mov(edi, Operand(esp, eax, times_pointer_size, 0)); | 4126 __ mov(edi, Operand(esp, eax, times_pointer_size, 0)); |
| 4127 | 4127 __ mov(ebx, Immediate(isolate()->factory()->undefined_value())); |
| 4128 CallConstructStub stub(isolate(), SUPER_CONSTRUCTOR_CALL); | 4128 CallConstructStub stub(isolate(), SUPER_CONSTRUCTOR_CALL); |
| 4129 __ call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL); | 4129 __ call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL); |
| 4130 | 4130 |
| 4131 __ Drop(1); | 4131 __ Drop(1); |
| 4132 | 4132 |
| 4133 context()->Plug(eax); | 4133 context()->Plug(eax); |
| 4134 } | 4134 } |
| 4135 | 4135 |
| 4136 | 4136 |
| 4137 void FullCodeGenerator::EmitRegExpConstructResult(CallRuntime* expr) { | 4137 void FullCodeGenerator::EmitRegExpConstructResult(CallRuntime* expr) { |
| (...skipping 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5366 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 5366 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
| 5367 Assembler::target_address_at(call_target_address, | 5367 Assembler::target_address_at(call_target_address, |
| 5368 unoptimized_code)); | 5368 unoptimized_code)); |
| 5369 return OSR_AFTER_STACK_CHECK; | 5369 return OSR_AFTER_STACK_CHECK; |
| 5370 } | 5370 } |
| 5371 | 5371 |
| 5372 | 5372 |
| 5373 } } // namespace v8::internal | 5373 } } // namespace v8::internal |
| 5374 | 5374 |
| 5375 #endif // V8_TARGET_ARCH_IA32 | 5375 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |