| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC_MACRO_ASSEMBLER_PPC_H_ | 5 #ifndef V8_PPC_MACRO_ASSEMBLER_PPC_H_ |
| 6 #define V8_PPC_MACRO_ASSEMBLER_PPC_H_ | 6 #define V8_PPC_MACRO_ASSEMBLER_PPC_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 931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 942 CallRuntime(Runtime::FunctionForId(id), num_arguments, save_doubles); | 942 CallRuntime(Runtime::FunctionForId(id), num_arguments, save_doubles); |
| 943 } | 943 } |
| 944 | 944 |
| 945 // Convenience function: call an external reference. | 945 // Convenience function: call an external reference. |
| 946 void CallExternalReference(const ExternalReference& ext, int num_arguments); | 946 void CallExternalReference(const ExternalReference& ext, int num_arguments); |
| 947 | 947 |
| 948 // Tail call of a runtime routine (jump). | 948 // Tail call of a runtime routine (jump). |
| 949 // Like JumpToExternalReference, but also takes care of passing the number | 949 // Like JumpToExternalReference, but also takes care of passing the number |
| 950 // of parameters. | 950 // of parameters. |
| 951 void TailCallExternalReference(const ExternalReference& ext, | 951 void TailCallExternalReference(const ExternalReference& ext, |
| 952 int num_arguments, int result_size); | 952 int num_arguments); |
| 953 | 953 |
| 954 // Convenience function: tail call a runtime routine (jump). | 954 // Convenience function: tail call a runtime routine (jump). |
| 955 void TailCallRuntime(Runtime::FunctionId fid, int num_arguments, | 955 void TailCallRuntime(Runtime::FunctionId fid, int num_arguments); |
| 956 int result_size); | |
| 957 | 956 |
| 958 int CalculateStackPassedWords(int num_reg_arguments, | 957 int CalculateStackPassedWords(int num_reg_arguments, |
| 959 int num_double_arguments); | 958 int num_double_arguments); |
| 960 | 959 |
| 961 // Before calling a C-function from generated code, align arguments on stack. | 960 // Before calling a C-function from generated code, align arguments on stack. |
| 962 // After aligning the frame, non-register arguments must be stored in | 961 // After aligning the frame, non-register arguments must be stored in |
| 963 // sp[0], sp[4], etc., not pushed. The argument count assumes all arguments | 962 // sp[0], sp[4], etc., not pushed. The argument count assumes all arguments |
| 964 // are word sized. If double arguments are used, this function assumes that | 963 // are word sized. If double arguments are used, this function assumes that |
| 965 // all double arguments are stored before core registers; otherwise the | 964 // all double arguments are stored before core registers; otherwise the |
| 966 // correct alignment of the double values is not guaranteed. | 965 // correct alignment of the double values is not guaranteed. |
| (...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1577 #define ACCESS_MASM(masm) \ | 1576 #define ACCESS_MASM(masm) \ |
| 1578 masm->stop(__FILE_LINE__); \ | 1577 masm->stop(__FILE_LINE__); \ |
| 1579 masm-> | 1578 masm-> |
| 1580 #else | 1579 #else |
| 1581 #define ACCESS_MASM(masm) masm-> | 1580 #define ACCESS_MASM(masm) masm-> |
| 1582 #endif | 1581 #endif |
| 1583 } // namespace internal | 1582 } // namespace internal |
| 1584 } // namespace v8 | 1583 } // namespace v8 |
| 1585 | 1584 |
| 1586 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ | 1585 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ |
| OLD | NEW |