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 4522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4533 __ b(ne, &slow); | 4533 __ b(ne, &slow); |
4534 | 4534 |
4535 // Fast-case: Invoke the function now. | 4535 // Fast-case: Invoke the function now. |
4536 // r1: pushed function | 4536 // r1: pushed function |
4537 ParameterCount actual(argc_); | 4537 ParameterCount actual(argc_); |
4538 | 4538 |
4539 if (ReceiverMightBeImplicit()) { | 4539 if (ReceiverMightBeImplicit()) { |
4540 Label call_as_function; | 4540 Label call_as_function; |
4541 __ CompareRoot(r4, Heap::kTheHoleValueRootIndex); | 4541 __ CompareRoot(r4, Heap::kTheHoleValueRootIndex); |
4542 __ b(eq, &call_as_function); | 4542 __ b(eq, &call_as_function); |
4543 __ InvokeFunction(r1, actual, JUMP_FUNCTION); | 4543 __ InvokeFunction(r1, |
| 4544 actual, |
| 4545 JUMP_FUNCTION, |
| 4546 NullCallWrapper(), |
| 4547 CALL_AS_METHOD); |
4544 __ bind(&call_as_function); | 4548 __ bind(&call_as_function); |
4545 } | 4549 } |
4546 __ InvokeFunction(r1, | 4550 __ InvokeFunction(r1, |
4547 actual, | 4551 actual, |
4548 JUMP_FUNCTION, | 4552 JUMP_FUNCTION, |
4549 NullCallWrapper(), | 4553 NullCallWrapper(), |
4550 CALL_AS_FUNCTION); | 4554 CALL_AS_FUNCTION); |
4551 | 4555 |
4552 // Slow-case: Non-function called. | 4556 // Slow-case: Non-function called. |
4553 __ bind(&slow); | 4557 __ bind(&slow); |
(...skipping 1852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6406 __ mov(result, Operand(0)); | 6410 __ mov(result, Operand(0)); |
6407 __ Ret(); | 6411 __ Ret(); |
6408 } | 6412 } |
6409 | 6413 |
6410 | 6414 |
6411 #undef __ | 6415 #undef __ |
6412 | 6416 |
6413 } } // namespace v8::internal | 6417 } } // namespace v8::internal |
6414 | 6418 |
6415 #endif // V8_TARGET_ARCH_ARM | 6419 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |