Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: src/x64/macro-assembler-x64.h

Issue 20843012: Extract hardcoded error strings into a single place and replace them with enum. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: styles fixed Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 984 matching lines...) Expand 10 before | Expand all | Expand 10 after
995 // Abort execution if argument is not a string, enabled via --debug-code. 995 // Abort execution if argument is not a string, enabled via --debug-code.
996 void AssertString(Register object); 996 void AssertString(Register object);
997 997
998 // Abort execution if argument is not a name, enabled via --debug-code. 998 // Abort execution if argument is not a name, enabled via --debug-code.
999 void AssertName(Register object); 999 void AssertName(Register object);
1000 1000
1001 // Abort execution if argument is not the root value with the given index, 1001 // Abort execution if argument is not the root value with the given index,
1002 // enabled via --debug-code. 1002 // enabled via --debug-code.
1003 void AssertRootValue(Register src, 1003 void AssertRootValue(Register src,
1004 Heap::RootListIndex root_value_index, 1004 Heap::RootListIndex root_value_index,
1005 const char* message); 1005 BailoutReason reason);
1006 1006
1007 // --------------------------------------------------------------------------- 1007 // ---------------------------------------------------------------------------
1008 // Exception handling 1008 // Exception handling
1009 1009
1010 // Push a new try handler and link it into try handler chain. 1010 // Push a new try handler and link it into try handler chain.
1011 void PushTryHandler(StackHandler::Kind kind, int handler_index); 1011 void PushTryHandler(StackHandler::Kind kind, int handler_index);
1012 1012
1013 // Unlink the stack handler on top of the stack from the try handler chain. 1013 // Unlink the stack handler on top of the stack from the try handler chain.
1014 void PopTryHandler(); 1014 void PopTryHandler();
1015 1015
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
1312 void SetCounter(StatsCounter* counter, int value); 1312 void SetCounter(StatsCounter* counter, int value);
1313 void IncrementCounter(StatsCounter* counter, int value); 1313 void IncrementCounter(StatsCounter* counter, int value);
1314 void DecrementCounter(StatsCounter* counter, int value); 1314 void DecrementCounter(StatsCounter* counter, int value);
1315 1315
1316 1316
1317 // --------------------------------------------------------------------------- 1317 // ---------------------------------------------------------------------------
1318 // Debugging 1318 // Debugging
1319 1319
1320 // Calls Abort(msg) if the condition cc is not satisfied. 1320 // Calls Abort(msg) if the condition cc is not satisfied.
1321 // Use --debug_code to enable. 1321 // Use --debug_code to enable.
1322 void Assert(Condition cc, const char* msg); 1322 void Assert(Condition cc, BailoutReason reason);
1323 1323
1324 void AssertFastElements(Register elements); 1324 void AssertFastElements(Register elements);
1325 1325
1326 // Like Assert(), but always enabled. 1326 // Like Assert(), but always enabled.
1327 void Check(Condition cc, const char* msg); 1327 void Check(Condition cc, BailoutReason reason);
1328 1328
1329 // Print a message to stdout and abort execution. 1329 // Print a message to stdout and abort execution.
1330 void Abort(const char* msg); 1330 void Abort(BailoutReason msg);
1331 1331
1332 // Check that the stack is aligned. 1332 // Check that the stack is aligned.
1333 void CheckStackAlignment(); 1333 void CheckStackAlignment();
1334 1334
1335 // Verify restrictions about code generated in stubs. 1335 // Verify restrictions about code generated in stubs.
1336 void set_generating_stub(bool value) { generating_stub_ = value; } 1336 void set_generating_stub(bool value) { generating_stub_ = value; }
1337 bool generating_stub() { return generating_stub_; } 1337 bool generating_stub() { return generating_stub_; }
1338 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; } 1338 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; }
1339 bool allow_stub_calls() { return allow_stub_calls_; } 1339 bool allow_stub_calls() { return allow_stub_calls_; }
1340 void set_has_frame(bool value) { has_frame_ = value; } 1340 void set_has_frame(bool value) { has_frame_ = value; }
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
1539 masm->popfq(); \ 1539 masm->popfq(); \
1540 } \ 1540 } \
1541 masm-> 1541 masm->
1542 #else 1542 #else
1543 #define ACCESS_MASM(masm) masm-> 1543 #define ACCESS_MASM(masm) masm->
1544 #endif 1544 #endif
1545 1545
1546 } } // namespace v8::internal 1546 } } // namespace v8::internal
1547 1547
1548 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1548 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« src/compiler.cc ('K') | « src/x64/lithium-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698