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

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

Issue 10116021: Simplify invocation sequence at monomorphic function invocation sites. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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/mips/lithium-mips.h ('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 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 int num_arguments, 189 int num_arguments,
190 LInstruction* instr) { 190 LInstruction* instr) {
191 const Runtime::Function* function = Runtime::FunctionForId(id); 191 const Runtime::Function* function = Runtime::FunctionForId(id);
192 CallRuntime(function, num_arguments, instr); 192 CallRuntime(function, num_arguments, instr);
193 } 193 }
194 194
195 void CallRuntimeFromDeferred(Runtime::FunctionId id, 195 void CallRuntimeFromDeferred(Runtime::FunctionId id,
196 int argc, 196 int argc,
197 LInstruction* instr); 197 LInstruction* instr);
198 198
199 enum RDIState {
200 RDI_UNINITIALIZED,
201 RDI_CONTAINS_TARGET
202 };
203
199 // Generate a direct call to a known function. Expects the function 204 // Generate a direct call to a known function. Expects the function
200 // to be in rdi. 205 // to be in rdi.
201 void CallKnownFunction(Handle<JSFunction> function, 206 void CallKnownFunction(Handle<JSFunction> function,
202 int arity, 207 int arity,
203 LInstruction* instr, 208 LInstruction* instr,
204 CallKind call_kind); 209 CallKind call_kind,
210 RDIState rdi_state);
205 211
206 212
207 void RecordSafepointWithLazyDeopt(LInstruction* instr, 213 void RecordSafepointWithLazyDeopt(LInstruction* instr,
208 SafepointMode safepoint_mode, 214 SafepointMode safepoint_mode,
209 int argc); 215 int argc);
210 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, 216 void RegisterEnvironmentForDeoptimization(LEnvironment* environment,
211 Safepoint::DeoptMode mode); 217 Safepoint::DeoptMode mode);
212 void DeoptimizeIf(Condition cc, LEnvironment* environment); 218 void DeoptimizeIf(Condition cc, LEnvironment* environment);
213 219
214 void AddToTranslation(Translation* translation, 220 void AddToTranslation(Translation* translation,
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 LCodeGen* codegen_; 397 LCodeGen* codegen_;
392 Label entry_; 398 Label entry_;
393 Label exit_; 399 Label exit_;
394 Label* external_exit_; 400 Label* external_exit_;
395 int instruction_index_; 401 int instruction_index_;
396 }; 402 };
397 403
398 } } // namespace v8::internal 404 } } // namespace v8::internal
399 405
400 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ 406 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698