| 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_X87 | 7 #if V8_TARGET_ARCH_X87 |
| 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 4092 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4103 __ bind(&loop); | 4103 __ bind(&loop); |
| 4104 __ push(Operand(edx, -1 * kPointerSize)); | 4104 __ push(Operand(edx, -1 * kPointerSize)); |
| 4105 __ sub(edx, Immediate(kPointerSize)); | 4105 __ sub(edx, Immediate(kPointerSize)); |
| 4106 __ dec(ecx); | 4106 __ dec(ecx); |
| 4107 __ j(not_zero, &loop); | 4107 __ j(not_zero, &loop); |
| 4108 } | 4108 } |
| 4109 | 4109 |
| 4110 __ bind(&args_set_up); | 4110 __ bind(&args_set_up); |
| 4111 | 4111 |
| 4112 __ mov(edi, Operand(esp, eax, times_pointer_size, 0)); | 4112 __ mov(edi, Operand(esp, eax, times_pointer_size, 0)); |
| 4113 | 4113 __ mov(ebx, Immediate(isolate()->factory()->undefined_value())); |
| 4114 CallConstructStub stub(isolate(), SUPER_CONSTRUCTOR_CALL); | 4114 CallConstructStub stub(isolate(), SUPER_CONSTRUCTOR_CALL); |
| 4115 __ call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL); | 4115 __ call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL); |
| 4116 | 4116 |
| 4117 __ Drop(1); | 4117 __ Drop(1); |
| 4118 | 4118 |
| 4119 context()->Plug(eax); | 4119 context()->Plug(eax); |
| 4120 } | 4120 } |
| 4121 | 4121 |
| 4122 | 4122 |
| 4123 void FullCodeGenerator::EmitRegExpConstructResult(CallRuntime* expr) { | 4123 void FullCodeGenerator::EmitRegExpConstructResult(CallRuntime* expr) { |
| (...skipping 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5352 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 5352 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
| 5353 Assembler::target_address_at(call_target_address, | 5353 Assembler::target_address_at(call_target_address, |
| 5354 unoptimized_code)); | 5354 unoptimized_code)); |
| 5355 return OSR_AFTER_STACK_CHECK; | 5355 return OSR_AFTER_STACK_CHECK; |
| 5356 } | 5356 } |
| 5357 | 5357 |
| 5358 | 5358 |
| 5359 } } // namespace v8::internal | 5359 } } // namespace v8::internal |
| 5360 | 5360 |
| 5361 #endif // V8_TARGET_ARCH_X87 | 5361 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |