| 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 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1047 // Call a runtime routine. | 1047 // Call a runtime routine. |
| 1048 void CallRuntime(const Runtime::Function* f, | 1048 void CallRuntime(const Runtime::Function* f, |
| 1049 int num_arguments, | 1049 int num_arguments, |
| 1050 SaveFPRegsMode save_doubles = kDontSaveFPRegs); | 1050 SaveFPRegsMode save_doubles = kDontSaveFPRegs); |
| 1051 void CallRuntimeSaveDoubles(Runtime::FunctionId id) { | 1051 void CallRuntimeSaveDoubles(Runtime::FunctionId id) { |
| 1052 const Runtime::Function* function = Runtime::FunctionForId(id); | 1052 const Runtime::Function* function = Runtime::FunctionForId(id); |
| 1053 CallRuntime(function, function->nargs, kSaveFPRegs); | 1053 CallRuntime(function, function->nargs, kSaveFPRegs); |
| 1054 } | 1054 } |
| 1055 | 1055 |
| 1056 // Convenience function: Same as above, but takes the fid instead. | 1056 // Convenience function: Same as above, but takes the fid instead. |
| 1057 void CallRuntime(Runtime::FunctionId id, int num_arguments) { | 1057 void CallRuntime(Runtime::FunctionId id, |
| 1058 CallRuntime(Runtime::FunctionForId(id), num_arguments); | 1058 int num_arguments, |
| 1059 SaveFPRegsMode save_doubles = kDontSaveFPRegs) { |
| 1060 CallRuntime(Runtime::FunctionForId(id), num_arguments, save_doubles); |
| 1059 } | 1061 } |
| 1060 | 1062 |
| 1061 // Convenience function: call an external reference. | 1063 // Convenience function: call an external reference. |
| 1062 void CallExternalReference(const ExternalReference& ext, | 1064 void CallExternalReference(const ExternalReference& ext, |
| 1063 int num_arguments); | 1065 int num_arguments); |
| 1064 | 1066 |
| 1065 // Tail call of a runtime routine (jump). | 1067 // Tail call of a runtime routine (jump). |
| 1066 // Like JumpToExternalReference, but also takes care of passing the number | 1068 // Like JumpToExternalReference, but also takes care of passing the number |
| 1067 // of parameters. | 1069 // of parameters. |
| 1068 void TailCallExternalReference(const ExternalReference& ext, | 1070 void TailCallExternalReference(const ExternalReference& ext, |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1527 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1529 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1528 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1530 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1529 #else | 1531 #else |
| 1530 #define ACCESS_MASM(masm) masm-> | 1532 #define ACCESS_MASM(masm) masm-> |
| 1531 #endif | 1533 #endif |
| 1532 | 1534 |
| 1533 | 1535 |
| 1534 } } // namespace v8::internal | 1536 } } // namespace v8::internal |
| 1535 | 1537 |
| 1536 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1538 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |