| OLD | NEW |
| 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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 void ComputeMinusZeroChecks(); | 299 void ComputeMinusZeroChecks(); |
| 300 bool ProcessArgumentsObject(); | 300 bool ProcessArgumentsObject(); |
| 301 void EliminateRedundantPhis(); | 301 void EliminateRedundantPhis(); |
| 302 void Canonicalize(); | 302 void Canonicalize(); |
| 303 void OrderBlocks(); | 303 void OrderBlocks(); |
| 304 void AssignDominators(); | 304 void AssignDominators(); |
| 305 void SetupInformativeDefinitions(); | 305 void SetupInformativeDefinitions(); |
| 306 void EliminateRedundantBoundsChecks(); | 306 void EliminateRedundantBoundsChecks(); |
| 307 void DehoistSimpleArrayIndexComputations(); | 307 void DehoistSimpleArrayIndexComputations(); |
| 308 void RestoreActualValues(); | 308 void RestoreActualValues(); |
| 309 void DeadCodeElimination(const char *phase_name); | |
| 310 void PropagateDeoptimizingMark(); | 309 void PropagateDeoptimizingMark(); |
| 311 void AnalyzeAndPruneEnvironmentLiveness(); | 310 void AnalyzeAndPruneEnvironmentLiveness(); |
| 312 | 311 |
| 313 // Returns false if there are phi-uses of the arguments-object | 312 // Returns false if there are phi-uses of the arguments-object |
| 314 // which are not supported by the optimizing compiler. | 313 // which are not supported by the optimizing compiler. |
| 315 bool CheckArgumentsPhiUses(); | 314 bool CheckArgumentsPhiUses(); |
| 316 | 315 |
| 317 // Returns false if there are phi-uses of an uninitialized const | 316 // Returns false if there are phi-uses of an uninitialized const |
| 318 // which are not supported by the optimizing compiler. | 317 // which are not supported by the optimizing compiler. |
| 319 bool CheckConstPhiUses(); | 318 bool CheckConstPhiUses(); |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 private: | 443 private: |
| 445 HConstant* GetConstant(SetOncePointer<HConstant>* pointer, | 444 HConstant* GetConstant(SetOncePointer<HConstant>* pointer, |
| 446 int32_t integer_value); | 445 int32_t integer_value); |
| 447 | 446 |
| 448 template<class Phase> | 447 template<class Phase> |
| 449 void Run() { | 448 void Run() { |
| 450 Phase phase(this); | 449 Phase phase(this); |
| 451 phase.Run(); | 450 phase.Run(); |
| 452 } | 451 } |
| 453 | 452 |
| 454 void MarkLive(HValue* ref, HValue* instr, ZoneList<HValue*>* worklist); | |
| 455 void MarkLiveInstructions(); | |
| 456 void RemoveDeadInstructions(); | |
| 457 void MarkAsDeoptimizingRecursively(HBasicBlock* block); | 453 void MarkAsDeoptimizingRecursively(HBasicBlock* block); |
| 458 void NullifyUnreachableInstructions(); | 454 void NullifyUnreachableInstructions(); |
| 459 void InsertTypeConversions(HInstruction* instr); | 455 void InsertTypeConversions(HInstruction* instr); |
| 460 void PropagateMinusZeroChecks(HValue* value, BitVector* visited); | 456 void PropagateMinusZeroChecks(HValue* value, BitVector* visited); |
| 461 void RecursivelyMarkPhiDeoptimizeOnUndefined(HPhi* phi); | 457 void RecursivelyMarkPhiDeoptimizeOnUndefined(HPhi* phi); |
| 462 void InsertRepresentationChangeForUse(HValue* value, | 458 void InsertRepresentationChangeForUse(HValue* value, |
| 463 HValue* use_value, | 459 HValue* use_value, |
| 464 int use_index, | 460 int use_index, |
| 465 Representation to); | 461 Representation to); |
| 466 void InsertRepresentationChangesForValue(HValue* value); | 462 void InsertRepresentationChangesForValue(HValue* value); |
| (...skipping 1638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2105 EmbeddedVector<char, 64> filename_; | 2101 EmbeddedVector<char, 64> filename_; |
| 2106 HeapStringAllocator string_allocator_; | 2102 HeapStringAllocator string_allocator_; |
| 2107 StringStream trace_; | 2103 StringStream trace_; |
| 2108 int indent_; | 2104 int indent_; |
| 2109 }; | 2105 }; |
| 2110 | 2106 |
| 2111 | 2107 |
| 2112 } } // namespace v8::internal | 2108 } } // namespace v8::internal |
| 2113 | 2109 |
| 2114 #endif // V8_HYDROGEN_H_ | 2110 #endif // V8_HYDROGEN_H_ |
| OLD | NEW |