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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 char error_message_[kErrorMessageLimit]; | 58 char error_message_[kErrorMessageLimit]; |
59 | 59 |
60 static const int kMaxUncombinedAdditiveSteps = 1 << 20; | 60 static const int kMaxUncombinedAdditiveSteps = 1 << 20; |
61 static const int kMaxUncombinedMultiplicativeSteps = 1; | 61 static const int kMaxUncombinedMultiplicativeSteps = 1; |
62 | 62 |
63 void InitializeStdlib(); | 63 void InitializeStdlib(); |
64 | 64 |
65 void VisitDeclarations(ZoneList<Declaration*>* d) override; | 65 void VisitDeclarations(ZoneList<Declaration*>* d) override; |
66 void VisitStatements(ZoneList<Statement*>* s) override; | 66 void VisitStatements(ZoneList<Statement*>* s) override; |
67 | 67 |
68 void VisitExpressionAnnotation(Expression* e, bool is_return); | 68 void VisitExpressionAnnotation(Expression* e, Variable* var, bool is_return); |
69 void VisitFunctionAnnotation(FunctionLiteral* f); | 69 void VisitFunctionAnnotation(FunctionLiteral* f); |
70 void VisitAsmModule(FunctionLiteral* f); | 70 void VisitAsmModule(FunctionLiteral* f); |
71 | 71 |
72 void VisitHeapAccess(Property* expr); | 72 void VisitHeapAccess(Property* expr, bool assigning, Type* assignment_type); |
73 | 73 |
74 int ElementShiftSize(Type* type); | 74 int ElementShiftSize(Type* type); |
75 Type* StorageType(Type* type); | 75 Type* StorageType(Type* type); |
76 | 76 |
77 void SetType(Variable* variable, Type* type); | 77 void SetType(Variable* variable, Type* type); |
78 Type* GetType(Variable* variable); | 78 Type* GetType(Variable* variable); |
79 | 79 |
80 Type* LibType(ObjectTypeMap map, Handle<String> name); | 80 Type* LibType(ObjectTypeMap map, Handle<String> name); |
81 | 81 |
82 void SetResult(Expression* expr, Type* type); | 82 void SetResult(Expression* expr, Type* type); |
(...skipping 13 matching lines...) Expand all Loading... |
96 #define DECLARE_VISIT(type) void Visit##type(type* node) override; | 96 #define DECLARE_VISIT(type) void Visit##type(type* node) override; |
97 AST_NODE_LIST(DECLARE_VISIT) | 97 AST_NODE_LIST(DECLARE_VISIT) |
98 #undef DECLARE_VISIT | 98 #undef DECLARE_VISIT |
99 | 99 |
100 DISALLOW_COPY_AND_ASSIGN(AsmTyper); | 100 DISALLOW_COPY_AND_ASSIGN(AsmTyper); |
101 }; | 101 }; |
102 } // namespace internal | 102 } // namespace internal |
103 } // namespace v8 | 103 } // namespace v8 |
104 | 104 |
105 #endif // V8_TYPING_ASM_H_ | 105 #endif // V8_TYPING_ASM_H_ |
OLD | NEW |