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 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1129 Register scratch1, Register scratch2); | 1129 Register scratch1, Register scratch2); |
1130 void DecrementCounter(StatsCounter* counter, int value, | 1130 void DecrementCounter(StatsCounter* counter, int value, |
1131 Register scratch1, Register scratch2); | 1131 Register scratch1, Register scratch2); |
1132 | 1132 |
1133 | 1133 |
1134 // --------------------------------------------------------------------------- | 1134 // --------------------------------------------------------------------------- |
1135 // Debugging | 1135 // Debugging |
1136 | 1136 |
1137 // Calls Abort(msg) if the condition cond is not satisfied. | 1137 // Calls Abort(msg) if the condition cond is not satisfied. |
1138 // Use --debug_code to enable. | 1138 // Use --debug_code to enable. |
1139 void Assert(Condition cond, const char* msg); | 1139 void Assert(Condition cond, BailoutReason reason); |
1140 void AssertFastElements(Register elements); | 1140 void AssertFastElements(Register elements); |
1141 | 1141 |
1142 // Like Assert(), but always enabled. | 1142 // Like Assert(), but always enabled. |
1143 void Check(Condition cond, const char* msg); | 1143 void Check(Condition cond, BailoutReason reason); |
1144 | 1144 |
1145 // Print a message to stdout and abort execution. | 1145 // Print a message to stdout and abort execution. |
1146 void Abort(const char* msg); | 1146 void Abort(BailoutReason msg); |
1147 | 1147 |
1148 // Verify restrictions about code generated in stubs. | 1148 // Verify restrictions about code generated in stubs. |
1149 void set_generating_stub(bool value) { generating_stub_ = value; } | 1149 void set_generating_stub(bool value) { generating_stub_ = value; } |
1150 bool generating_stub() { return generating_stub_; } | 1150 bool generating_stub() { return generating_stub_; } |
1151 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; } | 1151 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; } |
1152 bool allow_stub_calls() { return allow_stub_calls_; } | 1152 bool allow_stub_calls() { return allow_stub_calls_; } |
1153 void set_has_frame(bool value) { has_frame_ = value; } | 1153 void set_has_frame(bool value) { has_frame_ = value; } |
1154 bool has_frame() { return has_frame_; } | 1154 bool has_frame() { return has_frame_; } |
1155 inline bool AllowThisStubCall(CodeStub* stub); | 1155 inline bool AllowThisStubCall(CodeStub* stub); |
1156 | 1156 |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1456 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1456 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1457 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1457 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1458 #else | 1458 #else |
1459 #define ACCESS_MASM(masm) masm-> | 1459 #define ACCESS_MASM(masm) masm-> |
1460 #endif | 1460 #endif |
1461 | 1461 |
1462 | 1462 |
1463 } } // namespace v8::internal | 1463 } } // namespace v8::internal |
1464 | 1464 |
1465 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1465 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |