| 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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 } | 379 } |
| 380 | 380 |
| 381 void RecordUint32Instruction(HInstruction* instr) { | 381 void RecordUint32Instruction(HInstruction* instr) { |
| 382 if (uint32_instructions_ == NULL) { | 382 if (uint32_instructions_ == NULL) { |
| 383 uint32_instructions_ = new(zone()) ZoneList<HInstruction*>(4, zone()); | 383 uint32_instructions_ = new(zone()) ZoneList<HInstruction*>(4, zone()); |
| 384 } | 384 } |
| 385 uint32_instructions_->Add(instr, zone()); | 385 uint32_instructions_->Add(instr, zone()); |
| 386 } | 386 } |
| 387 | 387 |
| 388 private: | 388 private: |
| 389 HConstant* GetConstant(SetOncePointer<HConstant>* pointer, | |
| 390 Handle<Object> value); | |
| 391 HConstant* GetConstantInt32(SetOncePointer<HConstant>* pointer, | 389 HConstant* GetConstantInt32(SetOncePointer<HConstant>* pointer, |
| 392 int32_t integer_value); | 390 int32_t integer_value); |
| 393 | 391 |
| 394 void MarkAsDeoptimizingRecursively(HBasicBlock* block); | 392 void MarkAsDeoptimizingRecursively(HBasicBlock* block); |
| 395 void NullifyUnreachableInstructions(); | 393 void NullifyUnreachableInstructions(); |
| 396 void InsertTypeConversions(HInstruction* instr); | 394 void InsertTypeConversions(HInstruction* instr); |
| 397 void PropagateMinusZeroChecks(HValue* value, BitVector* visited); | 395 void PropagateMinusZeroChecks(HValue* value, BitVector* visited); |
| 398 void RecursivelyMarkPhiDeoptimizeOnUndefined(HPhi* phi); | 396 void RecursivelyMarkPhiDeoptimizeOnUndefined(HPhi* phi); |
| 399 void InsertRepresentationChangeForUse(HValue* value, | 397 void InsertRepresentationChangeForUse(HValue* value, |
| 400 HValue* use_value, | 398 HValue* use_value, |
| (...skipping 14 matching lines...) Expand all Loading... |
| 415 ZoneList<HBasicBlock*> blocks_; | 413 ZoneList<HBasicBlock*> blocks_; |
| 416 ZoneList<HValue*> values_; | 414 ZoneList<HValue*> values_; |
| 417 ZoneList<HPhi*>* phi_list_; | 415 ZoneList<HPhi*>* phi_list_; |
| 418 ZoneList<HInstruction*>* uint32_instructions_; | 416 ZoneList<HInstruction*>* uint32_instructions_; |
| 419 SetOncePointer<HConstant> undefined_constant_; | 417 SetOncePointer<HConstant> undefined_constant_; |
| 420 SetOncePointer<HConstant> constant_0_; | 418 SetOncePointer<HConstant> constant_0_; |
| 421 SetOncePointer<HConstant> constant_1_; | 419 SetOncePointer<HConstant> constant_1_; |
| 422 SetOncePointer<HConstant> constant_minus1_; | 420 SetOncePointer<HConstant> constant_minus1_; |
| 423 SetOncePointer<HConstant> constant_true_; | 421 SetOncePointer<HConstant> constant_true_; |
| 424 SetOncePointer<HConstant> constant_false_; | 422 SetOncePointer<HConstant> constant_false_; |
| 425 SetOncePointer<HConstant> constant_hole_; | 423 SetOncePointer<HConstant> constant_the_hole_; |
| 426 SetOncePointer<HArgumentsObject> arguments_object_; | 424 SetOncePointer<HArgumentsObject> arguments_object_; |
| 427 | 425 |
| 428 SetOncePointer<HBasicBlock> osr_loop_entry_; | 426 SetOncePointer<HBasicBlock> osr_loop_entry_; |
| 429 SetOncePointer<ZoneList<HUnknownOSRValue*> > osr_values_; | 427 SetOncePointer<ZoneList<HUnknownOSRValue*> > osr_values_; |
| 430 | 428 |
| 431 CompilationInfo* info_; | 429 CompilationInfo* info_; |
| 432 Zone* zone_; | 430 Zone* zone_; |
| 433 | 431 |
| 434 bool is_recursive_; | 432 bool is_recursive_; |
| 435 bool use_optimistic_licm_; | 433 bool use_optimistic_licm_; |
| (...skipping 1243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1679 EmbeddedVector<char, 64> filename_; | 1677 EmbeddedVector<char, 64> filename_; |
| 1680 HeapStringAllocator string_allocator_; | 1678 HeapStringAllocator string_allocator_; |
| 1681 StringStream trace_; | 1679 StringStream trace_; |
| 1682 int indent_; | 1680 int indent_; |
| 1683 }; | 1681 }; |
| 1684 | 1682 |
| 1685 | 1683 |
| 1686 } } // namespace v8::internal | 1684 } } // namespace v8::internal |
| 1687 | 1685 |
| 1688 #endif // V8_HYDROGEN_H_ | 1686 #endif // V8_HYDROGEN_H_ |
| OLD | NEW |