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

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

Issue 22715004: Version 3.20.15 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Add TypedArray API and correctness patches r16033 and r16084 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
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/ia32/macro-assembler-ia32.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 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 789 matching lines...) Expand 10 before | Expand all | Expand 10 after
800 800
801 // Return and drop arguments from stack, where the number of arguments 801 // Return and drop arguments from stack, where the number of arguments
802 // may be bigger than 2^16 - 1. Requires a scratch register. 802 // may be bigger than 2^16 - 1. Requires a scratch register.
803 void Ret(int bytes_dropped, Register scratch); 803 void Ret(int bytes_dropped, Register scratch);
804 804
805 // Emit code to discard a non-negative number of pointer-sized elements 805 // Emit code to discard a non-negative number of pointer-sized elements
806 // from the stack, clobbering only the esp register. 806 // from the stack, clobbering only the esp register.
807 void Drop(int element_count); 807 void Drop(int element_count);
808 808
809 void Call(Label* target) { call(target); } 809 void Call(Label* target) { call(target); }
810 void Push(Register src) { push(src); }
811 void Pop(Register dst) { pop(dst); }
812 810
813 // Emit call to the code we are currently generating. 811 // Emit call to the code we are currently generating.
814 void CallSelf() { 812 void CallSelf() {
815 Handle<Code> self(reinterpret_cast<Code**>(CodeObject().location())); 813 Handle<Code> self(reinterpret_cast<Code**>(CodeObject().location()));
816 call(self, RelocInfo::CODE_TARGET); 814 call(self, RelocInfo::CODE_TARGET);
817 } 815 }
818 816
819 // Move if the registers are not identical. 817 // Move if the registers are not identical.
820 void Move(Register target, Register source); 818 void Move(Register target, Register source);
821 819
(...skipping 17 matching lines...) Expand all
839 void DecrementCounter(StatsCounter* counter, int value); 837 void DecrementCounter(StatsCounter* counter, int value);
840 void IncrementCounter(Condition cc, StatsCounter* counter, int value); 838 void IncrementCounter(Condition cc, StatsCounter* counter, int value);
841 void DecrementCounter(Condition cc, StatsCounter* counter, int value); 839 void DecrementCounter(Condition cc, StatsCounter* counter, int value);
842 840
843 841
844 // --------------------------------------------------------------------------- 842 // ---------------------------------------------------------------------------
845 // Debugging 843 // Debugging
846 844
847 // Calls Abort(msg) if the condition cc is not satisfied. 845 // Calls Abort(msg) if the condition cc is not satisfied.
848 // Use --debug_code to enable. 846 // Use --debug_code to enable.
849 void Assert(Condition cc, BailoutReason reason); 847 void Assert(Condition cc, const char* msg);
850 848
851 void AssertFastElements(Register elements); 849 void AssertFastElements(Register elements);
852 850
853 // Like Assert(), but always enabled. 851 // Like Assert(), but always enabled.
854 void Check(Condition cc, BailoutReason reason); 852 void Check(Condition cc, const char* msg);
855 853
856 // Print a message to stdout and abort execution. 854 // Print a message to stdout and abort execution.
857 void Abort(BailoutReason reason); 855 void Abort(const char* msg);
858 856
859 // Check that the stack is aligned. 857 // Check that the stack is aligned.
860 void CheckStackAlignment(); 858 void CheckStackAlignment();
861 859
862 // Verify restrictions about code generated in stubs. 860 // Verify restrictions about code generated in stubs.
863 void set_generating_stub(bool value) { generating_stub_ = value; } 861 void set_generating_stub(bool value) { generating_stub_ = value; }
864 bool generating_stub() { return generating_stub_; } 862 bool generating_stub() { return generating_stub_; }
865 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; } 863 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; }
866 bool allow_stub_calls() { return allow_stub_calls_; } 864 bool allow_stub_calls() { return allow_stub_calls_; }
867 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
1055 } \ 1053 } \
1056 masm-> 1054 masm->
1057 #else 1055 #else
1058 #define ACCESS_MASM(masm) masm-> 1056 #define ACCESS_MASM(masm) masm->
1059 #endif 1057 #endif
1060 1058
1061 1059
1062 } } // namespace v8::internal 1060 } } // namespace v8::internal
1063 1061
1064 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1062 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698