OLD | NEW |
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_H_ | 5 #ifndef V8_AST_H_ |
6 #define V8_AST_H_ | 6 #define V8_AST_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/ast-value-factory.h" | 9 #include "src/ast-value-factory.h" |
10 #include "src/bailout-reason.h" | 10 #include "src/bailout-reason.h" |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 virtual MaterializedLiteral* AsMaterializedLiteral() { return NULL; } | 225 virtual MaterializedLiteral* AsMaterializedLiteral() { return NULL; } |
226 | 226 |
227 // The interface for feedback slots, with default no-op implementations for | 227 // The interface for feedback slots, with default no-op implementations for |
228 // node types which don't actually have this. Note that this is conceptually | 228 // node types which don't actually have this. Note that this is conceptually |
229 // not really nice, but multiple inheritance would introduce yet another | 229 // not really nice, but multiple inheritance would introduce yet another |
230 // vtable entry per node, something we don't want for space reasons. | 230 // vtable entry per node, something we don't want for space reasons. |
231 virtual void AssignFeedbackVectorSlots(Isolate* isolate, | 231 virtual void AssignFeedbackVectorSlots(Isolate* isolate, |
232 FeedbackVectorSpec* spec, | 232 FeedbackVectorSpec* spec, |
233 ICSlotCache* cache) {} | 233 ICSlotCache* cache) {} |
234 | 234 |
235 // Each ICSlot stores a kind of IC which the participating node should know. | |
236 virtual FeedbackVectorSlotKind FeedbackICSlotKind(int index) { | |
237 UNREACHABLE(); | |
238 return FeedbackVectorSlotKind::UNUSED; | |
239 } | |
240 | |
241 private: | 235 private: |
242 // Hidden to prevent accidental usage. It would have to load the | 236 // Hidden to prevent accidental usage. It would have to load the |
243 // current zone from the TLS. | 237 // current zone from the TLS. |
244 void* operator new(size_t size); | 238 void* operator new(size_t size); |
245 | 239 |
246 friend class CaseClause; // Generates AST IDs. | 240 friend class CaseClause; // Generates AST IDs. |
247 | 241 |
248 int position_; | 242 int position_; |
249 }; | 243 }; |
250 | 244 |
(...skipping 3373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3624 // ZoneObjects which need to persist until scope analysis must be allocated in | 3618 // ZoneObjects which need to persist until scope analysis must be allocated in |
3625 // the parser-level zone. | 3619 // the parser-level zone. |
3626 Zone* parser_zone_; | 3620 Zone* parser_zone_; |
3627 AstValueFactory* ast_value_factory_; | 3621 AstValueFactory* ast_value_factory_; |
3628 }; | 3622 }; |
3629 | 3623 |
3630 | 3624 |
3631 } } // namespace v8::internal | 3625 } } // namespace v8::internal |
3632 | 3626 |
3633 #endif // V8_AST_H_ | 3627 #endif // V8_AST_H_ |
OLD | NEW |