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

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

Issue 2207413002: [turbofan] Fix missing bailout for accessors in literals. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
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/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
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
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_
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