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

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

Issue 1447133002: Use asm style type names and improve asm typer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: revise Created 5 years, 1 month 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
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.h" 9 #include "src/ast.h"
10 #include "src/effects.h" 10 #include "src/effects.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
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); 68 void VisitExpressionAnnotation(Expression* e, 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);
73 73
74 int ElementShiftSize(Type* type); 74 int ElementShiftSize(Type* type);
75 75
76 void SetType(Variable* variable, Type* type); 76 void SetType(Variable* variable, Type* type);
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 VisitLiteral(Literal* expr, bool is_return);
88
87 void VisitIntegerBitwiseOperator(BinaryOperation* expr, Type* left_expected, 89 void VisitIntegerBitwiseOperator(BinaryOperation* expr, Type* left_expected,
88 Type* right_expected, Type* result_type, 90 Type* right_expected, Type* result_type,
89 bool conversion); 91 bool conversion);
90 92
91 Zone* zone() const { return zone_; } 93 Zone* zone() const { return zone_; }
92 94
93 #define DECLARE_VISIT(type) void Visit##type(type* node) override; 95 #define DECLARE_VISIT(type) void Visit##type(type* node) override;
94 AST_NODE_LIST(DECLARE_VISIT) 96 AST_NODE_LIST(DECLARE_VISIT)
95 #undef DECLARE_VISIT 97 #undef DECLARE_VISIT
96 98
97 DISALLOW_COPY_AND_ASSIGN(AsmTyper); 99 DISALLOW_COPY_AND_ASSIGN(AsmTyper);
98 }; 100 };
99 } // namespace internal 101 } // namespace internal
100 } // namespace v8 102 } // namespace v8
101 103
102 #endif // V8_TYPING_ASM_H_ 104 #endif // V8_TYPING_ASM_H_
OLDNEW
« no previous file with comments | « src/type-cache.h ('k') | src/typing-asm.cc » ('j') | src/typing-asm.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698