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

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

Issue 2950993002: Make some functions that are hit during renderer startup available for inlining (Closed)
Patch Set: don't expose bytecode-traits.h in bytecodes.h Created 3 years, 6 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') | src/ast/scopes.h » ('J')
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 1569 matching lines...) Expand 10 before | Expand all | Expand 10 after
1580 1580
1581 FeedbackSlot VariableFeedbackSlot() { return variable_feedback_slot_; } 1581 FeedbackSlot VariableFeedbackSlot() { return variable_feedback_slot_; }
1582 1582
1583 void set_next_unresolved(VariableProxy* next) { next_unresolved_ = next; } 1583 void set_next_unresolved(VariableProxy* next) { next_unresolved_ = next; }
1584 VariableProxy* next_unresolved() { return next_unresolved_; } 1584 VariableProxy* next_unresolved() { return next_unresolved_; }
1585 1585
1586 private: 1586 private:
1587 friend class AstNodeFactory; 1587 friend class AstNodeFactory;
1588 1588
1589 VariableProxy(Variable* var, int start_position); 1589 VariableProxy(Variable* var, int start_position);
1590
1590 VariableProxy(const AstRawString* name, VariableKind variable_kind, 1591 VariableProxy(const AstRawString* name, VariableKind variable_kind,
1591 int start_position); 1592 int start_position)
1593 : Expression(start_position, kVariableProxy),
1594 raw_name_(name),
1595 next_unresolved_(nullptr) {
1596 bit_field_ |= IsThisField::encode(variable_kind == THIS_VARIABLE) |
1597 IsAssignedField::encode(false) |
1598 IsResolvedField::encode(false) |
1599 HoleCheckModeField::encode(HoleCheckMode::kElided);
1600 }
1601
1592 explicit VariableProxy(const VariableProxy* copy_from); 1602 explicit VariableProxy(const VariableProxy* copy_from);
1593 1603
1594 class IsThisField : public BitField<bool, Expression::kNextBitFieldIndex, 1> { 1604 class IsThisField : public BitField<bool, Expression::kNextBitFieldIndex, 1> {
1595 }; 1605 };
1596 class IsAssignedField : public BitField<bool, IsThisField::kNext, 1> {}; 1606 class IsAssignedField : public BitField<bool, IsThisField::kNext, 1> {};
1597 class IsResolvedField : public BitField<bool, IsAssignedField::kNext, 1> {}; 1607 class IsResolvedField : public BitField<bool, IsAssignedField::kNext, 1> {};
1598 class IsNewTargetField : public BitField<bool, IsResolvedField::kNext, 1> {}; 1608 class IsNewTargetField : public BitField<bool, IsResolvedField::kNext, 1> {};
1599 class HoleCheckModeField 1609 class HoleCheckModeField
1600 : public BitField<HoleCheckMode, IsNewTargetField::kNext, 1> {}; 1610 : public BitField<HoleCheckMode, IsNewTargetField::kNext, 1> {};
1601 1611
(...skipping 1889 matching lines...) Expand 10 before | Expand all | Expand 10 after
3491 : NULL; \ 3501 : NULL; \
3492 } 3502 }
3493 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) 3503 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS)
3494 #undef DECLARE_NODE_FUNCTIONS 3504 #undef DECLARE_NODE_FUNCTIONS
3495 3505
3496 3506
3497 } // namespace internal 3507 } // namespace internal
3498 } // namespace v8 3508 } // namespace v8
3499 3509
3500 #endif // V8_AST_AST_H_ 3510 #endif // V8_AST_AST_H_
OLDNEW
« no previous file with comments | « no previous file | src/ast/ast.cc » ('j') | src/ast/scopes.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698