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-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 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 // kPointerSize for the receiver. | 527 // kPointerSize for the receiver. |
528 __ mov(edi, Operand(esp, eax, times_4, kPointerSize)); | 528 __ mov(edi, Operand(esp, eax, times_4, kPointerSize)); |
529 | 529 |
530 // Invoke the code. | 530 // Invoke the code. |
531 if (is_construct) { | 531 if (is_construct) { |
532 // No type feedback cell is available | 532 // No type feedback cell is available |
533 __ mov(ebx, masm->isolate()->factory()->undefined_value()); | 533 __ mov(ebx, masm->isolate()->factory()->undefined_value()); |
534 CallConstructStub stub(masm->isolate(), NO_CALL_CONSTRUCTOR_FLAGS); | 534 CallConstructStub stub(masm->isolate(), NO_CALL_CONSTRUCTOR_FLAGS); |
535 __ CallStub(&stub); | 535 __ CallStub(&stub); |
536 } else { | 536 } else { |
537 ParameterCount actual(eax); | 537 __ Call(masm->isolate()->builtins()->Call(), RelocInfo::CODE_TARGET); |
538 __ InvokeFunction(edi, actual, CALL_FUNCTION, | |
539 NullCallWrapper()); | |
540 } | 538 } |
541 | 539 |
542 // Exit the internal frame. Notice that this also removes the empty. | 540 // Exit the internal frame. Notice that this also removes the empty. |
543 // context and the function left on the stack by the code | 541 // context and the function left on the stack by the code |
544 // invocation. | 542 // invocation. |
545 } | 543 } |
546 __ ret(kPointerSize); // Remove receiver. | 544 __ ret(kPointerSize); // Remove receiver. |
547 } | 545 } |
548 | 546 |
549 | 547 |
(...skipping 1220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1770 | 1768 |
1771 __ bind(&ok); | 1769 __ bind(&ok); |
1772 __ ret(0); | 1770 __ ret(0); |
1773 } | 1771 } |
1774 | 1772 |
1775 #undef __ | 1773 #undef __ |
1776 } // namespace internal | 1774 } // namespace internal |
1777 } // namespace v8 | 1775 } // namespace v8 |
1778 | 1776 |
1779 #endif // V8_TARGET_ARCH_IA32 | 1777 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |