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

Side by Side Diff: src/ast.h

Issue 19661003: Merged r15267, r15610, r15723, r15724, r15725, r15728 into 3.19 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.19
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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 346
347 // True iff the expression is a literal represented as a smi. 347 // True iff the expression is a literal represented as a smi.
348 bool IsSmiLiteral(); 348 bool IsSmiLiteral();
349 349
350 // True iff the expression is a string literal. 350 // True iff the expression is a string literal.
351 bool IsStringLiteral(); 351 bool IsStringLiteral();
352 352
353 // True iff the expression is the null literal. 353 // True iff the expression is the null literal.
354 bool IsNullLiteral(); 354 bool IsNullLiteral();
355 355
356 // True iff the expression is the undefined literal. 356 // True if we can prove that the expression is the undefined literal.
357 bool IsUndefinedLiteral(); 357 bool IsUndefinedLiteral(Isolate* isolate);
358 358
359 // Expression type 359 // Expression type
360 Handle<Type> type() { return type_; } 360 Handle<Type> type() { return type_; }
361 void set_type(Handle<Type> type) { type_ = type; } 361 void set_type(Handle<Type> type) { type_ = type; }
362 362
363 // Type feedback information for assignments and properties. 363 // Type feedback information for assignments and properties.
364 virtual bool IsMonomorphic() { 364 virtual bool IsMonomorphic() {
365 UNREACHABLE(); 365 UNREACHABLE();
366 return false; 366 return false;
367 } 367 }
(...skipping 1627 matching lines...) Expand 10 before | Expand all | Expand 10 after
1995 // Type feedback information. 1995 // Type feedback information.
1996 TypeFeedbackId CompareOperationFeedbackId() const { return reuse(id()); } 1996 TypeFeedbackId CompareOperationFeedbackId() const { return reuse(id()); }
1997 void RecordTypeFeedback(TypeFeedbackOracle* oracle); 1997 void RecordTypeFeedback(TypeFeedbackOracle* oracle);
1998 Handle<Type> left_type() const { return left_type_; } 1998 Handle<Type> left_type() const { return left_type_; }
1999 Handle<Type> right_type() const { return right_type_; } 1999 Handle<Type> right_type() const { return right_type_; }
2000 Handle<Type> overall_type() const { return overall_type_; } 2000 Handle<Type> overall_type() const { return overall_type_; }
2001 Handle<Type> compare_nil_type() const { return compare_nil_type_; } 2001 Handle<Type> compare_nil_type() const { return compare_nil_type_; }
2002 2002
2003 // Match special cases. 2003 // Match special cases.
2004 bool IsLiteralCompareTypeof(Expression** expr, Handle<String>* check); 2004 bool IsLiteralCompareTypeof(Expression** expr, Handle<String>* check);
2005 bool IsLiteralCompareUndefined(Expression** expr); 2005 bool IsLiteralCompareUndefined(Expression** expr, Isolate* isolate);
2006 bool IsLiteralCompareNull(Expression** expr); 2006 bool IsLiteralCompareNull(Expression** expr);
2007 2007
2008 protected: 2008 protected:
2009 CompareOperation(Isolate* isolate, 2009 CompareOperation(Isolate* isolate,
2010 Token::Value op, 2010 Token::Value op,
2011 Expression* left, 2011 Expression* left,
2012 Expression* right, 2012 Expression* right,
2013 int pos) 2013 int pos)
2014 : Expression(isolate), 2014 : Expression(isolate),
2015 op_(op), 2015 op_(op),
(...skipping 1202 matching lines...) Expand 10 before | Expand all | Expand 10 after
3218 private: 3218 private:
3219 Isolate* isolate_; 3219 Isolate* isolate_;
3220 Zone* zone_; 3220 Zone* zone_;
3221 Visitor visitor_; 3221 Visitor visitor_;
3222 }; 3222 };
3223 3223
3224 3224
3225 } } // namespace v8::internal 3225 } } // namespace v8::internal
3226 3226
3227 #endif // V8_AST_H_ 3227 #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