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

Unified Diff: src/compiler/typer.h

Issue 771683002: [turbofan] Initialize less frequently used types in typer.cc lazily. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/compiler/typer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/typer.h
diff --git a/src/compiler/typer.h b/src/compiler/typer.h
index 2cd95970fcf9b3cde4f7ceafad702c6522ab701d..6c5bc1e2814fef6302833a1ab3fddce8323d4a18 100644
--- a/src/compiler/typer.h
+++ b/src/compiler/typer.h
@@ -15,6 +15,8 @@ namespace v8 {
namespace internal {
namespace compiler {
+struct LazyTypeCache;
+
class Typer {
public:
explicit Typer(Graph* graph, MaybeHandle<Context> context);
@@ -60,18 +62,8 @@ class Typer {
Type* number_fun1_;
Type* number_fun2_;
Type* weakint_fun1_;
- Type* imul_fun_;
- Type* clz32_fun_;
Type* random_fun_;
- Type* array_buffer_fun_;
- Type* int8_array_fun_;
- Type* int16_array_fun_;
- Type* int32_array_fun_;
- Type* uint8_array_fun_;
- Type* uint16_array_fun_;
- Type* uint32_array_fun_;
- Type* float32_array_fun_;
- Type* float64_array_fun_;
+ LazyTypeCache* cache_;
ZoneVector<Handle<Object> > weaken_min_limits_;
ZoneVector<Handle<Object> > weaken_max_limits_;
« no previous file with comments | « no previous file | src/compiler/typer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698