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(NO_CALL_CONSTRUCTOR_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 872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1426 | 1426 |
1427 __ bind(&ok); | 1427 __ bind(&ok); |
1428 __ ret(0); | 1428 __ ret(0); |
1429 } | 1429 } |
1430 | 1430 |
1431 #undef __ | 1431 #undef __ |
1432 } | 1432 } |
1433 } // namespace v8::internal | 1433 } // namespace v8::internal |
1434 | 1434 |
1435 #endif // V8_TARGET_ARCH_IA32 | 1435 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |