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

Side by Side Diff: src/ia32/macro-assembler-ia32.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 826 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 void DecrementCounter(StatsCounter* counter, int value); 837 void DecrementCounter(StatsCounter* counter, int value);
838 void IncrementCounter(Condition cc, StatsCounter* counter, int value); 838 void IncrementCounter(Condition cc, StatsCounter* counter, int value);
839 void DecrementCounter(Condition cc, StatsCounter* counter, int value); 839 void DecrementCounter(Condition cc, StatsCounter* counter, int value);
840 840
841 841
842 // --------------------------------------------------------------------------- 842 // ---------------------------------------------------------------------------
843 // Debugging 843 // Debugging
844 844
845 // Calls Abort(msg) if the condition cc is not satisfied. 845 // Calls Abort(msg) if the condition cc is not satisfied.
846 // Use --debug_code to enable. 846 // Use --debug_code to enable.
847 void Assert(Condition cc, const char* msg); 847 void Assert(Condition cc, BailoutReason reason);
848 848
849 void AssertFastElements(Register elements); 849 void AssertFastElements(Register elements);
850 850
851 // Like Assert(), but always enabled. 851 // Like Assert(), but always enabled.
852 void Check(Condition cc, const char* msg); 852 void Check(Condition cc, BailoutReason reason);
853 853
854 // Print a message to stdout and abort execution. 854 // Print a message to stdout and abort execution.
855 void Abort(const char* msg); 855 void Abort(BailoutReason reason);
856 856
857 // Check that the stack is aligned. 857 // Check that the stack is aligned.
858 void CheckStackAlignment(); 858 void CheckStackAlignment();
859 859
860 // Verify restrictions about code generated in stubs. 860 // Verify restrictions about code generated in stubs.
861 void set_generating_stub(bool value) { generating_stub_ = value; } 861 void set_generating_stub(bool value) { generating_stub_ = value; }
862 bool generating_stub() { return generating_stub_; } 862 bool generating_stub() { return generating_stub_; }
863 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; } 863 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; }
864 bool allow_stub_calls() { return allow_stub_calls_; } 864 bool allow_stub_calls() { return allow_stub_calls_; }
865 void set_has_frame(bool value) { has_frame_ = value; } 865 void set_has_frame(bool value) { has_frame_ = value; }
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
1053 } \ 1053 } \
1054 masm-> 1054 masm->
1055 #else 1055 #else
1056 #define ACCESS_MASM(masm) masm-> 1056 #define ACCESS_MASM(masm) masm->
1057 #endif 1057 #endif
1058 1058
1059 1059
1060 } } // namespace v8::internal 1060 } } // namespace v8::internal
1061 1061
1062 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1062 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698