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

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

Issue 2231813003: Make Variable::is_this always return the correct value (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: remove patch 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/ast/scopes.h » ('j') | src/ast/scopes.cc » ('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-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 1614 matching lines...) Expand 10 before | Expand all | Expand 10 after
1625 1625
1626 void AssignFeedbackVectorSlots(Isolate* isolate, FeedbackVectorSpec* spec, 1626 void AssignFeedbackVectorSlots(Isolate* isolate, FeedbackVectorSpec* spec,
1627 FeedbackVectorSlotCache* cache); 1627 FeedbackVectorSlotCache* cache);
1628 1628
1629 FeedbackVectorSlot VariableFeedbackSlot() { return variable_feedback_slot_; } 1629 FeedbackVectorSlot VariableFeedbackSlot() { return variable_feedback_slot_; }
1630 1630
1631 static int num_ids() { return parent_num_ids() + 1; } 1631 static int num_ids() { return parent_num_ids() + 1; }
1632 BailoutId BeforeId() const { return BailoutId(local_id(0)); } 1632 BailoutId BeforeId() const { return BailoutId(local_id(0)); }
1633 void set_next_unresolved(VariableProxy* next) { next_unresolved_ = next; } 1633 void set_next_unresolved(VariableProxy* next) { next_unresolved_ = next; }
1634 VariableProxy* next_unresolved() { return next_unresolved_; } 1634 VariableProxy* next_unresolved() { return next_unresolved_; }
1635 Variable::Kind var_kind() const {
1636 return is_this() ? Variable::THIS : Variable::NORMAL;
adamk 2016/08/10 17:57:39 I think the reason this bugs me is that var_kind()
Toon Verwaest 2016/08/11 08:46:25 Acknowledged.
1637 }
1635 1638
1636 private: 1639 private:
1637 friend class AstNodeFactory; 1640 friend class AstNodeFactory;
1638 1641
1639 VariableProxy(Zone* zone, Variable* var, int start_position, 1642 VariableProxy(Zone* zone, Variable* var, int start_position,
1640 int end_position); 1643 int end_position);
1641 VariableProxy(Zone* zone, const AstRawString* name, 1644 VariableProxy(Zone* zone, const AstRawString* name,
1642 Variable::Kind variable_kind, int start_position, 1645 Variable::Kind variable_kind, int start_position,
1643 int end_position); 1646 int end_position);
1644 VariableProxy(Zone* zone, const VariableProxy* copy_from); 1647 VariableProxy(Zone* zone, const VariableProxy* copy_from);
(...skipping 1832 matching lines...) Expand 10 before | Expand all | Expand 10 after
3477 : NULL; \ 3480 : NULL; \
3478 } 3481 }
3479 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) 3482 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS)
3480 #undef DECLARE_NODE_FUNCTIONS 3483 #undef DECLARE_NODE_FUNCTIONS
3481 3484
3482 3485
3483 } // namespace internal 3486 } // namespace internal
3484 } // namespace v8 3487 } // namespace v8
3485 3488
3486 #endif // V8_AST_AST_H_ 3489 #endif // V8_AST_AST_H_
OLDNEW
« no previous file with comments | « no previous file | src/ast/scopes.h » ('j') | src/ast/scopes.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698