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

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

Issue 1637015: Add stack alignment check to ia32 and x64 (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 8 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
« no previous file with comments | « src/x64/codegen-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 719 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 // Calls Abort(msg) if the condition cc is not satisfied. 730 // Calls Abort(msg) if the condition cc is not satisfied.
731 // Use --debug_code to enable. 731 // Use --debug_code to enable.
732 void Assert(Condition cc, const char* msg); 732 void Assert(Condition cc, const char* msg);
733 733
734 // Like Assert(), but always enabled. 734 // Like Assert(), but always enabled.
735 void Check(Condition cc, const char* msg); 735 void Check(Condition cc, const char* msg);
736 736
737 // Print a message to stdout and abort execution. 737 // Print a message to stdout and abort execution.
738 void Abort(const char* msg); 738 void Abort(const char* msg);
739 739
740 // Check that the stack is aligned.
741 void CheckStackAlignment();
742
740 // Verify restrictions about code generated in stubs. 743 // Verify restrictions about code generated in stubs.
741 void set_generating_stub(bool value) { generating_stub_ = value; } 744 void set_generating_stub(bool value) { generating_stub_ = value; }
742 bool generating_stub() { return generating_stub_; } 745 bool generating_stub() { return generating_stub_; }
743 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; } 746 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; }
744 bool allow_stub_calls() { return allow_stub_calls_; } 747 bool allow_stub_calls() { return allow_stub_calls_; }
745 748
746 private: 749 private:
747 bool generating_stub_; 750 bool generating_stub_;
748 bool allow_stub_calls_; 751 bool allow_stub_calls_;
749 // This handle will be patched with the code object on installation. 752 // This handle will be patched with the code object on installation.
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 } \ 829 } \
827 masm-> 830 masm->
828 #else 831 #else
829 #define ACCESS_MASM(masm) masm-> 832 #define ACCESS_MASM(masm) masm->
830 #endif 833 #endif
831 834
832 835
833 } } // namespace v8::internal 836 } } // namespace v8::internal
834 837
835 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 838 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/codegen-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698