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.h" | 9 #include "src/ast.h" |
10 #include "src/effects.h" | 10 #include "src/effects.h" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
77 Type* GetType(Variable* variable); | 77 Type* GetType(Variable* variable); |
78 | 78 |
79 Type* LibType(ObjectTypeMap map, Handle<String> name); | 79 Type* LibType(ObjectTypeMap map, Handle<String> name); |
80 | 80 |
81 void SetResult(Expression* expr, Type* type); | 81 void SetResult(Expression* expr, Type* type); |
82 void IntersectResult(Expression* expr, Type* type); | 82 void IntersectResult(Expression* expr, Type* type); |
83 | 83 |
84 void VisitWithExpectation(Expression* expr, Type* expected_type, | 84 void VisitWithExpectation(Expression* expr, Type* expected_type, |
85 const char* msg); | 85 const char* msg); |
86 | 86 |
87 void VisitIntegerBinaryOperation(BinaryOperation* expr, Type* expected_type, | 87 void VisitIntegerBinaryOperation(BinaryOperation* expr, Type* left_expected, |
88 Type* result_type); | 88 Type* right_expected, Type* result_type, |
89 bool conversion); | |
titzer
2015/11/03 18:58:49
Maybe call this bool flag bitwise and invert its s
bradn
2015/11/03 19:20:02
So these are all really bitwise (maybe I should re
| |
89 | 90 |
90 Zone* zone() const { return zone_; } | 91 Zone* zone() const { return zone_; } |
91 | 92 |
92 #define DECLARE_VISIT(type) virtual void Visit##type(type* node) override; | 93 #define DECLARE_VISIT(type) virtual void Visit##type(type* node) override; |
93 AST_NODE_LIST(DECLARE_VISIT) | 94 AST_NODE_LIST(DECLARE_VISIT) |
94 #undef DECLARE_VISIT | 95 #undef DECLARE_VISIT |
95 | 96 |
96 DISALLOW_COPY_AND_ASSIGN(AsmTyper); | 97 DISALLOW_COPY_AND_ASSIGN(AsmTyper); |
97 }; | 98 }; |
98 } // namespace internal | 99 } // namespace internal |
99 } // namespace v8 | 100 } // namespace v8 |
100 | 101 |
101 #endif // V8_TYPING_ASM_H_ | 102 #endif // V8_TYPING_ASM_H_ |
OLD | NEW |