| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 __ j(not_equal, &loop); | 533 __ j(not_equal, &loop); |
| 534 | 534 |
| 535 // Get the function from the stack and call it. | 535 // Get the function from the stack and call it. |
| 536 // kPointerSize for the receiver. | 536 // kPointerSize for the receiver. |
| 537 __ mov(edi, Operand(esp, eax, times_4, kPointerSize)); | 537 __ mov(edi, Operand(esp, eax, times_4, kPointerSize)); |
| 538 | 538 |
| 539 // Invoke the code. | 539 // Invoke the code. |
| 540 if (is_construct) { | 540 if (is_construct) { |
| 541 // No type feedback cell is available | 541 // No type feedback cell is available |
| 542 __ mov(ebx, masm->isolate()->factory()->undefined_value()); | 542 __ mov(ebx, masm->isolate()->factory()->undefined_value()); |
| 543 CallConstructStub stub(NO_CALL_FUNCTION_FLAGS); | 543 CallConstructStub stub(masm->isolate(), NO_CALL_FUNCTION_FLAGS); |
| 544 __ CallStub(&stub); | 544 __ CallStub(&stub); |
| 545 } else { | 545 } else { |
| 546 ParameterCount actual(eax); | 546 ParameterCount actual(eax); |
| 547 __ InvokeFunction(edi, actual, CALL_FUNCTION, | 547 __ InvokeFunction(edi, actual, CALL_FUNCTION, |
| 548 NullCallWrapper()); | 548 NullCallWrapper()); |
| 549 } | 549 } |
| 550 | 550 |
| 551 // Exit the internal frame. Notice that this also removes the empty. | 551 // Exit the internal frame. Notice that this also removes the empty. |
| 552 // context and the function left on the stack by the code | 552 // context and the function left on the stack by the code |
| 553 // invocation. | 553 // invocation. |
| (...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1464 | 1464 |
| 1465 __ bind(&ok); | 1465 __ bind(&ok); |
| 1466 __ ret(0); | 1466 __ ret(0); |
| 1467 } | 1467 } |
| 1468 | 1468 |
| 1469 #undef __ | 1469 #undef __ |
| 1470 } | 1470 } |
| 1471 } // namespace v8::internal | 1471 } // namespace v8::internal |
| 1472 | 1472 |
| 1473 #endif // V8_TARGET_ARCH_IA32 | 1473 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |