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

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

Issue 2955793002: Revert of Make some functions that are hit during renderer startup available for inlining (Closed)
Patch Set: Created 3 years, 5 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/ast/ast.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 1567 matching lines...) Expand 10 before | Expand all | Expand 10 after
1578 1578
1579 FeedbackSlot VariableFeedbackSlot() { return variable_feedback_slot_; } 1579 FeedbackSlot VariableFeedbackSlot() { return variable_feedback_slot_; }
1580 1580
1581 void set_next_unresolved(VariableProxy* next) { next_unresolved_ = next; } 1581 void set_next_unresolved(VariableProxy* next) { next_unresolved_ = next; }
1582 VariableProxy* next_unresolved() { return next_unresolved_; } 1582 VariableProxy* next_unresolved() { return next_unresolved_; }
1583 1583
1584 private: 1584 private:
1585 friend class AstNodeFactory; 1585 friend class AstNodeFactory;
1586 1586
1587 VariableProxy(Variable* var, int start_position); 1587 VariableProxy(Variable* var, int start_position);
1588
1589 VariableProxy(const AstRawString* name, VariableKind variable_kind, 1588 VariableProxy(const AstRawString* name, VariableKind variable_kind,
1590 int start_position) 1589 int start_position);
1591 : Expression(start_position, kVariableProxy),
1592 raw_name_(name),
1593 next_unresolved_(nullptr) {
1594 bit_field_ |= IsThisField::encode(variable_kind == THIS_VARIABLE) |
1595 IsAssignedField::encode(false) |
1596 IsResolvedField::encode(false) |
1597 HoleCheckModeField::encode(HoleCheckMode::kElided);
1598 }
1599
1600 explicit VariableProxy(const VariableProxy* copy_from); 1590 explicit VariableProxy(const VariableProxy* copy_from);
1601 1591
1602 class IsThisField : public BitField<bool, Expression::kNextBitFieldIndex, 1> { 1592 class IsThisField : public BitField<bool, Expression::kNextBitFieldIndex, 1> {
1603 }; 1593 };
1604 class IsAssignedField : public BitField<bool, IsThisField::kNext, 1> {}; 1594 class IsAssignedField : public BitField<bool, IsThisField::kNext, 1> {};
1605 class IsResolvedField : public BitField<bool, IsAssignedField::kNext, 1> {}; 1595 class IsResolvedField : public BitField<bool, IsAssignedField::kNext, 1> {};
1606 class IsNewTargetField : public BitField<bool, IsResolvedField::kNext, 1> {}; 1596 class IsNewTargetField : public BitField<bool, IsResolvedField::kNext, 1> {};
1607 class HoleCheckModeField 1597 class HoleCheckModeField
1608 : public BitField<HoleCheckMode, IsNewTargetField::kNext, 1> {}; 1598 : public BitField<HoleCheckMode, IsNewTargetField::kNext, 1> {};
1609 1599
(...skipping 1955 matching lines...) Expand 10 before | Expand all | Expand 10 after
3565 : NULL; \ 3555 : NULL; \
3566 } 3556 }
3567 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) 3557 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS)
3568 #undef DECLARE_NODE_FUNCTIONS 3558 #undef DECLARE_NODE_FUNCTIONS
3569 3559
3570 3560
3571 } // namespace internal 3561 } // namespace internal
3572 } // namespace v8 3562 } // namespace v8
3573 3563
3574 #endif // V8_AST_AST_H_ 3564 #endif // V8_AST_AST_H_
OLDNEW
« no previous file with comments | « no previous file | src/ast/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698