| 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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 int GetNextBlockID() { return next_block_id_++; } | 360 int GetNextBlockID() { return next_block_id_++; } |
| 361 int GetNextValueID(HValue* value) { | 361 int GetNextValueID(HValue* value) { |
| 362 values_.Add(value, zone()); | 362 values_.Add(value, zone()); |
| 363 return values_.length() - 1; | 363 return values_.length() - 1; |
| 364 } | 364 } |
| 365 HValue* LookupValue(int id) const { | 365 HValue* LookupValue(int id) const { |
| 366 if (id >= 0 && id < values_.length()) return values_[id]; | 366 if (id >= 0 && id < values_.length()) return values_[id]; |
| 367 return NULL; | 367 return NULL; |
| 368 } | 368 } |
| 369 | 369 |
| 370 bool Optimize(SmartArrayPointer<char>* bailout_reason); | 370 bool Optimize(BailoutReason* bailout_reason); |
| 371 | 371 |
| 372 #ifdef DEBUG | 372 #ifdef DEBUG |
| 373 void Verify(bool do_full_verify) const; | 373 void Verify(bool do_full_verify) const; |
| 374 #endif | 374 #endif |
| 375 | 375 |
| 376 bool has_osr() { | 376 bool has_osr() { |
| 377 return osr_ != NULL; | 377 return osr_ != NULL; |
| 378 } | 378 } |
| 379 | 379 |
| 380 void set_osr(HOsrBuilder* osr) { | 380 void set_osr(HOsrBuilder* osr) { |
| (...skipping 1338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1719 virtual bool BuildGraph(); | 1719 virtual bool BuildGraph(); |
| 1720 | 1720 |
| 1721 // Simple accessors. | 1721 // Simple accessors. |
| 1722 BreakAndContinueScope* break_scope() const { return break_scope_; } | 1722 BreakAndContinueScope* break_scope() const { return break_scope_; } |
| 1723 void set_break_scope(BreakAndContinueScope* head) { break_scope_ = head; } | 1723 void set_break_scope(BreakAndContinueScope* head) { break_scope_ = head; } |
| 1724 | 1724 |
| 1725 bool inline_bailout() { return inline_bailout_; } | 1725 bool inline_bailout() { return inline_bailout_; } |
| 1726 | 1726 |
| 1727 HValue* context() { return environment()->context(); } | 1727 HValue* context() { return environment()->context(); } |
| 1728 | 1728 |
| 1729 void Bailout(const char* reason); | 1729 void Bailout(BailoutReason reason); |
| 1730 | 1730 |
| 1731 HBasicBlock* CreateJoin(HBasicBlock* first, | 1731 HBasicBlock* CreateJoin(HBasicBlock* first, |
| 1732 HBasicBlock* second, | 1732 HBasicBlock* second, |
| 1733 BailoutId join_id); | 1733 BailoutId join_id); |
| 1734 | 1734 |
| 1735 FunctionState* function_state() const { return function_state_; } | 1735 FunctionState* function_state() const { return function_state_; } |
| 1736 | 1736 |
| 1737 void VisitDeclarations(ZoneList<Declaration*>* declarations); | 1737 void VisitDeclarations(ZoneList<Declaration*>* declarations); |
| 1738 | 1738 |
| 1739 void* operator new(size_t size, Zone* zone) { | 1739 void* operator new(size_t size, Zone* zone) { |
| (...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2326 EmbeddedVector<char, 64> filename_; | 2326 EmbeddedVector<char, 64> filename_; |
| 2327 HeapStringAllocator string_allocator_; | 2327 HeapStringAllocator string_allocator_; |
| 2328 StringStream trace_; | 2328 StringStream trace_; |
| 2329 int indent_; | 2329 int indent_; |
| 2330 }; | 2330 }; |
| 2331 | 2331 |
| 2332 | 2332 |
| 2333 } } // namespace v8::internal | 2333 } } // namespace v8::internal |
| 2334 | 2334 |
| 2335 #endif // V8_HYDROGEN_H_ | 2335 #endif // V8_HYDROGEN_H_ |
| OLD | NEW |