| 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-factory.h" | 7 #include "src/code-factory.h" |
| 8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
| 9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
| 10 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
| (...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 // kPointerSize for the receiver. | 577 // kPointerSize for the receiver. |
| 578 __ mov(edi, Operand(esp, eax, times_4, kPointerSize)); | 578 __ mov(edi, Operand(esp, eax, times_4, kPointerSize)); |
| 579 | 579 |
| 580 // Invoke the code. | 580 // Invoke the code. |
| 581 if (is_construct) { | 581 if (is_construct) { |
| 582 // No type feedback cell is available | 582 // No type feedback cell is available |
| 583 __ mov(ebx, masm->isolate()->factory()->undefined_value()); | 583 __ mov(ebx, masm->isolate()->factory()->undefined_value()); |
| 584 CallConstructStub stub(masm->isolate(), NO_CALL_CONSTRUCTOR_FLAGS); | 584 CallConstructStub stub(masm->isolate(), NO_CALL_CONSTRUCTOR_FLAGS); |
| 585 __ CallStub(&stub); | 585 __ CallStub(&stub); |
| 586 } else { | 586 } else { |
| 587 ParameterCount actual(eax); | 587 __ Call(masm->isolate()->builtins()->Call(), RelocInfo::CODE_TARGET); |
| 588 __ InvokeFunction(edi, actual, CALL_FUNCTION, | |
| 589 NullCallWrapper()); | |
| 590 } | 588 } |
| 591 | 589 |
| 592 // Exit the internal frame. Notice that this also removes the empty. | 590 // Exit the internal frame. Notice that this also removes the empty. |
| 593 // context and the function left on the stack by the code | 591 // context and the function left on the stack by the code |
| 594 // invocation. | 592 // invocation. |
| 595 } | 593 } |
| 596 __ ret(kPointerSize); // Remove receiver. | 594 __ ret(kPointerSize); // Remove receiver. |
| 597 } | 595 } |
| 598 | 596 |
| 599 | 597 |
| (...skipping 1150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1750 | 1748 |
| 1751 __ bind(&ok); | 1749 __ bind(&ok); |
| 1752 __ ret(0); | 1750 __ ret(0); |
| 1753 } | 1751 } |
| 1754 | 1752 |
| 1755 #undef __ | 1753 #undef __ |
| 1756 } // namespace internal | 1754 } // namespace internal |
| 1757 } // namespace v8 | 1755 } // namespace v8 |
| 1758 | 1756 |
| 1759 #endif // V8_TARGET_ARCH_X87 | 1757 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |