| 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 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 616 } | 616 } |
| 617 | 617 |
| 618 // Invoke function. | 618 // Invoke function. |
| 619 if (can_do_fast_api_call) { | 619 if (can_do_fast_api_call) { |
| 620 GenerateFastApiCall(masm, optimization, arguments_.immediate()); | 620 GenerateFastApiCall(masm, optimization, arguments_.immediate()); |
| 621 } else { | 621 } else { |
| 622 CallKind call_kind = CallICBase::Contextual::decode(extra_ic_state_) | 622 CallKind call_kind = CallICBase::Contextual::decode(extra_ic_state_) |
| 623 ? CALL_AS_FUNCTION | 623 ? CALL_AS_FUNCTION |
| 624 : CALL_AS_METHOD; | 624 : CALL_AS_METHOD; |
| 625 Handle<JSFunction> fun = optimization.constant_function(); | 625 Handle<JSFunction> fun = optimization.constant_function(); |
| 626 __ InvokeFunction(fun, ParameterCount(fun), arguments_, | 626 ParameterCount expected(fun); |
| 627 __ InvokeFunction(fun, expected, arguments_, |
| 627 JUMP_FUNCTION, NullCallWrapper(), call_kind); | 628 JUMP_FUNCTION, NullCallWrapper(), call_kind); |
| 628 } | 629 } |
| 629 | 630 |
| 630 // Deferred code for fast API call case---clean preallocated space. | 631 // Deferred code for fast API call case---clean preallocated space. |
| 631 if (can_do_fast_api_call) { | 632 if (can_do_fast_api_call) { |
| 632 __ bind(&miss_cleanup); | 633 __ bind(&miss_cleanup); |
| 633 FreeSpaceForFastApiCall(masm, scratch1); | 634 FreeSpaceForFastApiCall(masm, scratch1); |
| 634 __ jmp(miss_label); | 635 __ jmp(miss_label); |
| 635 } | 636 } |
| 636 | 637 |
| (...skipping 2840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3477 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow); | 3478 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow); |
| 3478 } | 3479 } |
| 3479 } | 3480 } |
| 3480 | 3481 |
| 3481 | 3482 |
| 3482 #undef __ | 3483 #undef __ |
| 3483 | 3484 |
| 3484 } } // namespace v8::internal | 3485 } } // namespace v8::internal |
| 3485 | 3486 |
| 3486 #endif // V8_TARGET_ARCH_X64 | 3487 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |