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

Side by Side Diff: src/ast.h

Issue 888613002: Initial switch to Chromium-style CHECK_* and DCHECK_* macros. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix slow dchecks. Created 5 years, 10 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 | « src/assert-scope.cc ('k') | src/ast.cc » ('j') | src/checks.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_H_ 5 #ifndef V8_AST_H_
6 #define V8_AST_H_ 6 #define V8_AST_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/assembler.h" 10 #include "src/assembler.h"
(...skipping 1633 matching lines...) Expand 10 before | Expand all | Expand 10 after
1644 const AstRawString* raw_name() const { 1644 const AstRawString* raw_name() const {
1645 return is_resolved() ? var_->raw_name() : raw_name_; 1645 return is_resolved() ? var_->raw_name() : raw_name_;
1646 } 1646 }
1647 1647
1648 Variable* var() const { 1648 Variable* var() const {
1649 DCHECK(is_resolved()); 1649 DCHECK(is_resolved());
1650 return var_; 1650 return var_;
1651 } 1651 }
1652 void set_var(Variable* v) { 1652 void set_var(Variable* v) {
1653 DCHECK(!is_resolved()); 1653 DCHECK(!is_resolved());
1654 DCHECK_NOT_NULL(v); 1654 DCHECK(v);
1655 var_ = v; 1655 var_ = v;
1656 } 1656 }
1657 1657
1658 bool is_this() const { return IsThisField::decode(bit_field_); } 1658 bool is_this() const { return IsThisField::decode(bit_field_); }
1659 1659
1660 bool is_assigned() const { return IsAssignedField::decode(bit_field_); } 1660 bool is_assigned() const { return IsAssignedField::decode(bit_field_); }
1661 void set_is_assigned() { 1661 void set_is_assigned() {
1662 bit_field_ = IsAssignedField::update(bit_field_, true); 1662 bit_field_ = IsAssignedField::update(bit_field_, true);
1663 } 1663 }
1664 1664
(...skipping 1883 matching lines...) Expand 10 before | Expand all | Expand 10 after
3548 3548
3549 private: 3549 private:
3550 Zone* zone_; 3550 Zone* zone_;
3551 AstValueFactory* ast_value_factory_; 3551 AstValueFactory* ast_value_factory_;
3552 }; 3552 };
3553 3553
3554 3554
3555 } } // namespace v8::internal 3555 } } // namespace v8::internal
3556 3556
3557 #endif // V8_AST_H_ 3557 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « src/assert-scope.cc ('k') | src/ast.cc » ('j') | src/checks.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698