OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
848 | 848 |
849 // Print a message to stdout and abort execution. | 849 // Print a message to stdout and abort execution. |
850 void Abort(const char* msg); | 850 void Abort(const char* msg); |
851 | 851 |
852 // Verify restrictions about code generated in stubs. | 852 // Verify restrictions about code generated in stubs. |
853 void set_generating_stub(bool value) { generating_stub_ = value; } | 853 void set_generating_stub(bool value) { generating_stub_ = value; } |
854 bool generating_stub() { return generating_stub_; } | 854 bool generating_stub() { return generating_stub_; } |
855 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; } | 855 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; } |
856 bool allow_stub_calls() { return allow_stub_calls_; } | 856 bool allow_stub_calls() { return allow_stub_calls_; } |
857 | 857 |
| 858 // EABI variant for double arguments in use. |
| 859 bool use_eabi_hardfloat() { |
| 860 #if USE_EABI_HARDFLOAT |
| 861 return true; |
| 862 #else |
| 863 return false; |
| 864 #endif |
| 865 } |
| 866 |
858 // --------------------------------------------------------------------------- | 867 // --------------------------------------------------------------------------- |
859 // Number utilities | 868 // Number utilities |
860 | 869 |
861 // Check whether the value of reg is a power of two and not zero. If not | 870 // Check whether the value of reg is a power of two and not zero. If not |
862 // control continues at the label not_power_of_two. If reg is a power of two | 871 // control continues at the label not_power_of_two. If reg is a power of two |
863 // the register scratch contains the value of (reg - 1) when control falls | 872 // the register scratch contains the value of (reg - 1) when control falls |
864 // through. | 873 // through. |
865 void JumpIfNotPowerOfTwoOrZero(Register reg, | 874 void JumpIfNotPowerOfTwoOrZero(Register reg, |
866 Register scratch, | 875 Register scratch, |
867 Label* not_power_of_two_or_zero); | 876 Label* not_power_of_two_or_zero); |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1097 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1106 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1098 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1107 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1099 #else | 1108 #else |
1100 #define ACCESS_MASM(masm) masm-> | 1109 #define ACCESS_MASM(masm) masm-> |
1101 #endif | 1110 #endif |
1102 | 1111 |
1103 | 1112 |
1104 } } // namespace v8::internal | 1113 } } // namespace v8::internal |
1105 | 1114 |
1106 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1115 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |