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

Side by Side Diff: src/ast.h

Issue 885643004: new classes: assert that constructors are not callable and rewrite 'return;' (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « no previous file | src/ast-value-factory.h » ('j') | test/mjsunit/mjsunit.status » ('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 2612 matching lines...) Expand 10 before | Expand all | Expand 10 after
2623 int parameter_count_; 2623 int parameter_count_;
2624 int function_token_position_; 2624 int function_token_position_;
2625 2625
2626 unsigned bitfield_; 2626 unsigned bitfield_;
2627 class IsExpression : public BitField<bool, 0, 1> {}; 2627 class IsExpression : public BitField<bool, 0, 1> {};
2628 class IsAnonymous : public BitField<bool, 1, 1> {}; 2628 class IsAnonymous : public BitField<bool, 1, 1> {};
2629 class Pretenure : public BitField<bool, 2, 1> {}; 2629 class Pretenure : public BitField<bool, 2, 1> {};
2630 class HasDuplicateParameters : public BitField<ParameterFlag, 3, 1> {}; 2630 class HasDuplicateParameters : public BitField<ParameterFlag, 3, 1> {};
2631 class IsFunction : public BitField<IsFunctionFlag, 4, 1> {}; 2631 class IsFunction : public BitField<IsFunctionFlag, 4, 1> {};
2632 class IsParenthesized : public BitField<IsParenthesizedFlag, 5, 1> {}; 2632 class IsParenthesized : public BitField<IsParenthesizedFlag, 5, 1> {};
2633 class FunctionKindBits : public BitField<FunctionKind, 6, 5> {}; 2633 class FunctionKindBits : public BitField<FunctionKind, 6, 6> {};
2634 }; 2634 };
2635 2635
2636 2636
2637 class ClassLiteral FINAL : public Expression { 2637 class ClassLiteral FINAL : public Expression {
2638 public: 2638 public:
2639 typedef ObjectLiteralProperty Property; 2639 typedef ObjectLiteralProperty Property;
2640 2640
2641 DECLARE_NODE_TYPE(ClassLiteral) 2641 DECLARE_NODE_TYPE(ClassLiteral)
2642 2642
2643 Handle<String> name() const { return raw_name_->string(); } 2643 Handle<String> name() const { return raw_name_->string(); }
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after
3552 3552
3553 private: 3553 private:
3554 Zone* zone_; 3554 Zone* zone_;
3555 AstValueFactory* ast_value_factory_; 3555 AstValueFactory* ast_value_factory_;
3556 }; 3556 };
3557 3557
3558 3558
3559 } } // namespace v8::internal 3559 } } // namespace v8::internal
3560 3560
3561 #endif // V8_AST_H_ 3561 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « no previous file | src/ast-value-factory.h » ('j') | test/mjsunit/mjsunit.status » ('J')

Powered by Google App Engine
This is Rietveld 408576698