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

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

Issue 7795051: Change the x64 optimizing compiler to stop using the fixed context register rsi. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove stray edits. Created 9 years, 3 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/assembler-x64.cc ('k') | src/x64/lithium-codegen-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 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 RelocInfo::Mode mode, 167 RelocInfo::Mode mode,
168 LInstruction* instr, 168 LInstruction* instr,
169 SafepointMode safepoint_mode, 169 SafepointMode safepoint_mode,
170 int argc); 170 int argc);
171 171
172 172
173 void CallCode(Handle<Code> code, 173 void CallCode(Handle<Code> code,
174 RelocInfo::Mode mode, 174 RelocInfo::Mode mode,
175 LInstruction* instr); 175 LInstruction* instr);
176 176
177 // CallRuntime assumes that the context is already in rsi.
177 void CallRuntime(const Runtime::Function* function, 178 void CallRuntime(const Runtime::Function* function,
178 int num_arguments, 179 int num_arguments,
179 LInstruction* instr); 180 LInstruction* instr);
180 181
181 void CallRuntime(Runtime::FunctionId id, 182 void CallRuntime(Runtime::FunctionId id,
182 int num_arguments, 183 int num_arguments,
183 LInstruction* instr) { 184 LInstruction* instr) {
184 const Runtime::Function* function = Runtime::FunctionForId(id); 185 const Runtime::Function* function = Runtime::FunctionForId(id);
185 CallRuntime(function, num_arguments, instr); 186 CallRuntime(function, num_arguments, instr);
186 } 187 }
187 188
189 // Call runtime from deferred code, where the context has not yet been
190 // moved to rsi.
188 void CallRuntimeFromDeferred(Runtime::FunctionId id, 191 void CallRuntimeFromDeferred(Runtime::FunctionId id,
189 int argc, 192 int argc,
190 LInstruction* instr); 193 LInstruction* instr,
194 LOperand* context);
191 195
192 196
193 // Generate a direct call to a known function. Expects the function 197 // Generate a direct call to a known function. Expects the function
194 // to be in edi. 198 // to be in edi.
195 void CallKnownFunction(Handle<JSFunction> function, 199 void CallKnownFunction(Handle<JSFunction> function,
196 int arity, 200 int arity,
197 LInstruction* instr, 201 LInstruction* instr,
198 CallKind call_kind); 202 CallKind call_kind);
199 203
200 void LoadHeapObject(Register result, Handle<HeapObject> object); 204 void LoadHeapObject(Register result, Handle<HeapObject> object);
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 private: 367 private:
364 LCodeGen* codegen_; 368 LCodeGen* codegen_;
365 Label entry_; 369 Label entry_;
366 Label exit_; 370 Label exit_;
367 Label* external_exit_; 371 Label* external_exit_;
368 }; 372 };
369 373
370 } } // namespace v8::internal 374 } } // namespace v8::internal
371 375
372 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ 376 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698