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

Side by Side Diff: src/hydrogen.h

Issue 7514005: slight HGraph::CreateGraph refactor (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 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 | « no previous file | src/hydrogen.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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 void InsertRepresentationChanges(); 231 void InsertRepresentationChanges();
232 void MarkDeoptimizeOnUndefined(); 232 void MarkDeoptimizeOnUndefined();
233 void ComputeMinusZeroChecks(); 233 void ComputeMinusZeroChecks();
234 bool ProcessArgumentsObject(); 234 bool ProcessArgumentsObject();
235 void EliminateRedundantPhis(); 235 void EliminateRedundantPhis();
236 void EliminateUnreachablePhis(); 236 void EliminateUnreachablePhis();
237 void Canonicalize(); 237 void Canonicalize();
238 void OrderBlocks(); 238 void OrderBlocks();
239 void AssignDominators(); 239 void AssignDominators();
240 void ReplaceCheckedValues(); 240 void ReplaceCheckedValues();
241 void MarkAsDeoptimizingRecursively(HBasicBlock* block); 241 void PropagateDeoptimizingMark();
242 242
243 // Returns false if there are phi-uses of the arguments-object 243 // Returns false if there are phi-uses of the arguments-object
244 // which are not supported by the optimizing compiler. 244 // which are not supported by the optimizing compiler.
245 bool CollectPhis(); 245 bool CollectPhis();
246 246
247 Handle<Code> Compile(CompilationInfo* info); 247 Handle<Code> Compile(CompilationInfo* info);
248 248
249 void set_undefined_constant(HConstant* constant) { 249 void set_undefined_constant(HConstant* constant) {
250 undefined_constant_.set(constant); 250 undefined_constant_.set(constant);
251 } 251 }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 BitVector* visited, 286 BitVector* visited,
287 ZoneList<HBasicBlock*>* order, 287 ZoneList<HBasicBlock*>* order,
288 HBasicBlock* loop_header); 288 HBasicBlock* loop_header);
289 void PostorderLoopBlocks(HLoopInformation* loop, 289 void PostorderLoopBlocks(HLoopInformation* loop,
290 BitVector* visited, 290 BitVector* visited,
291 ZoneList<HBasicBlock*>* order, 291 ZoneList<HBasicBlock*>* order,
292 HBasicBlock* loop_header); 292 HBasicBlock* loop_header);
293 HConstant* GetConstant(SetOncePointer<HConstant>* pointer, 293 HConstant* GetConstant(SetOncePointer<HConstant>* pointer,
294 Object* value); 294 Object* value);
295 295
296 void MarkAsDeoptimizingRecursively(HBasicBlock* block);
296 void InsertTypeConversions(HInstruction* instr); 297 void InsertTypeConversions(HInstruction* instr);
297 void PropagateMinusZeroChecks(HValue* value, BitVector* visited); 298 void PropagateMinusZeroChecks(HValue* value, BitVector* visited);
298 void RecursivelyMarkPhiDeoptimizeOnUndefined(HPhi* phi); 299 void RecursivelyMarkPhiDeoptimizeOnUndefined(HPhi* phi);
299 void InsertRepresentationChangeForUse(HValue* value, 300 void InsertRepresentationChangeForUse(HValue* value,
300 HValue* use_value, 301 HValue* use_value,
301 int use_index, 302 int use_index,
302 Representation to); 303 Representation to);
303 void InsertRepresentationChangesForValue(HValue* value); 304 void InsertRepresentationChangesForValue(HValue* value);
304 void InferTypes(ZoneList<HValue*>* worklist); 305 void InferTypes(ZoneList<HValue*>* worklist);
305 void InitializeInferredTypes(int from_inclusive, int to_inclusive); 306 void InitializeInferredTypes(int from_inclusive, int to_inclusive);
(...skipping 915 matching lines...) Expand 10 before | Expand all | Expand 10 after
1221 const char* filename_; 1222 const char* filename_;
1222 HeapStringAllocator string_allocator_; 1223 HeapStringAllocator string_allocator_;
1223 StringStream trace_; 1224 StringStream trace_;
1224 int indent_; 1225 int indent_;
1225 }; 1226 };
1226 1227
1227 1228
1228 } } // namespace v8::internal 1229 } } // namespace v8::internal
1229 1230
1230 #endif // V8_HYDROGEN_H_ 1231 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698