OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 | 382 |
383 // TODO(rossberg): this should move to its own AST node eventually. | 383 // TODO(rossberg): this should move to its own AST node eventually. |
384 virtual void RecordToBooleanTypeFeedback(TypeFeedbackOracle* oracle); | 384 virtual void RecordToBooleanTypeFeedback(TypeFeedbackOracle* oracle); |
385 byte to_boolean_types() const { return to_boolean_types_; } | 385 byte to_boolean_types() const { return to_boolean_types_; } |
386 | 386 |
387 BailoutId id() const { return id_; } | 387 BailoutId id() const { return id_; } |
388 TypeFeedbackId test_id() const { return test_id_; } | 388 TypeFeedbackId test_id() const { return test_id_; } |
389 | 389 |
390 protected: | 390 protected: |
391 explicit Expression(Isolate* isolate) | 391 explicit Expression(Isolate* isolate) |
392 : bounds_(Type::None(), Type::Any(), isolate), | 392 : bounds_(Bounds::Unbounded(isolate)), |
393 id_(GetNextId(isolate)), | 393 id_(GetNextId(isolate)), |
394 test_id_(GetNextId(isolate)) {} | 394 test_id_(GetNextId(isolate)) {} |
395 void set_to_boolean_types(byte types) { to_boolean_types_ = types; } | 395 void set_to_boolean_types(byte types) { to_boolean_types_ = types; } |
396 | 396 |
397 private: | 397 private: |
398 Bounds bounds_; | 398 Bounds bounds_; |
399 byte to_boolean_types_; | 399 byte to_boolean_types_; |
400 | 400 |
401 const BailoutId id_; | 401 const BailoutId id_; |
402 const TypeFeedbackId test_id_; | 402 const TypeFeedbackId test_id_; |
(...skipping 2806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3209 private: | 3209 private: |
3210 Isolate* isolate_; | 3210 Isolate* isolate_; |
3211 Zone* zone_; | 3211 Zone* zone_; |
3212 Visitor visitor_; | 3212 Visitor visitor_; |
3213 }; | 3213 }; |
3214 | 3214 |
3215 | 3215 |
3216 } } // namespace v8::internal | 3216 } } // namespace v8::internal |
3217 | 3217 |
3218 #endif // V8_AST_H_ | 3218 #endif // V8_AST_H_ |
OLD | NEW |