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 #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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 128 |
129 void VisitDeclarations(ZoneList<Declaration*>* d) override; | 129 void VisitDeclarations(ZoneList<Declaration*>* d) override; |
130 void VisitStatements(ZoneList<Statement*>* s) override; | 130 void VisitStatements(ZoneList<Statement*>* s) override; |
131 | 131 |
132 void VisitExpressionAnnotation(Expression* e, Variable* var, bool is_return); | 132 void VisitExpressionAnnotation(Expression* e, Variable* var, bool is_return); |
133 void VisitFunctionAnnotation(FunctionLiteral* f); | 133 void VisitFunctionAnnotation(FunctionLiteral* f); |
134 void VisitAsmModule(FunctionLiteral* f); | 134 void VisitAsmModule(FunctionLiteral* f); |
135 | 135 |
136 void VisitHeapAccess(Property* expr, bool assigning, Type* assignment_type); | 136 void VisitHeapAccess(Property* expr, bool assigning, Type* assignment_type); |
137 | 137 |
| 138 void CheckPolymorphicStdlibArguments(enum StandardMember standard_member, |
| 139 ZoneList<Expression*>* args); |
| 140 |
138 Expression* GetReceiverOfPropertyAccess(Expression* expr, const char* name); | 141 Expression* GetReceiverOfPropertyAccess(Expression* expr, const char* name); |
139 bool IsMathObject(Expression* expr); | 142 bool IsMathObject(Expression* expr); |
140 bool IsSIMDObject(Expression* expr); | 143 bool IsSIMDObject(Expression* expr); |
141 bool IsSIMDTypeObject(Expression* expr, const char* name); | 144 bool IsSIMDTypeObject(Expression* expr, const char* name); |
142 bool IsStdlibObject(Expression* expr); | 145 bool IsStdlibObject(Expression* expr); |
143 | 146 |
144 void VisitSIMDProperty(Property* expr); | 147 void VisitSIMDProperty(Property* expr); |
145 | 148 |
146 int ElementShiftSize(Type* type); | 149 int ElementShiftSize(Type* type); |
147 Type* StorageType(Type* type); | 150 Type* StorageType(Type* type); |
(...skipping 25 matching lines...) Expand all Loading... |
173 #define DECLARE_VISIT(type) void Visit##type(type* node) override; | 176 #define DECLARE_VISIT(type) void Visit##type(type* node) override; |
174 AST_NODE_LIST(DECLARE_VISIT) | 177 AST_NODE_LIST(DECLARE_VISIT) |
175 #undef DECLARE_VISIT | 178 #undef DECLARE_VISIT |
176 | 179 |
177 DISALLOW_COPY_AND_ASSIGN(AsmTyper); | 180 DISALLOW_COPY_AND_ASSIGN(AsmTyper); |
178 }; | 181 }; |
179 } // namespace internal | 182 } // namespace internal |
180 } // namespace v8 | 183 } // namespace v8 |
181 | 184 |
182 #endif // V8_TYPING_ASM_H_ | 185 #endif // V8_TYPING_ASM_H_ |
OLD | NEW |