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 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 uint32_instructions_ = new(zone()) ZoneList<HInstruction*>(4, zone()); | 421 uint32_instructions_ = new(zone()) ZoneList<HInstruction*>(4, zone()); |
422 } | 422 } |
423 uint32_instructions_->Add(instr, zone()); | 423 uint32_instructions_->Add(instr, zone()); |
424 } | 424 } |
425 | 425 |
426 private: | 426 private: |
427 HConstant* GetConstant(SetOncePointer<HConstant>* pointer, | 427 HConstant* GetConstant(SetOncePointer<HConstant>* pointer, |
428 int32_t integer_value); | 428 int32_t integer_value); |
429 | 429 |
430 template<class Phase> | 430 template<class Phase> |
431 void Run() { Phase phase(this); phase.Run(); } | 431 void Run() { |
| 432 Phase phase(this); |
| 433 phase.Run(); |
| 434 } |
432 | 435 |
433 void MarkLive(HValue* ref, HValue* instr, ZoneList<HValue*>* worklist); | 436 void MarkLive(HValue* ref, HValue* instr, ZoneList<HValue*>* worklist); |
434 void MarkLiveInstructions(); | 437 void MarkLiveInstructions(); |
435 void RemoveDeadInstructions(); | 438 void RemoveDeadInstructions(); |
436 void MarkAsDeoptimizingRecursively(HBasicBlock* block); | 439 void MarkAsDeoptimizingRecursively(HBasicBlock* block); |
437 void NullifyUnreachableInstructions(); | 440 void NullifyUnreachableInstructions(); |
438 void InsertTypeConversions(HInstruction* instr); | 441 void InsertTypeConversions(HInstruction* instr); |
439 void PropagateMinusZeroChecks(HValue* value, BitVector* visited); | 442 void PropagateMinusZeroChecks(HValue* value, BitVector* visited); |
440 void RecursivelyMarkPhiDeoptimizeOnUndefined(HPhi* phi); | 443 void RecursivelyMarkPhiDeoptimizeOnUndefined(HPhi* phi); |
441 void InsertRepresentationChangeForUse(HValue* value, | 444 void InsertRepresentationChangeForUse(HValue* value, |
(...skipping 1628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2070 EmbeddedVector<char, 64> filename_; | 2073 EmbeddedVector<char, 64> filename_; |
2071 HeapStringAllocator string_allocator_; | 2074 HeapStringAllocator string_allocator_; |
2072 StringStream trace_; | 2075 StringStream trace_; |
2073 int indent_; | 2076 int indent_; |
2074 }; | 2077 }; |
2075 | 2078 |
2076 | 2079 |
2077 } } // namespace v8::internal | 2080 } } // namespace v8::internal |
2078 | 2081 |
2079 #endif // V8_HYDROGEN_H_ | 2082 #endif // V8_HYDROGEN_H_ |
OLD | NEW |