| 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 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1038 | 1038 |
| 1039 // Call a code stub. | 1039 // Call a code stub. |
| 1040 void CallStub(CodeStub* stub, | 1040 void CallStub(CodeStub* stub, |
| 1041 TypeFeedbackId ast_id = TypeFeedbackId::None(), | 1041 TypeFeedbackId ast_id = TypeFeedbackId::None(), |
| 1042 Condition cond = al); | 1042 Condition cond = al); |
| 1043 | 1043 |
| 1044 // Call a code stub. | 1044 // Call a code stub. |
| 1045 void TailCallStub(CodeStub* stub, Condition cond = al); | 1045 void TailCallStub(CodeStub* stub, Condition cond = al); |
| 1046 | 1046 |
| 1047 // Call a runtime routine. | 1047 // Call a runtime routine. |
| 1048 void CallRuntime(const Runtime::Function* f, int num_arguments); | 1048 void CallRuntime(const Runtime::Function* f, |
| 1049 void CallRuntimeSaveDoubles(Runtime::FunctionId id); | 1049 int num_arguments, |
| 1050 SaveFPRegsMode save_doubles = kDontSaveFPRegs); |
| 1051 void CallRuntimeSaveDoubles(Runtime::FunctionId id) { |
| 1052 const Runtime::Function* function = Runtime::FunctionForId(id); |
| 1053 CallRuntime(function, function->nargs, kSaveFPRegs); |
| 1054 } |
| 1050 | 1055 |
| 1051 // Convenience function: Same as above, but takes the fid instead. | 1056 // Convenience function: Same as above, but takes the fid instead. |
| 1052 void CallRuntime(Runtime::FunctionId fid, int num_arguments); | 1057 void CallRuntime(Runtime::FunctionId id, int num_arguments) { |
| 1058 CallRuntime(Runtime::FunctionForId(id), num_arguments); |
| 1059 } |
| 1053 | 1060 |
| 1054 // Convenience function: call an external reference. | 1061 // Convenience function: call an external reference. |
| 1055 void CallExternalReference(const ExternalReference& ext, | 1062 void CallExternalReference(const ExternalReference& ext, |
| 1056 int num_arguments); | 1063 int num_arguments); |
| 1057 | 1064 |
| 1058 // Tail call of a runtime routine (jump). | 1065 // Tail call of a runtime routine (jump). |
| 1059 // Like JumpToExternalReference, but also takes care of passing the number | 1066 // Like JumpToExternalReference, but also takes care of passing the number |
| 1060 // of parameters. | 1067 // of parameters. |
| 1061 void TailCallExternalReference(const ExternalReference& ext, | 1068 void TailCallExternalReference(const ExternalReference& ext, |
| 1062 int num_arguments, | 1069 int num_arguments, |
| (...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1500 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1507 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1501 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1508 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1502 #else | 1509 #else |
| 1503 #define ACCESS_MASM(masm) masm-> | 1510 #define ACCESS_MASM(masm) masm-> |
| 1504 #endif | 1511 #endif |
| 1505 | 1512 |
| 1506 | 1513 |
| 1507 } } // namespace v8::internal | 1514 } } // namespace v8::internal |
| 1508 | 1515 |
| 1509 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1516 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |