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 #include "src/crankshaft/typing.h" | 5 #include "src/crankshaft/typing.h" |
6 | 6 |
7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/frames.h" | 8 #include "src/frames.h" |
9 #include "src/frames-inl.h" | 9 #include "src/frames-inl.h" |
10 #include "src/ostreams.h" | 10 #include "src/ostreams.h" |
11 #include "src/parsing/parser.h" // for CompileTimeValue; TODO(rossberg): move | 11 #include "src/parsing/parser.h" // for CompileTimeValue; TODO(rossberg): move |
12 #include "src/splay-tree-inl.h" | 12 #include "src/splay-tree-inl.h" |
13 | 13 |
14 namespace v8 { | 14 namespace v8 { |
15 namespace internal { | 15 namespace internal { |
16 | 16 |
17 | |
18 AstTyper::AstTyper(Isolate* isolate, Zone* zone, Handle<JSFunction> closure, | 17 AstTyper::AstTyper(Isolate* isolate, Zone* zone, Handle<JSFunction> closure, |
19 Scope* scope, BailoutId osr_ast_id, FunctionLiteral* root) | 18 Scope* scope, BailoutId osr_ast_id, FunctionLiteral* root) |
20 : isolate_(isolate), | 19 : isolate_(isolate), |
21 zone_(zone), | 20 zone_(zone), |
22 closure_(closure), | 21 closure_(closure), |
23 scope_(scope), | 22 scope_(scope), |
24 osr_ast_id_(osr_ast_id), | 23 osr_ast_id_(osr_ast_id), |
25 root_(root), | 24 root_(root), |
26 oracle_(isolate, zone, handle(closure->shared()->code()), | 25 oracle_(isolate, zone, handle(closure->shared()->code()), |
27 handle(closure->shared()->feedback_vector()), | 26 handle(closure->feedback_vector()), |
28 handle(closure->context()->native_context())), | 27 handle(closure->context()->native_context())), |
29 store_(zone) { | 28 store_(zone) { |
30 InitializeAstVisitor(isolate); | 29 InitializeAstVisitor(isolate); |
31 } | 30 } |
32 | 31 |
33 | 32 |
34 #ifdef OBJECT_PRINT | 33 #ifdef OBJECT_PRINT |
35 static void PrintObserved(Variable* var, Object* value, Type* type) { | 34 static void PrintObserved(Variable* var, Object* value, Type* type) { |
36 OFStream os(stdout); | 35 OFStream os(stdout); |
37 os << " observed " << (var->IsParameter() ? "param" : "local") << " "; | 36 os << " observed " << (var->IsParameter() ? "param" : "local") << " "; |
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
795 void AstTyper::VisitImportDeclaration(ImportDeclaration* declaration) { | 794 void AstTyper::VisitImportDeclaration(ImportDeclaration* declaration) { |
796 } | 795 } |
797 | 796 |
798 | 797 |
799 void AstTyper::VisitExportDeclaration(ExportDeclaration* declaration) { | 798 void AstTyper::VisitExportDeclaration(ExportDeclaration* declaration) { |
800 } | 799 } |
801 | 800 |
802 | 801 |
803 } // namespace internal | 802 } // namespace internal |
804 } // namespace v8 | 803 } // namespace v8 |
OLD | NEW |