| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_CRANKSHAFT_TYPING_H_ | 5 #ifndef V8_CRANKSHAFT_TYPING_H_ |
| 6 #define V8_CRANKSHAFT_TYPING_H_ | 6 #define V8_CRANKSHAFT_TYPING_H_ |
| 7 | 7 |
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/ast/ast-type-bounds.h" | 9 #include "src/ast/ast-type-bounds.h" |
| 10 #include "src/ast/ast.h" | |
| 11 #include "src/ast/scopes.h" | 10 #include "src/ast/scopes.h" |
| 11 #include "src/ast/variables.h" |
| 12 #include "src/effects.h" | 12 #include "src/effects.h" |
| 13 #include "src/type-info.h" | 13 #include "src/type-info.h" |
| 14 #include "src/types.h" | 14 #include "src/types.h" |
| 15 #include "src/zone.h" | 15 #include "src/zone.h" |
| 16 | 16 |
| 17 namespace v8 { | 17 namespace v8 { |
| 18 namespace internal { | 18 namespace internal { |
| 19 | 19 |
| 20 class FunctionLiteral; |
| 21 |
| 20 class AstTyper final : public AstVisitor<AstTyper> { | 22 class AstTyper final : public AstVisitor<AstTyper> { |
| 21 public: | 23 public: |
| 22 AstTyper(Isolate* isolate, Zone* zone, Handle<JSFunction> closure, | 24 AstTyper(Isolate* isolate, Zone* zone, Handle<JSFunction> closure, |
| 23 DeclarationScope* scope, BailoutId osr_ast_id, FunctionLiteral* root, | 25 DeclarationScope* scope, BailoutId osr_ast_id, FunctionLiteral* root, |
| 24 AstTypeBounds* bounds); | 26 AstTypeBounds* bounds); |
| 25 void Run(); | 27 void Run(); |
| 26 | 28 |
| 27 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); | 29 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); |
| 28 | 30 |
| 29 private: | 31 private: |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 AST_NODE_LIST(DECLARE_VISIT) | 80 AST_NODE_LIST(DECLARE_VISIT) |
| 79 #undef DECLARE_VISIT | 81 #undef DECLARE_VISIT |
| 80 | 82 |
| 81 DISALLOW_COPY_AND_ASSIGN(AstTyper); | 83 DISALLOW_COPY_AND_ASSIGN(AstTyper); |
| 82 }; | 84 }; |
| 83 | 85 |
| 84 } // namespace internal | 86 } // namespace internal |
| 85 } // namespace v8 | 87 } // namespace v8 |
| 86 | 88 |
| 87 #endif // V8_CRANKSHAFT_TYPING_H_ | 89 #endif // V8_CRANKSHAFT_TYPING_H_ |
| OLD | NEW |