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

Side by Side Diff: src/typing-asm.h

Issue 2045703007: V8. ASM-2-WASM. New type system. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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 | « BUILD.gn ('k') | src/v8.gyp » ('j') | src/wasm/asm-types.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_TYPING_ASM_H_ 5 #ifndef SRC_TYPING_ASM_H_
6 #define V8_TYPING_ASM_H_ 6 #define SRC_TYPING_ASM_H_
7
8 #include <string>
7 9
8 #include "src/allocation.h" 10 #include "src/allocation.h"
9 #include "src/ast/ast-type-bounds.h" 11 #include "src/ast/ast-type-bounds.h"
10 #include "src/ast/ast.h" 12 #include "src/ast/ast.h"
11 #include "src/effects.h" 13 #include "src/effects.h"
12 #include "src/type-info.h" 14 #include "src/type-info.h"
13 #include "src/types.h" 15 #include "src/types.h"
16 #include "src/wasm/asm-types.h"
14 #include "src/zone.h" 17 #include "src/zone.h"
15 18
16 namespace v8 { 19 namespace v8 {
17 namespace internal { 20 namespace internal {
18 21
19 class TypeCache; 22 class TypeCache;
20 23
21 class AsmTyper : public AstVisitor { 24 class AsmTyper : public AstVisitor {
25 private:
26 // TODO(jpp): remove this typedef.
27 // using Type = wasm::AsmType;
bradnelson 2016/06/10 05:59:51 Leftover?
John 2016/06/13 14:20:47 Done.
28
22 public: 29 public:
23 explicit AsmTyper(Isolate* isolate, Zone* zone, Script* script, 30 explicit AsmTyper(Isolate* isolate, Zone* zone, Script* script,
24 FunctionLiteral* root); 31 FunctionLiteral* root);
25 bool Validate(); 32 bool Validate();
26 void set_allow_simd(bool simd) { allow_simd_ = simd; } 33 void set_allow_simd(bool simd) { allow_simd_ = simd; }
27 const char* error_message() { return error_message_; } 34 const char* error_message() { return error_message_; }
28 const AstTypeBounds* bounds() { return &bounds_; } 35 const AstTypeBounds* bounds() { return &bounds_; }
29 36
30 enum StandardMember { 37 enum StandardMember {
31 kNone = 0, 38 kNone = 0,
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 185
179 #define DECLARE_VISIT(type) void Visit##type(type* node) override; 186 #define DECLARE_VISIT(type) void Visit##type(type* node) override;
180 AST_NODE_LIST(DECLARE_VISIT) 187 AST_NODE_LIST(DECLARE_VISIT)
181 #undef DECLARE_VISIT 188 #undef DECLARE_VISIT
182 189
183 DISALLOW_COPY_AND_ASSIGN(AsmTyper); 190 DISALLOW_COPY_AND_ASSIGN(AsmTyper);
184 }; 191 };
185 } // namespace internal 192 } // namespace internal
186 } // namespace v8 193 } // namespace v8
187 194
188 #endif // V8_TYPING_ASM_H_ 195 #endif // SRC_TYPING_ASM_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/v8.gyp » ('j') | src/wasm/asm-types.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698