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 1268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1279 Register scratch1, Register scratch2); | 1279 Register scratch1, Register scratch2); |
1280 void DecrementCounter(StatsCounter* counter, int value, | 1280 void DecrementCounter(StatsCounter* counter, int value, |
1281 Register scratch1, Register scratch2); | 1281 Register scratch1, Register scratch2); |
1282 | 1282 |
1283 | 1283 |
1284 // ------------------------------------------------------------------------- | 1284 // ------------------------------------------------------------------------- |
1285 // Debugging. | 1285 // Debugging. |
1286 | 1286 |
1287 // Calls Abort(msg) if the condition cc is not satisfied. | 1287 // Calls Abort(msg) if the condition cc is not satisfied. |
1288 // Use --debug_code to enable. | 1288 // Use --debug_code to enable. |
1289 void Assert(Condition cc, const char* msg, Register rs, Operand rt); | 1289 void Assert(Condition cc, BailoutReason reason, Register rs, Operand rt); |
1290 void AssertRegisterIsRoot(Register reg, Heap::RootListIndex index); | 1290 void AssertRegisterIsRoot(Register reg, Heap::RootListIndex index); |
1291 void AssertFastElements(Register elements); | 1291 void AssertFastElements(Register elements); |
1292 | 1292 |
1293 // Like Assert(), but always enabled. | 1293 // Like Assert(), but always enabled. |
1294 void Check(Condition cc, const char* msg, Register rs, Operand rt); | 1294 void Check(Condition cc, BailoutReason reason, Register rs, Operand rt); |
1295 | 1295 |
1296 // Print a message to stdout and abort execution. | 1296 // Print a message to stdout and abort execution. |
1297 void Abort(const char* msg); | 1297 void Abort(BailoutReason msg); |
1298 | 1298 |
1299 // Verify restrictions about code generated in stubs. | 1299 // Verify restrictions about code generated in stubs. |
1300 void set_generating_stub(bool value) { generating_stub_ = value; } | 1300 void set_generating_stub(bool value) { generating_stub_ = value; } |
1301 bool generating_stub() { return generating_stub_; } | 1301 bool generating_stub() { return generating_stub_; } |
1302 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; } | 1302 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; } |
1303 bool allow_stub_calls() { return allow_stub_calls_; } | 1303 bool allow_stub_calls() { return allow_stub_calls_; } |
1304 void set_has_frame(bool value) { has_frame_ = value; } | 1304 void set_has_frame(bool value) { has_frame_ = value; } |
1305 bool has_frame() { return has_frame_; } | 1305 bool has_frame() { return has_frame_; } |
1306 inline bool AllowThisStubCall(CodeStub* stub); | 1306 inline bool AllowThisStubCall(CodeStub* stub); |
1307 | 1307 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1371 // Abort execution if argument is not a string, enabled via --debug-code. | 1371 // Abort execution if argument is not a string, enabled via --debug-code. |
1372 void AssertString(Register object); | 1372 void AssertString(Register object); |
1373 | 1373 |
1374 // Abort execution if argument is not a name, enabled via --debug-code. | 1374 // Abort execution if argument is not a name, enabled via --debug-code. |
1375 void AssertName(Register object); | 1375 void AssertName(Register object); |
1376 | 1376 |
1377 // Abort execution if argument is not the root value with the given index, | 1377 // Abort execution if argument is not the root value with the given index, |
1378 // enabled via --debug-code. | 1378 // enabled via --debug-code. |
1379 void AssertRootValue(Register src, | 1379 void AssertRootValue(Register src, |
1380 Heap::RootListIndex root_value_index, | 1380 Heap::RootListIndex root_value_index, |
1381 const char* message); | 1381 BailoutReason reason); |
1382 | 1382 |
1383 // --------------------------------------------------------------------------- | 1383 // --------------------------------------------------------------------------- |
1384 // HeapNumber utilities. | 1384 // HeapNumber utilities. |
1385 | 1385 |
1386 void JumpIfNotHeapNumber(Register object, | 1386 void JumpIfNotHeapNumber(Register object, |
1387 Register heap_number_map, | 1387 Register heap_number_map, |
1388 Register scratch, | 1388 Register scratch, |
1389 Label* on_not_heap_number); | 1389 Label* on_not_heap_number); |
1390 | 1390 |
1391 // ------------------------------------------------------------------------- | 1391 // ------------------------------------------------------------------------- |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1587 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1587 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1588 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1588 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1589 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1589 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1590 #else | 1590 #else |
1591 #define ACCESS_MASM(masm) masm-> | 1591 #define ACCESS_MASM(masm) masm-> |
1592 #endif | 1592 #endif |
1593 | 1593 |
1594 } } // namespace v8::internal | 1594 } } // namespace v8::internal |
1595 | 1595 |
1596 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1596 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |