| 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 "v8.h" | 5 #include "v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
| 8 | 8 |
| 9 #include "codegen.h" | 9 #include "codegen.h" |
| 10 #include "deoptimizer.h" | 10 #include "deoptimizer.h" |
| (...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 __ j(not_equal, &loop); | 508 __ j(not_equal, &loop); |
| 509 | 509 |
| 510 // Get the function from the stack and call it. | 510 // Get the function from the stack and call it. |
| 511 // kPointerSize for the receiver. | 511 // kPointerSize for the receiver. |
| 512 __ mov(edi, Operand(esp, eax, times_4, kPointerSize)); | 512 __ mov(edi, Operand(esp, eax, times_4, kPointerSize)); |
| 513 | 513 |
| 514 // Invoke the code. | 514 // Invoke the code. |
| 515 if (is_construct) { | 515 if (is_construct) { |
| 516 // No type feedback cell is available | 516 // No type feedback cell is available |
| 517 __ mov(ebx, masm->isolate()->factory()->undefined_value()); | 517 __ mov(ebx, masm->isolate()->factory()->undefined_value()); |
| 518 CallConstructStub stub(masm->isolate(), NO_CALL_FUNCTION_FLAGS); | 518 CallConstructStub stub(masm->isolate(), NO_CALL_CONSTRUCTOR_FLAGS); |
| 519 __ CallStub(&stub); | 519 __ CallStub(&stub); |
| 520 } else { | 520 } else { |
| 521 ParameterCount actual(eax); | 521 ParameterCount actual(eax); |
| 522 __ InvokeFunction(edi, actual, CALL_FUNCTION, | 522 __ InvokeFunction(edi, actual, CALL_FUNCTION, |
| 523 NullCallWrapper()); | 523 NullCallWrapper()); |
| 524 } | 524 } |
| 525 | 525 |
| 526 // Exit the internal frame. Notice that this also removes the empty. | 526 // Exit the internal frame. Notice that this also removes the empty. |
| 527 // context and the function left on the stack by the code | 527 // context and the function left on the stack by the code |
| 528 // invocation. | 528 // invocation. |
| (...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1439 | 1439 |
| 1440 __ bind(&ok); | 1440 __ bind(&ok); |
| 1441 __ ret(0); | 1441 __ ret(0); |
| 1442 } | 1442 } |
| 1443 | 1443 |
| 1444 #undef __ | 1444 #undef __ |
| 1445 } | 1445 } |
| 1446 } // namespace v8::internal | 1446 } // namespace v8::internal |
| 1447 | 1447 |
| 1448 #endif // V8_TARGET_ARCH_IA32 | 1448 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |