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 24 matching lines...) Expand all Loading... |
35 | 35 |
36 | 36 |
37 AstTyper::AstTyper(CompilationInfo* info) | 37 AstTyper::AstTyper(CompilationInfo* info) |
38 : info_(info), | 38 : info_(info), |
39 oracle_( | 39 oracle_( |
40 Handle<Code>(info->closure()->shared()->code()), | 40 Handle<Code>(info->closure()->shared()->code()), |
41 Handle<Context>(info->closure()->context()->native_context()), | 41 Handle<Context>(info->closure()->context()->native_context()), |
42 info->isolate(), | 42 info->isolate(), |
43 info->zone()), | 43 info->zone()), |
44 store_(info->zone()) { | 44 store_(info->zone()) { |
45 InitializeAstVisitor(); | 45 InitializeAstVisitor(info->isolate()); |
46 } | 46 } |
47 | 47 |
48 | 48 |
49 #define RECURSE(call) \ | 49 #define RECURSE(call) \ |
50 do { \ | 50 do { \ |
51 ASSERT(!visitor->HasStackOverflow()); \ | 51 ASSERT(!visitor->HasStackOverflow()); \ |
52 call; \ | 52 call; \ |
53 if (visitor->HasStackOverflow()) return; \ | 53 if (visitor->HasStackOverflow()) return; \ |
54 } while (false) | 54 } while (false) |
55 | 55 |
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
695 void AstTyper::VisitModuleUrl(ModuleUrl* module) { | 695 void AstTyper::VisitModuleUrl(ModuleUrl* module) { |
696 } | 696 } |
697 | 697 |
698 | 698 |
699 void AstTyper::VisitModuleStatement(ModuleStatement* stmt) { | 699 void AstTyper::VisitModuleStatement(ModuleStatement* stmt) { |
700 RECURSE(Visit(stmt->body())); | 700 RECURSE(Visit(stmt->body())); |
701 } | 701 } |
702 | 702 |
703 | 703 |
704 } } // namespace v8::internal | 704 } } // namespace v8::internal |
OLD | NEW |