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

Side by Side Diff: src/ast/ast.h

Issue 2586933002: [crankshaft] Fix IsClassOfTest helper method (Closed)
Patch Set: add missing cast Created 4 years 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/ast/ast.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_AST_AST_H_ 5 #ifndef V8_AST_AST_H_
6 #define V8_AST_AST_H_ 6 #define V8_AST_AST_H_
7 7
8 #include "src/ast/ast-types.h" 8 #include "src/ast/ast-types.h"
9 #include "src/ast/ast-value-factory.h" 9 #include "src/ast/ast-value-factory.h"
10 #include "src/ast/modules.h" 10 #include "src/ast/modules.h"
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 #define DECLARE_TYPE_ENUM(type) k##type, 184 #define DECLARE_TYPE_ENUM(type) k##type,
185 enum NodeType : uint8_t { AST_NODE_LIST(DECLARE_TYPE_ENUM) }; 185 enum NodeType : uint8_t { AST_NODE_LIST(DECLARE_TYPE_ENUM) };
186 #undef DECLARE_TYPE_ENUM 186 #undef DECLARE_TYPE_ENUM
187 187
188 void* operator new(size_t size, Zone* zone) { return zone->New(size); } 188 void* operator new(size_t size, Zone* zone) { return zone->New(size); }
189 189
190 NodeType node_type() const { return NodeTypeField::decode(bit_field_); } 190 NodeType node_type() const { return NodeTypeField::decode(bit_field_); }
191 int position() const { return position_; } 191 int position() const { return position_; }
192 192
193 #ifdef DEBUG 193 #ifdef DEBUG
194 void Print();
194 void Print(Isolate* isolate); 195 void Print(Isolate* isolate);
195 #endif // DEBUG 196 #endif // DEBUG
196 197
197 // Type testing & conversion functions overridden by concrete subclasses. 198 // Type testing & conversion functions overridden by concrete subclasses.
198 #define DECLARE_NODE_FUNCTIONS(type) \ 199 #define DECLARE_NODE_FUNCTIONS(type) \
199 V8_INLINE bool Is##type() const; \ 200 V8_INLINE bool Is##type() const; \
200 V8_INLINE type* As##type(); \ 201 V8_INLINE type* As##type(); \
201 V8_INLINE const type* As##type() const; 202 V8_INLINE const type* As##type() const;
202 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) 203 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS)
203 #undef DECLARE_NODE_FUNCTIONS 204 #undef DECLARE_NODE_FUNCTIONS
(...skipping 3398 matching lines...) Expand 10 before | Expand all | Expand 10 after
3602 : NULL; \ 3603 : NULL; \
3603 } 3604 }
3604 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) 3605 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS)
3605 #undef DECLARE_NODE_FUNCTIONS 3606 #undef DECLARE_NODE_FUNCTIONS
3606 3607
3607 3608
3608 } // namespace internal 3609 } // namespace internal
3609 } // namespace v8 3610 } // namespace v8
3610 3611
3611 #endif // V8_AST_AST_H_ 3612 #endif // V8_AST_AST_H_
OLDNEW
« no previous file with comments | « no previous file | src/ast/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698