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

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

Issue 11365174: A change in the way we place TransitionElementKinds in the tree. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Now includes optimization of codegen for transition elementskind instruction Created 8 years 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/hydrogen-instructions.cc ('k') | src/ia32/lithium-codegen-ia32.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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
109 enum IntegerSignedness { SIGNED_INT32, UNSIGNED_INT32 }; 109 enum IntegerSignedness { SIGNED_INT32, UNSIGNED_INT32 };
110 void DoDeferredNumberTagI(LInstruction* instr, 110 void DoDeferredNumberTagI(LInstruction* instr,
111 LOperand* value, 111 LOperand* value,
112 IntegerSignedness signedness); 112 IntegerSignedness signedness);
113 113
114 void DoDeferredTaggedToI(LTaggedToI* instr); 114 void DoDeferredTaggedToI(LTaggedToI* instr);
115 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); 115 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr);
116 void DoDeferredStackCheck(LStackCheck* instr); 116 void DoDeferredStackCheck(LStackCheck* instr);
117 void DoDeferredRandom(LRandom* instr); 117 void DoDeferredRandom(LRandom* instr);
118 void DoDeferredTransitionElementsKind(LTransitionElementsKind* instr);
118 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); 119 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr);
119 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); 120 void DoDeferredStringCharFromCode(LStringCharFromCode* instr);
120 void DoDeferredAllocateObject(LAllocateObject* instr); 121 void DoDeferredAllocateObject(LAllocateObject* instr);
121 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, 122 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr,
122 Label* map_check); 123 Label* map_check);
123 124
124 void DoCheckMapCommon(Register reg, Handle<Map> map, 125 void DoCheckMapCommon(Register reg, Handle<Map> map,
125 CompareMapMode mode, LEnvironment* env); 126 CompareMapMode mode, LEnvironment* env);
126 127
127 // Parallel move support. 128 // Parallel move support.
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 197
197 void CallCode(Handle<Code> code, 198 void CallCode(Handle<Code> code,
198 RelocInfo::Mode mode, 199 RelocInfo::Mode mode,
199 LInstruction* instr); 200 LInstruction* instr);
200 201
201 void CallCodeGeneric(Handle<Code> code, 202 void CallCodeGeneric(Handle<Code> code,
202 RelocInfo::Mode mode, 203 RelocInfo::Mode mode,
203 LInstruction* instr, 204 LInstruction* instr,
204 SafepointMode safepoint_mode); 205 SafepointMode safepoint_mode);
205 206
207 void CallCodeFromDeferred(Handle<Code> code,
208 RelocInfo::Mode mode,
209 LInstruction* instr);
210
206 void CallRuntime(const Runtime::Function* fun, 211 void CallRuntime(const Runtime::Function* fun,
207 int argc, 212 int argc,
208 LInstruction* instr); 213 LInstruction* instr);
209 214
210 void CallRuntime(Runtime::FunctionId id, 215 void CallRuntime(Runtime::FunctionId id,
211 int argc, 216 int argc,
212 LInstruction* instr) { 217 LInstruction* instr) {
213 const Runtime::Function* function = Runtime::FunctionForId(id); 218 const Runtime::Function* function = Runtime::FunctionForId(id);
214 CallRuntime(function, argc, instr); 219 CallRuntime(function, argc, instr);
215 } 220 }
216 221
217 void CallRuntimeFromDeferred(Runtime::FunctionId id, 222 void CallRuntimeFromDeferred(Runtime::FunctionId id,
218 int argc, 223 int argc,
219 LInstruction* instr, 224 LInstruction* instr,
220 LOperand* context); 225 LOperand* context);
226 void CallRuntimeFromDeferred(Runtime::FunctionId id,
227 int argc,
228 LInstruction* instr);
221 229
222 enum EDIState { 230 enum EDIState {
223 EDI_UNINITIALIZED, 231 EDI_UNINITIALIZED,
224 EDI_CONTAINS_TARGET 232 EDI_CONTAINS_TARGET
225 }; 233 };
226 234
227 // Generate a direct call to a known function. Expects the function 235 // Generate a direct call to a known function. Expects the function
228 // to be in edi. 236 // to be in edi.
229 void CallKnownFunction(Handle<JSFunction> function, 237 void CallKnownFunction(Handle<JSFunction> function,
230 int arity, 238 int arity,
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 LCodeGen* codegen_; 439 LCodeGen* codegen_;
432 Label entry_; 440 Label entry_;
433 Label exit_; 441 Label exit_;
434 Label* external_exit_; 442 Label* external_exit_;
435 int instruction_index_; 443 int instruction_index_;
436 }; 444 };
437 445
438 } } // namespace v8::internal 446 } } // namespace v8::internal
439 447
440 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ 448 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698