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

Side by Side Diff: src/mips/lithium-codegen-mips.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/ia32/lithium-ia32.h ('k') | src/mips/lithium-codegen-mips.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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 int num_arguments, 205 int num_arguments,
206 LInstruction* instr) { 206 LInstruction* instr) {
207 const Runtime::Function* function = Runtime::FunctionForId(id); 207 const Runtime::Function* function = Runtime::FunctionForId(id);
208 CallRuntime(function, num_arguments, instr); 208 CallRuntime(function, num_arguments, instr);
209 } 209 }
210 210
211 void CallRuntimeFromDeferred(Runtime::FunctionId id, 211 void CallRuntimeFromDeferred(Runtime::FunctionId id,
212 int argc, 212 int argc,
213 LInstruction* instr); 213 LInstruction* instr);
214 214
215 enum A1State {
216 A1_UNINITIALIZED,
217 A1_CONTAINS_TARGET
218 };
219
215 // Generate a direct call to a known function. Expects the function 220 // Generate a direct call to a known function. Expects the function
216 // to be in a1. 221 // to be in a1.
217 void CallKnownFunction(Handle<JSFunction> function, 222 void CallKnownFunction(Handle<JSFunction> function,
218 int arity, 223 int arity,
219 LInstruction* instr, 224 LInstruction* instr,
220 CallKind call_kind); 225 CallKind call_kind,
226 A1State a1_state);
221 227
222 void LoadHeapObject(Register result, Handle<HeapObject> object); 228 void LoadHeapObject(Register result, Handle<HeapObject> object);
223 229
224 void RecordSafepointWithLazyDeopt(LInstruction* instr, 230 void RecordSafepointWithLazyDeopt(LInstruction* instr,
225 SafepointMode safepoint_mode); 231 SafepointMode safepoint_mode);
226 232
227 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, 233 void RegisterEnvironmentForDeoptimization(LEnvironment* environment,
228 Safepoint::DeoptMode mode); 234 Safepoint::DeoptMode mode);
229 void DeoptimizeIf(Condition cc, 235 void DeoptimizeIf(Condition cc,
230 LEnvironment* environment, 236 LEnvironment* environment,
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 LCodeGen* codegen_; 448 LCodeGen* codegen_;
443 Label entry_; 449 Label entry_;
444 Label exit_; 450 Label exit_;
445 Label* external_exit_; 451 Label* external_exit_;
446 int instruction_index_; 452 int instruction_index_;
447 }; 453 };
448 454
449 } } // namespace v8::internal 455 } } // namespace v8::internal
450 456
451 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ 457 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698