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

Side by Side Diff: src/ast.h

Issue 19518008: Merged r15610, r15723, r15724, r15725, r15728 into 3.18 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.18
Patch Set: Created 7 years, 5 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/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 // 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
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. 342 // True if we can prove that the expression is the undefined literal.
343 bool IsUndefinedLiteral(); 343 bool IsUndefinedLiteral(Isolate* isolate);
344 344
345 // Type feedback information for assignments and properties. 345 // Type feedback information for assignments and properties.
346 virtual bool IsMonomorphic() { 346 virtual bool IsMonomorphic() {
347 UNREACHABLE(); 347 UNREACHABLE();
348 return false; 348 return false;
349 } 349 }
350 virtual SmallMapList* GetReceiverTypes() { 350 virtual SmallMapList* GetReceiverTypes() {
351 UNREACHABLE(); 351 UNREACHABLE();
352 return NULL; 352 return NULL;
353 } 353 }
(...skipping 1480 matching lines...) Expand 10 before | Expand all | Expand 10 after
1834 Token::Value op() const { return op_; } 1834 Token::Value op() const { return op_; }
1835 Expression* left() const { return left_; } 1835 Expression* left() const { return left_; }
1836 Expression* right() const { return right_; } 1836 Expression* right() const { return right_; }
1837 virtual int position() const { return pos_; } 1837 virtual int position() const { return pos_; }
1838 1838
1839 // Type feedback information. 1839 // Type feedback information.
1840 TypeFeedbackId CompareOperationFeedbackId() const { return reuse(id()); } 1840 TypeFeedbackId CompareOperationFeedbackId() const { return reuse(id()); }
1841 1841
1842 // Match special cases. 1842 // Match special cases.
1843 bool IsLiteralCompareTypeof(Expression** expr, Handle<String>* check); 1843 bool IsLiteralCompareTypeof(Expression** expr, Handle<String>* check);
1844 bool IsLiteralCompareUndefined(Expression** expr); 1844 bool IsLiteralCompareUndefined(Expression** expr, Isolate* isolate);
1845 bool IsLiteralCompareNull(Expression** expr); 1845 bool IsLiteralCompareNull(Expression** expr);
1846 1846
1847 protected: 1847 protected:
1848 CompareOperation(Isolate* isolate, 1848 CompareOperation(Isolate* isolate,
1849 Token::Value op, 1849 Token::Value op,
1850 Expression* left, 1850 Expression* left,
1851 Expression* right, 1851 Expression* right,
1852 int pos) 1852 int pos)
1853 : Expression(isolate), 1853 : Expression(isolate),
1854 op_(op), 1854 op_(op),
(...skipping 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after
3038 private: 3038 private:
3039 Isolate* isolate_; 3039 Isolate* isolate_;
3040 Zone* zone_; 3040 Zone* zone_;
3041 Visitor visitor_; 3041 Visitor visitor_;
3042 }; 3042 };
3043 3043
3044 3044
3045 } } // namespace v8::internal 3045 } } // namespace v8::internal
3046 3046
3047 #endif // V8_AST_H_ 3047 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « no previous file | src/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698