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 1248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1259 int num_arguments, | 1259 int num_arguments, |
1260 SaveFPRegsMode save_doubles = kDontSaveFPRegs); | 1260 SaveFPRegsMode save_doubles = kDontSaveFPRegs); |
1261 | 1261 |
1262 // Call a runtime function and save the value of XMM registers. | 1262 // Call a runtime function and save the value of XMM registers. |
1263 void CallRuntimeSaveDoubles(Runtime::FunctionId id) { | 1263 void CallRuntimeSaveDoubles(Runtime::FunctionId id) { |
1264 const Runtime::Function* function = Runtime::FunctionForId(id); | 1264 const Runtime::Function* function = Runtime::FunctionForId(id); |
1265 CallRuntime(function, function->nargs, kSaveFPRegs); | 1265 CallRuntime(function, function->nargs, kSaveFPRegs); |
1266 } | 1266 } |
1267 | 1267 |
1268 // Convenience function: Same as above, but takes the fid instead. | 1268 // Convenience function: Same as above, but takes the fid instead. |
1269 void CallRuntime(Runtime::FunctionId id, int num_arguments) { | 1269 void CallRuntime(Runtime::FunctionId id, |
1270 CallRuntime(Runtime::FunctionForId(id), num_arguments); | 1270 int num_arguments, |
| 1271 SaveFPRegsMode save_doubles = kDontSaveFPRegs) { |
| 1272 CallRuntime(Runtime::FunctionForId(id), num_arguments, save_doubles); |
1271 } | 1273 } |
1272 | 1274 |
1273 // Convenience function: call an external reference. | 1275 // Convenience function: call an external reference. |
1274 void CallExternalReference(const ExternalReference& ext, | 1276 void CallExternalReference(const ExternalReference& ext, |
1275 int num_arguments); | 1277 int num_arguments); |
1276 | 1278 |
1277 // Tail call of a runtime routine (jump). | 1279 // Tail call of a runtime routine (jump). |
1278 // Like JumpToExternalReference, but also takes care of passing the number | 1280 // Like JumpToExternalReference, but also takes care of passing the number |
1279 // of parameters. | 1281 // of parameters. |
1280 void TailCallExternalReference(const ExternalReference& ext, | 1282 void TailCallExternalReference(const ExternalReference& ext, |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1610 masm->popfq(); \ | 1612 masm->popfq(); \ |
1611 } \ | 1613 } \ |
1612 masm-> | 1614 masm-> |
1613 #else | 1615 #else |
1614 #define ACCESS_MASM(masm) masm-> | 1616 #define ACCESS_MASM(masm) masm-> |
1615 #endif | 1617 #endif |
1616 | 1618 |
1617 } } // namespace v8::internal | 1619 } } // namespace v8::internal |
1618 | 1620 |
1619 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1621 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |