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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 | 332 |
333 // True iff the expression is a literal represented as a smi. | 333 // True iff the expression is a literal represented as a smi. |
334 bool IsSmiLiteral(); | 334 bool IsSmiLiteral(); |
335 | 335 |
336 // True iff the expression is a string literal. | 336 // True iff the expression is a string literal. |
337 bool IsStringLiteral(); | 337 bool IsStringLiteral(); |
338 | 338 |
339 // True iff the expression is the null literal. | 339 // True iff the expression is the null literal. |
340 bool IsNullLiteral(); | 340 bool IsNullLiteral(); |
341 | 341 |
| 342 // True iff the expression is the undefined literal. |
| 343 bool IsUndefinedLiteral(); |
| 344 |
342 // Type feedback information for assignments and properties. | 345 // Type feedback information for assignments and properties. |
343 virtual bool IsMonomorphic() { | 346 virtual bool IsMonomorphic() { |
344 UNREACHABLE(); | 347 UNREACHABLE(); |
345 return false; | 348 return false; |
346 } | 349 } |
347 virtual SmallMapList* GetReceiverTypes() { | 350 virtual SmallMapList* GetReceiverTypes() { |
348 UNREACHABLE(); | 351 UNREACHABLE(); |
349 return NULL; | 352 return NULL; |
350 } | 353 } |
351 Handle<Map> GetMonomorphicReceiverType() { | 354 Handle<Map> GetMonomorphicReceiverType() { |
(...skipping 2678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3030 private: | 3033 private: |
3031 Isolate* isolate_; | 3034 Isolate* isolate_; |
3032 Zone* zone_; | 3035 Zone* zone_; |
3033 Visitor visitor_; | 3036 Visitor visitor_; |
3034 }; | 3037 }; |
3035 | 3038 |
3036 | 3039 |
3037 } } // namespace v8::internal | 3040 } } // namespace v8::internal |
3038 | 3041 |
3039 #endif // V8_AST_H_ | 3042 #endif // V8_AST_H_ |
OLD | NEW |