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

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: Fix bit width 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') | 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_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 2600 matching lines...) Expand 10 before | Expand all | Expand 10 after
2611 int parameter_count_; 2611 int parameter_count_;
2612 int function_token_position_; 2612 int function_token_position_;
2613 2613
2614 unsigned bitfield_; 2614 unsigned bitfield_;
2615 class IsExpression : public BitField<bool, 0, 1> {}; 2615 class IsExpression : public BitField<bool, 0, 1> {};
2616 class IsAnonymous : public BitField<bool, 1, 1> {}; 2616 class IsAnonymous : public BitField<bool, 1, 1> {};
2617 class Pretenure : public BitField<bool, 2, 1> {}; 2617 class Pretenure : public BitField<bool, 2, 1> {};
2618 class HasDuplicateParameters : public BitField<ParameterFlag, 3, 1> {}; 2618 class HasDuplicateParameters : public BitField<ParameterFlag, 3, 1> {};
2619 class IsFunction : public BitField<IsFunctionFlag, 4, 1> {}; 2619 class IsFunction : public BitField<IsFunctionFlag, 4, 1> {};
2620 class IsParenthesized : public BitField<IsParenthesizedFlag, 5, 1> {}; 2620 class IsParenthesized : public BitField<IsParenthesizedFlag, 5, 1> {};
2621 class FunctionKindBits : public BitField<FunctionKind, 6, 6> {}; 2621 class FunctionKindBits : public BitField<FunctionKind, 6, 7> {};
2622 }; 2622 };
2623 2623
2624 2624
2625 class ClassLiteral FINAL : public Expression { 2625 class ClassLiteral FINAL : public Expression {
2626 public: 2626 public:
2627 typedef ObjectLiteralProperty Property; 2627 typedef ObjectLiteralProperty Property;
2628 2628
2629 DECLARE_NODE_TYPE(ClassLiteral) 2629 DECLARE_NODE_TYPE(ClassLiteral)
2630 2630
2631 Handle<String> name() const { return raw_name_->string(); } 2631 Handle<String> name() const { return raw_name_->string(); }
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after
3540 3540
3541 private: 3541 private:
3542 Zone* zone_; 3542 Zone* zone_;
3543 AstValueFactory* ast_value_factory_; 3543 AstValueFactory* ast_value_factory_;
3544 }; 3544 };
3545 3545
3546 3546
3547 } } // namespace v8::internal 3547 } } // namespace v8::internal
3548 3548
3549 #endif // V8_AST_H_ 3549 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « no previous file | src/ast-value-factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698