| 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/typing.h" |    5 #include "src/typing.h" | 
|    6  |    6  | 
|    7 #include "src/frames.h" |    7 #include "src/frames.h" | 
|    8 #include "src/frames-inl.h" |    8 #include "src/frames-inl.h" | 
|    9 #include "src/ostreams.h" |    9 #include "src/ostreams.h" | 
|   10 #include "src/parser.h"  // for CompileTimeValue; TODO(rossberg): should move |   10 #include "src/parser.h"  // for CompileTimeValue; TODO(rossberg): should move | 
|   11 #include "src/scopes.h" |   11 #include "src/scopes.h" | 
|   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  |   17  | 
|   18 AstTyper::AstTyper(Isolate* isolate, Zone* zone, Handle<JSFunction> closure, |   18 AstTyper::AstTyper(Isolate* isolate, Zone* zone, Handle<JSFunction> closure, | 
|   19                    Scope* scope, BailoutId osr_ast_id, FunctionLiteral* root) |   19                    Scope* scope, BailoutId osr_ast_id, FunctionLiteral* root) | 
|   20     : isolate_(isolate), |   20     : isolate_(isolate), | 
|   21       closure_(closure), |   21       closure_(closure), | 
|   22       scope_(scope), |   22       scope_(scope), | 
|   23       osr_ast_id_(osr_ast_id), |   23       osr_ast_id_(osr_ast_id), | 
|   24       root_(root), |   24       root_(root), | 
|   25       oracle_(isolate, zone, handle(closure->shared()->code()), |   25       oracle_(isolate, zone, handle(closure->shared()->code()), | 
|   26               handle(closure->shared()->feedback_vector()), |   26               handle(closure->shared()->feedback_vector()), | 
|   27               handle(closure->context()->native_context())), |   27               handle(closure->context()->native_context())), | 
|   28       store_(zone) { |   28       store_(zone) { | 
|   29   InitializeAstVisitor(isolate, zone); |   29   InitializeAstVisitor(isolate); | 
|   30 } |   30 } | 
|   31  |   31  | 
|   32  |   32  | 
|   33 #ifdef OBJECT_PRINT |   33 #ifdef OBJECT_PRINT | 
|   34   static void PrintObserved(Variable* var, Object* value, Type* type) { |   34   static void PrintObserved(Variable* var, Object* value, Type* type) { | 
|   35     OFStream os(stdout); |   35     OFStream os(stdout); | 
|   36     os << "  observed " << (var->IsParameter() ? "param" : "local") << "  "; |   36     os << "  observed " << (var->IsParameter() ? "param" : "local") << "  "; | 
|   37     var->name()->Print(os); |   37     var->name()->Print(os); | 
|   38     os << " : " << Brief(value) << " -> "; |   38     os << " : " << Brief(value) << " -> "; | 
|   39     type->PrintTo(os); |   39     type->PrintTo(os); | 
| (...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  805 void AstTyper::VisitImportDeclaration(ImportDeclaration* declaration) { |  805 void AstTyper::VisitImportDeclaration(ImportDeclaration* declaration) { | 
|  806 } |  806 } | 
|  807  |  807  | 
|  808  |  808  | 
|  809 void AstTyper::VisitExportDeclaration(ExportDeclaration* declaration) { |  809 void AstTyper::VisitExportDeclaration(ExportDeclaration* declaration) { | 
|  810 } |  810 } | 
|  811  |  811  | 
|  812  |  812  | 
|  813 }  // namespace internal |  813 }  // namespace internal | 
|  814 }  // namespace v8 |  814 }  // namespace v8 | 
| OLD | NEW |