| 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 1230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1241 int num_arguments, | 1241 int num_arguments, |
| 1242 SaveFPRegsMode save_doubles = kDontSaveFPRegs); | 1242 SaveFPRegsMode save_doubles = kDontSaveFPRegs); |
| 1243 | 1243 |
| 1244 // Call a runtime function and save the value of XMM registers. | 1244 // Call a runtime function and save the value of XMM registers. |
| 1245 void CallRuntimeSaveDoubles(Runtime::FunctionId id) { | 1245 void CallRuntimeSaveDoubles(Runtime::FunctionId id) { |
| 1246 const Runtime::Function* function = Runtime::FunctionForId(id); | 1246 const Runtime::Function* function = Runtime::FunctionForId(id); |
| 1247 CallRuntime(function, function->nargs, kSaveFPRegs); | 1247 CallRuntime(function, function->nargs, kSaveFPRegs); |
| 1248 } | 1248 } |
| 1249 | 1249 |
| 1250 // Convenience function: Same as above, but takes the fid instead. | 1250 // Convenience function: Same as above, but takes the fid instead. |
| 1251 void CallRuntime(Runtime::FunctionId id, int num_arguments) { | 1251 void CallRuntime(Runtime::FunctionId id, |
| 1252 CallRuntime(Runtime::FunctionForId(id), num_arguments); | 1252 int num_arguments, |
| 1253 SaveFPRegsMode save_doubles = kDontSaveFPRegs) { |
| 1254 CallRuntime(Runtime::FunctionForId(id), num_arguments, save_doubles); |
| 1253 } | 1255 } |
| 1254 | 1256 |
| 1255 // Convenience function: call an external reference. | 1257 // Convenience function: call an external reference. |
| 1256 void CallExternalReference(const ExternalReference& ext, | 1258 void CallExternalReference(const ExternalReference& ext, |
| 1257 int num_arguments); | 1259 int num_arguments); |
| 1258 | 1260 |
| 1259 // Tail call of a runtime routine (jump). | 1261 // Tail call of a runtime routine (jump). |
| 1260 // Like JumpToExternalReference, but also takes care of passing the number | 1262 // Like JumpToExternalReference, but also takes care of passing the number |
| 1261 // of parameters. | 1263 // of parameters. |
| 1262 void TailCallExternalReference(const ExternalReference& ext, | 1264 void TailCallExternalReference(const ExternalReference& ext, |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1588 masm->popfq(); \ | 1590 masm->popfq(); \ |
| 1589 } \ | 1591 } \ |
| 1590 masm-> | 1592 masm-> |
| 1591 #else | 1593 #else |
| 1592 #define ACCESS_MASM(masm) masm-> | 1594 #define ACCESS_MASM(masm) masm-> |
| 1593 #endif | 1595 #endif |
| 1594 | 1596 |
| 1595 } } // namespace v8::internal | 1597 } } // namespace v8::internal |
| 1596 | 1598 |
| 1597 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1599 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
| OLD | NEW |