OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 4265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4276 __ b(ne, &slow); | 4276 __ b(ne, &slow); |
4277 | 4277 |
4278 // Fast-case: Invoke the function now. | 4278 // Fast-case: Invoke the function now. |
4279 // r1: pushed function | 4279 // r1: pushed function |
4280 ParameterCount actual(argc_); | 4280 ParameterCount actual(argc_); |
4281 __ InvokeFunction(r1, actual, JUMP_FUNCTION); | 4281 __ InvokeFunction(r1, actual, JUMP_FUNCTION); |
4282 | 4282 |
4283 // Slow-case: Non-function called. | 4283 // Slow-case: Non-function called. |
4284 __ bind(&slow); | 4284 __ bind(&slow); |
4285 __ mov(r0, Operand(argc_)); // Setup the number of arguments. | 4285 __ mov(r0, Operand(argc_)); // Setup the number of arguments. |
4286 __ InvokeBuiltin(Builtins::CALL_NON_FUNCTION, JUMP_JS); | 4286 __ mov(r2, Operand(0)); |
| 4287 __ GetBuiltinEntry(r3, Builtins::CALL_NON_FUNCTION); |
| 4288 __ Jump(Handle<Code>(Builtins::builtin(Builtins::ArgumentsAdaptorTrampoline)), |
| 4289 RelocInfo::CODE_TARGET); |
4287 } | 4290 } |
4288 | 4291 |
4289 | 4292 |
4290 #undef __ | 4293 #undef __ |
4291 | 4294 |
4292 } } // namespace v8::internal | 4295 } } // namespace v8::internal |
OLD | NEW |