| 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 // Call a runtime routine. | 1038 // Call a runtime routine. |
| 1039 void CallRuntime(const Runtime::Function* f, | 1039 void CallRuntime(const Runtime::Function* f, |
| 1040 int num_arguments, | 1040 int num_arguments, |
| 1041 SaveFPRegsMode save_doubles = kDontSaveFPRegs); | 1041 SaveFPRegsMode save_doubles = kDontSaveFPRegs); |
| 1042 void CallRuntimeSaveDoubles(Runtime::FunctionId id) { | 1042 void CallRuntimeSaveDoubles(Runtime::FunctionId id) { |
| 1043 const Runtime::Function* function = Runtime::FunctionForId(id); | 1043 const Runtime::Function* function = Runtime::FunctionForId(id); |
| 1044 CallRuntime(function, function->nargs, kSaveFPRegs); | 1044 CallRuntime(function, function->nargs, kSaveFPRegs); |
| 1045 } | 1045 } |
| 1046 | 1046 |
| 1047 // Convenience function: Same as above, but takes the fid instead. | 1047 // Convenience function: Same as above, but takes the fid instead. |
| 1048 void CallRuntime(Runtime::FunctionId id, int num_arguments) { | 1048 void CallRuntime(Runtime::FunctionId id, |
| 1049 CallRuntime(Runtime::FunctionForId(id), num_arguments); | 1049 int num_arguments, |
| 1050 SaveFPRegsMode save_doubles = kDontSaveFPRegs) { |
| 1051 CallRuntime(Runtime::FunctionForId(id), num_arguments, save_doubles); |
| 1050 } | 1052 } |
| 1051 | 1053 |
| 1052 // Convenience function: call an external reference. | 1054 // Convenience function: call an external reference. |
| 1053 void CallExternalReference(const ExternalReference& ext, | 1055 void CallExternalReference(const ExternalReference& ext, |
| 1054 int num_arguments); | 1056 int num_arguments); |
| 1055 | 1057 |
| 1056 // Tail call of a runtime routine (jump). | 1058 // Tail call of a runtime routine (jump). |
| 1057 // Like JumpToExternalReference, but also takes care of passing the number | 1059 // Like JumpToExternalReference, but also takes care of passing the number |
| 1058 // of parameters. | 1060 // of parameters. |
| 1059 void TailCallExternalReference(const ExternalReference& ext, | 1061 void TailCallExternalReference(const ExternalReference& ext, |
| (...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1509 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1511 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1510 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1512 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1511 #else | 1513 #else |
| 1512 #define ACCESS_MASM(masm) masm-> | 1514 #define ACCESS_MASM(masm) masm-> |
| 1513 #endif | 1515 #endif |
| 1514 | 1516 |
| 1515 | 1517 |
| 1516 } } // namespace v8::internal | 1518 } } // namespace v8::internal |
| 1517 | 1519 |
| 1518 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1520 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |