OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 22 matching lines...) Expand all Loading... |
33 #include "scopes.h" | 33 #include "scopes.h" |
34 | 34 |
35 namespace v8 { | 35 namespace v8 { |
36 namespace internal { | 36 namespace internal { |
37 | 37 |
38 | 38 |
39 AstTyper::AstTyper(CompilationInfo* info) | 39 AstTyper::AstTyper(CompilationInfo* info) |
40 : info_(info), | 40 : info_(info), |
41 oracle_( | 41 oracle_( |
42 Handle<Code>(info->closure()->shared()->code()), | 42 Handle<Code>(info->closure()->shared()->code()), |
43 Handle<FixedArray>(info->closure()->shared()->feedback_vector()), | |
44 Handle<Context>(info->closure()->context()->native_context()), | 43 Handle<Context>(info->closure()->context()->native_context()), |
45 info->zone()), | 44 info->zone()), |
46 store_(info->zone()) { | 45 store_(info->zone()) { |
47 InitializeAstVisitor(info->zone()); | 46 InitializeAstVisitor(info->zone()); |
48 } | 47 } |
49 | 48 |
50 | 49 |
51 #define RECURSE(call) \ | 50 #define RECURSE(call) \ |
52 do { \ | 51 do { \ |
53 ASSERT(!visitor->HasStackOverflow()); \ | 52 ASSERT(!visitor->HasStackOverflow()); \ |
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
792 void AstTyper::VisitModuleUrl(ModuleUrl* module) { | 791 void AstTyper::VisitModuleUrl(ModuleUrl* module) { |
793 } | 792 } |
794 | 793 |
795 | 794 |
796 void AstTyper::VisitModuleStatement(ModuleStatement* stmt) { | 795 void AstTyper::VisitModuleStatement(ModuleStatement* stmt) { |
797 RECURSE(Visit(stmt->body())); | 796 RECURSE(Visit(stmt->body())); |
798 } | 797 } |
799 | 798 |
800 | 799 |
801 } } // namespace v8::internal | 800 } } // namespace v8::internal |
OLD | NEW |