OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 4692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4703 __ Branch(&slow, ne, a2, Operand(JS_FUNCTION_TYPE)); | 4703 __ Branch(&slow, ne, a2, Operand(JS_FUNCTION_TYPE)); |
4704 | 4704 |
4705 // Fast-case: Invoke the function now. | 4705 // Fast-case: Invoke the function now. |
4706 // a1: pushed function | 4706 // a1: pushed function |
4707 ParameterCount actual(argc_); | 4707 ParameterCount actual(argc_); |
4708 | 4708 |
4709 if (ReceiverMightBeImplicit()) { | 4709 if (ReceiverMightBeImplicit()) { |
4710 Label call_as_function; | 4710 Label call_as_function; |
4711 __ LoadRoot(at, Heap::kTheHoleValueRootIndex); | 4711 __ LoadRoot(at, Heap::kTheHoleValueRootIndex); |
4712 __ Branch(&call_as_function, eq, t0, Operand(at)); | 4712 __ Branch(&call_as_function, eq, t0, Operand(at)); |
4713 __ InvokeFunction(a1, actual, JUMP_FUNCTION); | 4713 __ InvokeFunction(a1, |
| 4714 actual, |
| 4715 JUMP_FUNCTION, |
| 4716 NullCallWrapper(), |
| 4717 CALL_AS_METHOD); |
4714 __ bind(&call_as_function); | 4718 __ bind(&call_as_function); |
4715 } | 4719 } |
4716 __ InvokeFunction(a1, | 4720 __ InvokeFunction(a1, |
4717 actual, | 4721 actual, |
4718 JUMP_FUNCTION, | 4722 JUMP_FUNCTION, |
4719 NullCallWrapper(), | 4723 NullCallWrapper(), |
4720 CALL_AS_FUNCTION); | 4724 CALL_AS_FUNCTION); |
4721 | 4725 |
4722 // Slow-case: Non-function called. | 4726 // Slow-case: Non-function called. |
4723 __ bind(&slow); | 4727 __ bind(&slow); |
(...skipping 1941 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6665 __ mov(result, zero_reg); | 6669 __ mov(result, zero_reg); |
6666 __ Ret(); | 6670 __ Ret(); |
6667 } | 6671 } |
6668 | 6672 |
6669 | 6673 |
6670 #undef __ | 6674 #undef __ |
6671 | 6675 |
6672 } } // namespace v8::internal | 6676 } } // namespace v8::internal |
6673 | 6677 |
6674 #endif // V8_TARGET_ARCH_MIPS | 6678 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |