Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: src/ast/ast.h

Issue 2230983005: Merged: [turbofan] Fix missing bailout for accessors in literals. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5.3
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/assembler.h" 8 #include "src/assembler.h"
9 #include "src/ast/ast-value-factory.h" 9 #include "src/ast/ast-value-factory.h"
10 #include "src/ast/modules.h" 10 #include "src/ast/modules.h"
(...skipping 1484 matching lines...) Expand 10 before | Expand all | Expand 10 after
1495 } 1495 }
1496 1496
1497 enum Flags { 1497 enum Flags {
1498 kNoFlags = 0, 1498 kNoFlags = 0,
1499 kFastElements = 1, 1499 kFastElements = 1,
1500 kShallowProperties = 1 << 1, 1500 kShallowProperties = 1 << 1,
1501 kDisableMementos = 1 << 2 1501 kDisableMementos = 1 << 2
1502 }; 1502 };
1503 1503
1504 struct Accessors: public ZoneObject { 1504 struct Accessors: public ZoneObject {
1505 Accessors() : getter(NULL), setter(NULL) {} 1505 Accessors() : getter(NULL), setter(NULL), bailout_id(BailoutId::None()) {}
1506 ObjectLiteralProperty* getter; 1506 ObjectLiteralProperty* getter;
1507 ObjectLiteralProperty* setter; 1507 ObjectLiteralProperty* setter;
1508 BailoutId bailout_id;
1508 }; 1509 };
1509 1510
1510 BailoutId CreateLiteralId() const { return BailoutId(local_id(0)); } 1511 BailoutId CreateLiteralId() const { return BailoutId(local_id(0)); }
1511 1512
1512 // Return an AST id for a property that is used in simulate instructions. 1513 // Return an AST id for a property that is used in simulate instructions.
1513 BailoutId GetIdForPropertyName(int i) { 1514 BailoutId GetIdForPropertyName(int i) {
1514 return BailoutId(local_id(2 * i + 1)); 1515 return BailoutId(local_id(2 * i + 1));
1515 } 1516 }
1516 BailoutId GetIdForPropertySet(int i) { 1517 BailoutId GetIdForPropertySet(int i) {
1517 return BailoutId(local_id(2 * i + 2)); 1518 return BailoutId(local_id(2 * i + 2));
(...skipping 2061 matching lines...) Expand 10 before | Expand all | Expand 10 after
3579 : NULL; \ 3580 : NULL; \
3580 } 3581 }
3581 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) 3582 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS)
3582 #undef DECLARE_NODE_FUNCTIONS 3583 #undef DECLARE_NODE_FUNCTIONS
3583 3584
3584 3585
3585 } // namespace internal 3586 } // namespace internal
3586 } // namespace v8 3587 } // namespace v8
3587 3588
3588 #endif // V8_AST_AST_H_ 3589 #endif // V8_AST_AST_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698