OLD | NEW |
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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
| 7 #include "src/asmjs/typing-asm.h" |
| 8 #include "src/ast/ast-expression-visitor.h" |
7 #include "src/ast/ast.h" | 9 #include "src/ast/ast.h" |
8 #include "src/ast/ast-expression-visitor.h" | |
9 #include "src/ast/scopes.h" | 10 #include "src/ast/scopes.h" |
10 #include "src/parsing/parser.h" | 11 #include "src/parsing/parser.h" |
11 #include "src/parsing/rewriter.h" | 12 #include "src/parsing/rewriter.h" |
12 #include "src/type-cache.h" | 13 #include "src/type-cache.h" |
13 #include "src/typing-asm.h" | |
14 #include "test/cctest/cctest.h" | 14 #include "test/cctest/cctest.h" |
| 15 #include "test/cctest/expression-type-collector-macros.h" |
15 #include "test/cctest/expression-type-collector.h" | 16 #include "test/cctest/expression-type-collector.h" |
16 #include "test/cctest/expression-type-collector-macros.h" | |
17 | 17 |
18 // Macros for function types. | 18 // Macros for function types. |
19 #define FUNC_FOREIGN_TYPE Bounds(Type::Function(Type::Any(), zone)) | 19 #define FUNC_FOREIGN_TYPE Bounds(Type::Function(Type::Any(), zone)) |
20 #define FUNC_V_TYPE Bounds(Type::Function(Type::Undefined(), zone)) | 20 #define FUNC_V_TYPE Bounds(Type::Function(Type::Undefined(), zone)) |
21 #define FUNC_I_TYPE Bounds(Type::Function(cache.kAsmSigned, zone)) | 21 #define FUNC_I_TYPE Bounds(Type::Function(cache.kAsmSigned, zone)) |
22 #define FUNC_F_TYPE Bounds(Type::Function(cache.kAsmFloat, zone)) | 22 #define FUNC_F_TYPE Bounds(Type::Function(cache.kAsmFloat, zone)) |
23 #define FUNC_D_TYPE Bounds(Type::Function(cache.kAsmDouble, zone)) | 23 #define FUNC_D_TYPE Bounds(Type::Function(cache.kAsmDouble, zone)) |
24 #define FUNC_D2D_TYPE \ | 24 #define FUNC_D2D_TYPE \ |
25 Bounds(Type::Function(cache.kAsmDouble, cache.kAsmDouble, zone)) | 25 Bounds(Type::Function(cache.kAsmDouble, cache.kAsmDouble, zone)) |
26 #define FUNC_N2F_TYPE \ | 26 #define FUNC_N2F_TYPE \ |
(...skipping 2520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2547 CHECK_EXPR(BinaryOperation, Bounds(cache.kAsmDouble)) { | 2547 CHECK_EXPR(BinaryOperation, Bounds(cache.kAsmDouble)) { |
2548 CHECK_VAR(x, Bounds(cache.kAsmDouble)); | 2548 CHECK_VAR(x, Bounds(cache.kAsmDouble)); |
2549 CHECK_EXPR(Literal, Bounds(cache.kAsmDouble)); | 2549 CHECK_EXPR(Literal, Bounds(cache.kAsmDouble)); |
2550 } | 2550 } |
2551 } | 2551 } |
2552 } | 2552 } |
2553 CHECK_SKIP(); | 2553 CHECK_SKIP(); |
2554 } | 2554 } |
2555 CHECK_FUNC_TYPES_END | 2555 CHECK_FUNC_TYPES_END |
2556 } | 2556 } |
OLD | NEW |