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

Side by Side Diff: src/arm/lithium-codegen-arm.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/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 int num_arguments, 208 int num_arguments,
209 LInstruction* instr) { 209 LInstruction* instr) {
210 const Runtime::Function* function = Runtime::FunctionForId(id); 210 const Runtime::Function* function = Runtime::FunctionForId(id);
211 CallRuntime(function, num_arguments, instr); 211 CallRuntime(function, num_arguments, instr);
212 } 212 }
213 213
214 void CallRuntimeFromDeferred(Runtime::FunctionId id, 214 void CallRuntimeFromDeferred(Runtime::FunctionId id,
215 int argc, 215 int argc,
216 LInstruction* instr); 216 LInstruction* instr);
217 217
218 enum R1State {
219 R1_UNINITIALIZED,
220 R1_CONTAINS_TARGET
221 };
222
218 // Generate a direct call to a known function. Expects the function 223 // Generate a direct call to a known function. Expects the function
219 // to be in r1. 224 // to be in r1.
220 void CallKnownFunction(Handle<JSFunction> function, 225 void CallKnownFunction(Handle<JSFunction> function,
221 int arity, 226 int arity,
222 LInstruction* instr, 227 LInstruction* instr,
223 CallKind call_kind); 228 CallKind call_kind,
229 R1State r1_state);
224 230
225 void LoadHeapObject(Register result, Handle<HeapObject> object); 231 void LoadHeapObject(Register result, Handle<HeapObject> object);
226 232
227 void RecordSafepointWithLazyDeopt(LInstruction* instr, 233 void RecordSafepointWithLazyDeopt(LInstruction* instr,
228 SafepointMode safepoint_mode); 234 SafepointMode safepoint_mode);
229 235
230 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, 236 void RegisterEnvironmentForDeoptimization(LEnvironment* environment,
231 Safepoint::DeoptMode mode); 237 Safepoint::DeoptMode mode);
232 void DeoptimizeIf(Condition cc, LEnvironment* environment); 238 void DeoptimizeIf(Condition cc, LEnvironment* environment);
233 239
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 LCodeGen* codegen_; 433 LCodeGen* codegen_;
428 Label entry_; 434 Label entry_;
429 Label exit_; 435 Label exit_;
430 Label* external_exit_; 436 Label* external_exit_;
431 int instruction_index_; 437 int instruction_index_;
432 }; 438 };
433 439
434 } } // namespace v8::internal 440 } } // namespace v8::internal
435 441
436 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ 442 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698