| 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_AST_H_ | 5 #ifndef V8_AST_AST_H_ |
| 6 #define V8_AST_AST_H_ | 6 #define V8_AST_AST_H_ |
| 7 | 7 |
| 8 #include "src/ast/ast-value-factory.h" | 8 #include "src/ast/ast-value-factory.h" |
| 9 #include "src/ast/modules.h" | 9 #include "src/ast/modules.h" |
| 10 #include "src/ast/variables.h" | 10 #include "src/ast/variables.h" |
| (...skipping 1433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1444 } | 1444 } |
| 1445 | 1445 |
| 1446 enum Flags { | 1446 enum Flags { |
| 1447 kNoFlags = 0, | 1447 kNoFlags = 0, |
| 1448 kFastElements = 1, | 1448 kFastElements = 1, |
| 1449 kShallowProperties = 1 << 1, | 1449 kShallowProperties = 1 << 1, |
| 1450 kDisableMementos = 1 << 2 | 1450 kDisableMementos = 1 << 2 |
| 1451 }; | 1451 }; |
| 1452 | 1452 |
| 1453 struct Accessors: public ZoneObject { | 1453 struct Accessors: public ZoneObject { |
| 1454 Accessors() : getter(NULL), setter(NULL) {} | 1454 Accessors() : getter(NULL), setter(NULL), bailout_id(BailoutId::None()) {} |
| 1455 ObjectLiteralProperty* getter; | 1455 ObjectLiteralProperty* getter; |
| 1456 ObjectLiteralProperty* setter; | 1456 ObjectLiteralProperty* setter; |
| 1457 BailoutId bailout_id; |
| 1457 }; | 1458 }; |
| 1458 | 1459 |
| 1459 BailoutId CreateLiteralId() const { return BailoutId(local_id(0)); } | 1460 BailoutId CreateLiteralId() const { return BailoutId(local_id(0)); } |
| 1460 | 1461 |
| 1461 // Return an AST id for a property that is used in simulate instructions. | 1462 // Return an AST id for a property that is used in simulate instructions. |
| 1462 BailoutId GetIdForPropertyName(int i) { | 1463 BailoutId GetIdForPropertyName(int i) { |
| 1463 return BailoutId(local_id(2 * i + 1)); | 1464 return BailoutId(local_id(2 * i + 1)); |
| 1464 } | 1465 } |
| 1465 BailoutId GetIdForPropertySet(int i) { | 1466 BailoutId GetIdForPropertySet(int i) { |
| 1466 return BailoutId(local_id(2 * i + 2)); | 1467 return BailoutId(local_id(2 * i + 2)); |
| (...skipping 2081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3548 : NULL; \ | 3549 : NULL; \ |
| 3549 } | 3550 } |
| 3550 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) | 3551 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) |
| 3551 #undef DECLARE_NODE_FUNCTIONS | 3552 #undef DECLARE_NODE_FUNCTIONS |
| 3552 | 3553 |
| 3553 | 3554 |
| 3554 } // namespace internal | 3555 } // namespace internal |
| 3555 } // namespace v8 | 3556 } // namespace v8 |
| 3556 | 3557 |
| 3557 #endif // V8_AST_AST_H_ | 3558 #endif // V8_AST_AST_H_ |
| OLD | NEW |