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

Side by Side Diff: src/hydrogen.h

Issue 18832002: Turn the representation changes into a proper HPhase. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 CompilationInfo* info() const { return info_; } 286 CompilationInfo* info() const { return info_; }
287 287
288 const ZoneList<HBasicBlock*>* blocks() const { return &blocks_; } 288 const ZoneList<HBasicBlock*>* blocks() const { return &blocks_; }
289 const ZoneList<HPhi*>* phi_list() const { return phi_list_; } 289 const ZoneList<HPhi*>* phi_list() const { return phi_list_; }
290 HBasicBlock* entry_block() const { return entry_block_; } 290 HBasicBlock* entry_block() const { return entry_block_; }
291 HEnvironment* start_environment() const { return start_environment_; } 291 HEnvironment* start_environment() const { return start_environment_; }
292 292
293 void FinalizeUniqueValueIds(); 293 void FinalizeUniqueValueIds();
294 void InsertTypeConversions(); 294 void InsertTypeConversions();
295 void MergeRemovableSimulates(); 295 void MergeRemovableSimulates();
296 void InsertRepresentationChanges();
297 void MarkDeoptimizeOnUndefined(); 296 void MarkDeoptimizeOnUndefined();
298 void ComputeMinusZeroChecks(); 297 void ComputeMinusZeroChecks();
299 bool ProcessArgumentsObject(); 298 bool ProcessArgumentsObject();
300 void Canonicalize(); 299 void Canonicalize();
301 void OrderBlocks(); 300 void OrderBlocks();
302 void AssignDominators(); 301 void AssignDominators();
303 void SetupInformativeDefinitions(); 302 void SetupInformativeDefinitions();
304 void DehoistSimpleArrayIndexComputations(); 303 void DehoistSimpleArrayIndexComputations();
305 void RestoreActualValues(); 304 void RestoreActualValues();
306 void PropagateDeoptimizingMark(); 305 void PropagateDeoptimizingMark();
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 void Run() { 444 void Run() {
446 Phase phase(this); 445 Phase phase(this);
447 phase.Run(); 446 phase.Run();
448 } 447 }
449 448
450 void MarkAsDeoptimizingRecursively(HBasicBlock* block); 449 void MarkAsDeoptimizingRecursively(HBasicBlock* block);
451 void NullifyUnreachableInstructions(); 450 void NullifyUnreachableInstructions();
452 void InsertTypeConversions(HInstruction* instr); 451 void InsertTypeConversions(HInstruction* instr);
453 void PropagateMinusZeroChecks(HValue* value, BitVector* visited); 452 void PropagateMinusZeroChecks(HValue* value, BitVector* visited);
454 void RecursivelyMarkPhiDeoptimizeOnUndefined(HPhi* phi); 453 void RecursivelyMarkPhiDeoptimizeOnUndefined(HPhi* phi);
455 void InsertRepresentationChangeForUse(HValue* value,
456 HValue* use_value,
457 int use_index,
458 Representation to);
459 void InsertRepresentationChangesForValue(HValue* value);
460 void CheckForBackEdge(HBasicBlock* block, HBasicBlock* successor); 454 void CheckForBackEdge(HBasicBlock* block, HBasicBlock* successor);
461 void SetupInformativeDefinitionsInBlock(HBasicBlock* block); 455 void SetupInformativeDefinitionsInBlock(HBasicBlock* block);
462 void SetupInformativeDefinitionsRecursively(HBasicBlock* block); 456 void SetupInformativeDefinitionsRecursively(HBasicBlock* block);
463 457
464 Isolate* isolate_; 458 Isolate* isolate_;
465 int next_block_id_; 459 int next_block_id_;
466 HBasicBlock* entry_block_; 460 HBasicBlock* entry_block_;
467 HEnvironment* start_environment_; 461 HEnvironment* start_environment_;
468 ZoneList<HBasicBlock*> blocks_; 462 ZoneList<HBasicBlock*> blocks_;
469 ZoneList<HValue*> values_; 463 ZoneList<HValue*> values_;
(...skipping 1625 matching lines...) Expand 10 before | Expand all | Expand 10 after
2095 EmbeddedVector<char, 64> filename_; 2089 EmbeddedVector<char, 64> filename_;
2096 HeapStringAllocator string_allocator_; 2090 HeapStringAllocator string_allocator_;
2097 StringStream trace_; 2091 StringStream trace_;
2098 int indent_; 2092 int indent_;
2099 }; 2093 };
2100 2094
2101 2095
2102 } } // namespace v8::internal 2096 } } // namespace v8::internal
2103 2097
2104 #endif // V8_HYDROGEN_H_ 2098 #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