OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 5 #ifndef V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
6 #define V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 6 #define V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
10 #include "src/frames.h" | 10 #include "src/frames.h" |
(...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1078 } | 1078 } |
1079 | 1079 |
1080 // Convenience function: call an external reference. | 1080 // Convenience function: call an external reference. |
1081 void CallExternalReference(const ExternalReference& ext, | 1081 void CallExternalReference(const ExternalReference& ext, |
1082 int num_arguments); | 1082 int num_arguments); |
1083 | 1083 |
1084 // Tail call of a runtime routine (jump). | 1084 // Tail call of a runtime routine (jump). |
1085 // Like JumpToExternalReference, but also takes care of passing the number | 1085 // Like JumpToExternalReference, but also takes care of passing the number |
1086 // of parameters. | 1086 // of parameters. |
1087 void TailCallExternalReference(const ExternalReference& ext, | 1087 void TailCallExternalReference(const ExternalReference& ext, |
1088 int num_arguments, | 1088 int num_arguments); |
1089 int result_size); | |
1090 | 1089 |
1091 // Convenience function: tail call a runtime routine (jump). | 1090 // Convenience function: tail call a runtime routine (jump). |
1092 void TailCallRuntime(Runtime::FunctionId fid, | 1091 void TailCallRuntime(Runtime::FunctionId fid, int num_arguments); |
1093 int num_arguments, | |
1094 int result_size); | |
1095 | 1092 |
1096 int CalculateStackPassedWords(int num_reg_arguments, | 1093 int CalculateStackPassedWords(int num_reg_arguments, |
1097 int num_double_arguments); | 1094 int num_double_arguments); |
1098 | 1095 |
1099 // Before calling a C-function from generated code, align arguments on stack. | 1096 // Before calling a C-function from generated code, align arguments on stack. |
1100 // After aligning the frame, non-register arguments must be stored in | 1097 // After aligning the frame, non-register arguments must be stored in |
1101 // sp[0], sp[4], etc., not pushed. The argument count assumes all arguments | 1098 // sp[0], sp[4], etc., not pushed. The argument count assumes all arguments |
1102 // are word sized. If double arguments are used, this function assumes that | 1099 // are word sized. If double arguments are used, this function assumes that |
1103 // all double arguments are stored before core registers; otherwise the | 1100 // all double arguments are stored before core registers; otherwise the |
1104 // correct alignment of the double values is not guaranteed. | 1101 // correct alignment of the double values is not guaranteed. |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1542 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1539 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1543 #else | 1540 #else |
1544 #define ACCESS_MASM(masm) masm-> | 1541 #define ACCESS_MASM(masm) masm-> |
1545 #endif | 1542 #endif |
1546 | 1543 |
1547 | 1544 |
1548 } // namespace internal | 1545 } // namespace internal |
1549 } // namespace v8 | 1546 } // namespace v8 |
1550 | 1547 |
1551 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1548 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |