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
3 // found in the LICENSE file.
5 #ifndef V8_COMPILER_TYPER_H_
6 #define V8_COMPILER_TYPER_H_
10 #include "src/compiler/graph.h"
11 #include "src/compiler/opcodes.h"
12 #include "src/types.h"
20 explicit Typer(Zone* zone);
22 void Init(Node* node);
23 void Run(Graph* graph, MaybeHandle<Context> context);
24 void Narrow(Graph* graph, Node* node, MaybeHandle<Context> context);
25 void Widen(Graph* graph, Node* node, MaybeHandle<Context> context);
27 void DecorateGraph(Graph* graph);
29 Zone* zone() { return zone_; }
30 Isolate* isolate() { return zone_->isolate(); }
43 Type* array_buffer_fun_;
44 Type* int8_array_fun_;
45 Type* int16_array_fun_;
46 Type* int32_array_fun_;
47 Type* uint8_array_fun_;
48 Type* uint16_array_fun_;
49 Type* uint32_array_fun_;
50 Type* float32_array_fun_;
51 Type* float64_array_fun_;
55 } // namespace v8::internal::compiler
57 #endif // V8_COMPILER_TYPER_H_