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

Side by Side Diff: src/ia32/lithium-codegen-ia32.h

Issue 6452001: Allow esi to be an allocatable register on IA32. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 10 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 142
143 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code); } 143 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code); }
144 144
145 // Code generation passes. Returns true if code generation should 145 // Code generation passes. Returns true if code generation should
146 // continue. 146 // continue.
147 bool GeneratePrologue(); 147 bool GeneratePrologue();
148 bool GenerateBody(); 148 bool GenerateBody();
149 bool GenerateDeferredCode(); 149 bool GenerateDeferredCode();
150 bool GenerateSafepointTable(); 150 bool GenerateSafepointTable();
151 151
152 void CallCode(Handle<Code> code, 152 void CallCode(Handle<Code> code, RelocInfo::Mode mode, LInstruction* instr,
153 RelocInfo::Mode mode, 153 bool adjusted = true);
154 LInstruction* instr); 154 void CallRuntime(Runtime::Function* fun, int argc, LInstruction* instr,
155 void CallRuntime(Runtime::Function* function, 155 bool adjusted = true);
156 int num_arguments, 156 void CallRuntime(Runtime::FunctionId id, int argc, LInstruction* instr,
157 LInstruction* instr); 157 bool adjusted = true) {
158 void CallRuntime(Runtime::FunctionId id,
159 int num_arguments,
160 LInstruction* instr) {
161 Runtime::Function* function = Runtime::FunctionForId(id); 158 Runtime::Function* function = Runtime::FunctionForId(id);
162 CallRuntime(function, num_arguments, instr); 159 CallRuntime(function, argc, instr, adjusted);
163 } 160 }
164 161
165 // Generate a direct call to a known function. Expects the function 162 // Generate a direct call to a known function. Expects the function
166 // to be in edi. 163 // to be in edi.
167 void CallKnownFunction(Handle<JSFunction> function, 164 void CallKnownFunction(Handle<JSFunction> function,
168 int arity, 165 int arity,
169 LInstruction* instr); 166 LInstruction* instr);
170 167
171 void LoadHeapObject(Register result, Handle<HeapObject> object); 168 void LoadHeapObject(Register result, Handle<HeapObject> object);
172 169
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 private: 282 private:
286 LCodeGen* codegen_; 283 LCodeGen* codegen_;
287 Label entry_; 284 Label entry_;
288 Label exit_; 285 Label exit_;
289 Label* external_exit_; 286 Label* external_exit_;
290 }; 287 };
291 288
292 } } // namespace v8::internal 289 } } // namespace v8::internal
293 290
294 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ 291 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698