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

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

Issue 2476423003: [crankshaft] FIx for in deopt at the end of the loop. (Closed)
Patch Set: Also check warm-up Created 4 years, 1 month 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/crankshaft/hydrogen.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-types.h" 8 #include "src/ast/ast-types.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 738 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 } 749 }
750 750
751 static int num_ids() { return parent_num_ids() + 7; } 751 static int num_ids() { return parent_num_ids() + 7; }
752 BailoutId BodyId() const { return BailoutId(local_id(0)); } 752 BailoutId BodyId() const { return BailoutId(local_id(0)); }
753 BailoutId EnumId() const { return BailoutId(local_id(1)); } 753 BailoutId EnumId() const { return BailoutId(local_id(1)); }
754 BailoutId ToObjectId() const { return BailoutId(local_id(2)); } 754 BailoutId ToObjectId() const { return BailoutId(local_id(2)); }
755 BailoutId PrepareId() const { return BailoutId(local_id(3)); } 755 BailoutId PrepareId() const { return BailoutId(local_id(3)); }
756 BailoutId FilterId() const { return BailoutId(local_id(4)); } 756 BailoutId FilterId() const { return BailoutId(local_id(4)); }
757 BailoutId AssignmentId() const { return BailoutId(local_id(5)); } 757 BailoutId AssignmentId() const { return BailoutId(local_id(5)); }
758 BailoutId IncrementId() const { return BailoutId(local_id(6)); } 758 BailoutId IncrementId() const { return BailoutId(local_id(6)); }
759 BailoutId ContinueId() const { return EntryId(); }
760 BailoutId StackCheckId() const { return BodyId(); } 759 BailoutId StackCheckId() const { return BodyId(); }
761 760
762 private: 761 private:
763 friend class AstNodeFactory; 762 friend class AstNodeFactory;
764 763
765 ForInStatement(ZoneList<const AstRawString*>* labels, int pos) 764 ForInStatement(ZoneList<const AstRawString*>* labels, int pos)
766 : ForEachStatement(labels, pos, kForInStatement), 765 : ForEachStatement(labels, pos, kForInStatement),
767 each_(nullptr), 766 each_(nullptr),
768 subject_(nullptr) { 767 subject_(nullptr) {
769 bit_field_ = ForInTypeField::update(bit_field_, SLOW_FOR_IN); 768 bit_field_ = ForInTypeField::update(bit_field_, SLOW_FOR_IN);
(...skipping 2827 matching lines...) Expand 10 before | Expand all | Expand 10 after
3597 : NULL; \ 3596 : NULL; \
3598 } 3597 }
3599 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) 3598 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS)
3600 #undef DECLARE_NODE_FUNCTIONS 3599 #undef DECLARE_NODE_FUNCTIONS
3601 3600
3602 3601
3603 } // namespace internal 3602 } // namespace internal
3604 } // namespace v8 3603 } // namespace v8
3605 3604
3606 #endif // V8_AST_AST_H_ 3605 #endif // V8_AST_AST_H_
OLDNEW
« no previous file with comments | « no previous file | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698