| 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 1784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1795 public: | 1795 public: |
| 1796 HSimulate(BailoutId ast_id, | 1796 HSimulate(BailoutId ast_id, |
| 1797 int pop_count, | 1797 int pop_count, |
| 1798 Zone* zone, | 1798 Zone* zone, |
| 1799 RemovableSimulate removable) | 1799 RemovableSimulate removable) |
| 1800 : ast_id_(ast_id), | 1800 : ast_id_(ast_id), |
| 1801 pop_count_(pop_count), | 1801 pop_count_(pop_count), |
| 1802 values_(2, zone), | 1802 values_(2, zone), |
| 1803 assigned_indexes_(2, zone), | 1803 assigned_indexes_(2, zone), |
| 1804 zone_(zone), | 1804 zone_(zone), |
| 1805 removable_(removable) {} | 1805 removable_(removable), |
| 1806 done_with_replay_(false) {} |
| 1806 ~HSimulate() {} | 1807 ~HSimulate() {} |
| 1807 | 1808 |
| 1808 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 1809 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
| 1809 | 1810 |
| 1810 bool HasAstId() const { return !ast_id_.IsNone(); } | 1811 bool HasAstId() const { return !ast_id_.IsNone(); } |
| 1811 BailoutId ast_id() const { return ast_id_; } | 1812 BailoutId ast_id() const { return ast_id_; } |
| 1812 void set_ast_id(BailoutId id) { | 1813 void set_ast_id(BailoutId id) { |
| 1813 ASSERT(!HasAstId()); | 1814 ASSERT(!HasAstId()); |
| 1814 ast_id_ = id; | 1815 ast_id_ = id; |
| 1815 } | 1816 } |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1878 for (int i = 0; i < assigned_indexes_.length(); ++i) { | 1879 for (int i = 0; i < assigned_indexes_.length(); ++i) { |
| 1879 if (assigned_indexes_[i] == index) return true; | 1880 if (assigned_indexes_[i] == index) return true; |
| 1880 } | 1881 } |
| 1881 return false; | 1882 return false; |
| 1882 } | 1883 } |
| 1883 BailoutId ast_id_; | 1884 BailoutId ast_id_; |
| 1884 int pop_count_; | 1885 int pop_count_; |
| 1885 ZoneList<HValue*> values_; | 1886 ZoneList<HValue*> values_; |
| 1886 ZoneList<int> assigned_indexes_; | 1887 ZoneList<int> assigned_indexes_; |
| 1887 Zone* zone_; | 1888 Zone* zone_; |
| 1888 RemovableSimulate removable_; | 1889 RemovableSimulate removable_ : 2; |
| 1890 bool done_with_replay_ : 1; |
| 1889 | 1891 |
| 1890 #ifdef DEBUG | 1892 #ifdef DEBUG |
| 1891 Handle<JSFunction> closure_; | 1893 Handle<JSFunction> closure_; |
| 1892 #endif | 1894 #endif |
| 1893 }; | 1895 }; |
| 1894 | 1896 |
| 1895 | 1897 |
| 1896 class HEnvironmentMarker V8_FINAL : public HTemplateInstruction<1> { | 1898 class HEnvironmentMarker V8_FINAL : public HTemplateInstruction<1> { |
| 1897 public: | 1899 public: |
| 1898 enum Kind { BIND, LOOKUP }; | 1900 enum Kind { BIND, LOOKUP }; |
| (...skipping 5589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7488 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7490 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
| 7489 }; | 7491 }; |
| 7490 | 7492 |
| 7491 | 7493 |
| 7492 #undef DECLARE_INSTRUCTION | 7494 #undef DECLARE_INSTRUCTION |
| 7493 #undef DECLARE_CONCRETE_INSTRUCTION | 7495 #undef DECLARE_CONCRETE_INSTRUCTION |
| 7494 | 7496 |
| 7495 } } // namespace v8::internal | 7497 } } // namespace v8::internal |
| 7496 | 7498 |
| 7497 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7499 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |