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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 | 344 |
345 // True iff the expression is a string literal. | 345 // True iff the expression is a string literal. |
346 bool IsStringLiteral(); | 346 bool IsStringLiteral(); |
347 | 347 |
348 // True iff the expression is the null literal. | 348 // True iff the expression is the null literal. |
349 bool IsNullLiteral(); | 349 bool IsNullLiteral(); |
350 | 350 |
351 // True if we can prove that the expression is the undefined literal. | 351 // True if we can prove that the expression is the undefined literal. |
352 bool IsUndefinedLiteral(Isolate* isolate); | 352 bool IsUndefinedLiteral(Isolate* isolate); |
353 | 353 |
354 bool IsIdentifier(); | |
355 | |
356 bool IsIdentifierNamed(String* name); | |
357 | |
358 // Expression type bounds | 354 // Expression type bounds |
359 Bounds bounds() { return bounds_; } | 355 Bounds bounds() { return bounds_; } |
360 void set_bounds(Bounds bounds) { bounds_ = bounds; } | 356 void set_bounds(Bounds bounds) { bounds_ = bounds; } |
361 | 357 |
362 // Type feedback information for assignments and properties. | 358 // Type feedback information for assignments and properties. |
363 virtual bool IsMonomorphic() { | 359 virtual bool IsMonomorphic() { |
364 UNREACHABLE(); | 360 UNREACHABLE(); |
365 return false; | 361 return false; |
366 } | 362 } |
367 virtual SmallMapList* GetReceiverTypes() { | 363 virtual SmallMapList* GetReceiverTypes() { |
(...skipping 2932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3300 | 3296 |
3301 private: | 3297 private: |
3302 Zone* zone_; | 3298 Zone* zone_; |
3303 Visitor visitor_; | 3299 Visitor visitor_; |
3304 }; | 3300 }; |
3305 | 3301 |
3306 | 3302 |
3307 } } // namespace v8::internal | 3303 } } // namespace v8::internal |
3308 | 3304 |
3309 #endif // V8_AST_H_ | 3305 #endif // V8_AST_H_ |
OLD | NEW |