Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1180)

Side by Side Diff: src/compiler/typer.h

Issue 1192553002: [turbofan] Fix life time and use of the Typer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address Michis comments. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/pipeline.cc ('k') | src/compiler/typer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_COMPILER_TYPER_H_ 5 #ifndef V8_COMPILER_TYPER_H_
6 #define V8_COMPILER_TYPER_H_ 6 #define V8_COMPILER_TYPER_H_
7 7
8 #include "src/compiler/graph.h" 8 #include "src/compiler/graph.h"
9 #include "src/types.h" 9 #include "src/types.h"
10 10
11 namespace v8 { 11 namespace v8 {
12 namespace internal { 12 namespace internal {
13 namespace compiler { 13 namespace compiler {
14 14
15 // Forward declarations. 15 // Forward declarations.
16 class LazyTypeCache; 16 class LazyTypeCache;
17 17
18 18
19 class Typer { 19 class Typer {
20 public: 20 public:
21 Typer(Isolate* isolate, Graph* graph, MaybeHandle<Context> context); 21 Typer(Isolate* isolate, Graph* graph, MaybeHandle<Context> context);
22 ~Typer(); 22 ~Typer();
23 23
24 void Run(); 24 void Run();
25 // TODO(bmeurer,jarin): Remove this once we have a notion of "roots" on Graph.
26 void Run(const ZoneVector<Node*>& roots);
25 27
26 Graph* graph() { return graph_; } 28 Graph* graph() { return graph_; }
27 MaybeHandle<Context> context() { return context_; } 29 MaybeHandle<Context> context() { return context_; }
28 Zone* zone() { return graph_->zone(); } 30 Zone* zone() { return graph_->zone(); }
29 Isolate* isolate() { return isolate_; } 31 Isolate* isolate() { return isolate_; }
30 32
31 private: 33 private:
32 class Visitor; 34 class Visitor;
33 class Decorator; 35 class Decorator;
34 36
(...skipping 28 matching lines...) Expand all
63 LazyTypeCache* cache_; 65 LazyTypeCache* cache_;
64 66
65 DISALLOW_COPY_AND_ASSIGN(Typer); 67 DISALLOW_COPY_AND_ASSIGN(Typer);
66 }; 68 };
67 69
68 } // namespace compiler 70 } // namespace compiler
69 } // namespace internal 71 } // namespace internal
70 } // namespace v8 72 } // namespace v8
71 73
72 #endif // V8_COMPILER_TYPER_H_ 74 #endif // V8_COMPILER_TYPER_H_
OLDNEW
« no previous file with comments | « src/compiler/pipeline.cc ('k') | src/compiler/typer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698