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

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

Issue 188463003: Add MacroAssembler::Move(reg, immediate) on IA32. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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 | « no previous file | 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 825 matching lines...) Expand 10 before | Expand all | Expand 10 after
836 836
837 // Emit call to the code we are currently generating. 837 // Emit call to the code we are currently generating.
838 void CallSelf() { 838 void CallSelf() {
839 Handle<Code> self(reinterpret_cast<Code**>(CodeObject().location())); 839 Handle<Code> self(reinterpret_cast<Code**>(CodeObject().location()));
840 call(self, RelocInfo::CODE_TARGET); 840 call(self, RelocInfo::CODE_TARGET);
841 } 841 }
842 842
843 // Move if the registers are not identical. 843 // Move if the registers are not identical.
844 void Move(Register target, Register source); 844 void Move(Register target, Register source);
845 845
846 // Move a constant into a register using the most efficient encoding.
847 void Move(Register dst, Immediate imm);
848
846 // Push a handle value. 849 // Push a handle value.
847 void Push(Handle<Object> handle) { push(Immediate(handle)); } 850 void Push(Handle<Object> handle) { push(Immediate(handle)); }
848 void Push(Smi* smi) { Push(Handle<Smi>(smi, isolate())); } 851 void Push(Smi* smi) { Push(Handle<Smi>(smi, isolate())); }
849 852
850 Handle<Object> CodeObject() { 853 Handle<Object> CodeObject() {
851 ASSERT(!code_object_.is_null()); 854 ASSERT(!code_object_.is_null());
852 return code_object_; 855 return code_object_;
853 } 856 }
854 857
855 // Insert code to verify that the x87 stack has the specified depth (0-7) 858 // Insert code to verify that the x87 stack has the specified depth (0-7)
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
1114 } \ 1117 } \
1115 masm-> 1118 masm->
1116 #else 1119 #else
1117 #define ACCESS_MASM(masm) masm-> 1120 #define ACCESS_MASM(masm) masm->
1118 #endif 1121 #endif
1119 1122
1120 1123
1121 } } // namespace v8::internal 1124 } } // namespace v8::internal
1122 1125
1123 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1126 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « no previous file | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698