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

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

Issue 1718083004: Allow constant multiply both ways. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fi Created 4 years, 10 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 | « no previous file | src/typing-asm.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 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 V8_TYPING_ASM_H_
6 #define V8_TYPING_ASM_H_ 6 #define V8_TYPING_ASM_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/ast/ast.h" 9 #include "src/ast/ast.h"
10 #include "src/effects.h" 10 #include "src/effects.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 : type(t), 85 : type(t),
86 is_check_function(false), 86 is_check_function(false),
87 is_constructor_function(false), 87 is_constructor_function(false),
88 standard_member(kNone) {} 88 standard_member(kNone) {}
89 }; 89 };
90 90
91 // Information for bi-directional typing with a cap on nesting depth. 91 // Information for bi-directional typing with a cap on nesting depth.
92 Type* expected_type_; 92 Type* expected_type_;
93 Type* computed_type_; 93 Type* computed_type_;
94 VariableInfo* property_info_; 94 VariableInfo* property_info_;
95 int intish_; // How many ops we've gone without a x|0. 95 int32_t intish_; // How many ops we've gone without a x|0.
96 96
97 Type* return_type_; // Return type of last function. 97 Type* return_type_; // Return type of last function.
98 size_t array_size_; // Array size of last ArrayLiteral. 98 size_t array_size_; // Array size of last ArrayLiteral.
99 99
100 typedef ZoneMap<std::string, VariableInfo*> ObjectTypeMap; 100 typedef ZoneMap<std::string, VariableInfo*> ObjectTypeMap;
101 ObjectTypeMap stdlib_types_; 101 ObjectTypeMap stdlib_types_;
102 ObjectTypeMap stdlib_heap_types_; 102 ObjectTypeMap stdlib_heap_types_;
103 ObjectTypeMap stdlib_math_types_; 103 ObjectTypeMap stdlib_math_types_;
104 #define V(NAME, Name, name, lane_count, lane_type) \ 104 #define V(NAME, Name, name, lane_count, lane_type) \
105 ObjectTypeMap stdlib_simd_##name##_types_; \ 105 ObjectTypeMap stdlib_simd_##name##_types_; \
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 #define DECLARE_VISIT(type) void Visit##type(type* node) override; 173 #define DECLARE_VISIT(type) void Visit##type(type* node) override;
174 AST_NODE_LIST(DECLARE_VISIT) 174 AST_NODE_LIST(DECLARE_VISIT)
175 #undef DECLARE_VISIT 175 #undef DECLARE_VISIT
176 176
177 DISALLOW_COPY_AND_ASSIGN(AsmTyper); 177 DISALLOW_COPY_AND_ASSIGN(AsmTyper);
178 }; 178 };
179 } // namespace internal 179 } // namespace internal
180 } // namespace v8 180 } // namespace v8
181 181
182 #endif // V8_TYPING_ASM_H_ 182 #endif // V8_TYPING_ASM_H_
OLDNEW
« no previous file with comments | « no previous file | src/typing-asm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698