| 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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 __ bind(&entry); | 479 __ bind(&entry); |
| 480 __ cmp(ecx, eax); | 480 __ cmp(ecx, eax); |
| 481 __ j(not_equal, &loop); | 481 __ j(not_equal, &loop); |
| 482 | 482 |
| 483 // Get the function from the stack and call it. | 483 // Get the function from the stack and call it. |
| 484 // kPointerSize for the receiver. | 484 // kPointerSize for the receiver. |
| 485 __ mov(edi, Operand(esp, eax, times_4, kPointerSize)); | 485 __ mov(edi, Operand(esp, eax, times_4, kPointerSize)); |
| 486 | 486 |
| 487 // Invoke the code. | 487 // Invoke the code. |
| 488 if (is_construct) { | 488 if (is_construct) { |
| 489 // No type feedback cell is available |
| 490 Handle<Object> undefined_sentinel( |
| 491 masm->isolate()->heap()->undefined_value(), masm->isolate()); |
| 492 __ mov(ebx, Immediate(undefined_sentinel)); |
| 489 CallConstructStub stub(NO_CALL_FUNCTION_FLAGS); | 493 CallConstructStub stub(NO_CALL_FUNCTION_FLAGS); |
| 490 __ CallStub(&stub); | 494 __ CallStub(&stub); |
| 491 } else { | 495 } else { |
| 492 ParameterCount actual(eax); | 496 ParameterCount actual(eax); |
| 493 __ InvokeFunction(edi, actual, CALL_FUNCTION, | 497 __ InvokeFunction(edi, actual, CALL_FUNCTION, |
| 494 NullCallWrapper(), CALL_AS_METHOD); | 498 NullCallWrapper(), CALL_AS_METHOD); |
| 495 } | 499 } |
| 496 | 500 |
| 497 // Exit the internal frame. Notice that this also removes the empty. | 501 // Exit the internal frame. Notice that this also removes the empty. |
| 498 // context and the function left on the stack by the code | 502 // context and the function left on the stack by the code |
| (...skipping 1311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1810 Deoptimizer::EntryGenerator generator(masm, Deoptimizer::OSR); | 1814 Deoptimizer::EntryGenerator generator(masm, Deoptimizer::OSR); |
| 1811 generator.Generate(); | 1815 generator.Generate(); |
| 1812 } | 1816 } |
| 1813 | 1817 |
| 1814 | 1818 |
| 1815 #undef __ | 1819 #undef __ |
| 1816 } | 1820 } |
| 1817 } // namespace v8::internal | 1821 } // namespace v8::internal |
| 1818 | 1822 |
| 1819 #endif // V8_TARGET_ARCH_IA32 | 1823 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |