| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_AST_H_ | 5 #ifndef V8_AST_H_ |
| 6 #define V8_AST_H_ | 6 #define V8_AST_H_ |
| 7 | 7 |
| 8 #include "src/v8.h" | 8 #include "src/v8.h" |
| 9 | 9 |
| 10 #include "src/assembler.h" | 10 #include "src/assembler.h" |
| (...skipping 1633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1644 const AstRawString* raw_name() const { | 1644 const AstRawString* raw_name() const { |
| 1645 return is_resolved() ? var_->raw_name() : raw_name_; | 1645 return is_resolved() ? var_->raw_name() : raw_name_; |
| 1646 } | 1646 } |
| 1647 | 1647 |
| 1648 Variable* var() const { | 1648 Variable* var() const { |
| 1649 DCHECK(is_resolved()); | 1649 DCHECK(is_resolved()); |
| 1650 return var_; | 1650 return var_; |
| 1651 } | 1651 } |
| 1652 void set_var(Variable* v) { | 1652 void set_var(Variable* v) { |
| 1653 DCHECK(!is_resolved()); | 1653 DCHECK(!is_resolved()); |
| 1654 DCHECK_NOT_NULL(v); | 1654 DCHECK(v); |
| 1655 var_ = v; | 1655 var_ = v; |
| 1656 } | 1656 } |
| 1657 | 1657 |
| 1658 bool is_this() const { return IsThisField::decode(bit_field_); } | 1658 bool is_this() const { return IsThisField::decode(bit_field_); } |
| 1659 | 1659 |
| 1660 bool is_assigned() const { return IsAssignedField::decode(bit_field_); } | 1660 bool is_assigned() const { return IsAssignedField::decode(bit_field_); } |
| 1661 void set_is_assigned() { | 1661 void set_is_assigned() { |
| 1662 bit_field_ = IsAssignedField::update(bit_field_, true); | 1662 bit_field_ = IsAssignedField::update(bit_field_, true); |
| 1663 } | 1663 } |
| 1664 | 1664 |
| (...skipping 1883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3548 | 3548 |
| 3549 private: | 3549 private: |
| 3550 Zone* zone_; | 3550 Zone* zone_; |
| 3551 AstValueFactory* ast_value_factory_; | 3551 AstValueFactory* ast_value_factory_; |
| 3552 }; | 3552 }; |
| 3553 | 3553 |
| 3554 | 3554 |
| 3555 } } // namespace v8::internal | 3555 } } // namespace v8::internal |
| 3556 | 3556 |
| 3557 #endif // V8_AST_H_ | 3557 #endif // V8_AST_H_ |
| OLD | NEW |