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

Side by Side Diff: src/ast.h

Issue 8495011: Revert r9901 to make tree green again. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 1 month 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 | « src/arm/lithium-codegen-arm.cc ('k') | 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 677
678 int position() const { return position_; } 678 int position() const { return position_; }
679 void set_position(int pos) { position_ = pos; } 679 void set_position(int pos) { position_ = pos; }
680 680
681 int EntryId() { return entry_id_; } 681 int EntryId() { return entry_id_; }
682 int CompareId() { return compare_id_; } 682 int CompareId() { return compare_id_; }
683 683
684 // Type feedback information. 684 // Type feedback information.
685 void RecordTypeFeedback(TypeFeedbackOracle* oracle); 685 void RecordTypeFeedback(TypeFeedbackOracle* oracle);
686 bool IsSmiCompare() { return compare_type_ == SMI_ONLY; } 686 bool IsSmiCompare() { return compare_type_ == SMI_ONLY; }
687 bool IsSymbolCompare() { return compare_type_ == SYMBOL_ONLY; }
688 bool IsStringCompare() { return compare_type_ == STRING_ONLY; }
689 bool IsObjectCompare() { return compare_type_ == OBJECT_ONLY; } 687 bool IsObjectCompare() { return compare_type_ == OBJECT_ONLY; }
690 688
691 private: 689 private:
692 Expression* label_; 690 Expression* label_;
693 Label body_target_; 691 Label body_target_;
694 ZoneList<Statement*>* statements_; 692 ZoneList<Statement*>* statements_;
695 int position_; 693 int position_;
696 enum CompareTypeFeedback { 694 enum CompareTypeFeedback { NONE, SMI_ONLY, OBJECT_ONLY };
697 NONE,
698 SMI_ONLY,
699 SYMBOL_ONLY,
700 STRING_ONLY,
701 OBJECT_ONLY
702 };
703 CompareTypeFeedback compare_type_; 695 CompareTypeFeedback compare_type_;
704 int compare_id_; 696 int compare_id_;
705 int entry_id_; 697 int entry_id_;
706 }; 698 };
707 699
708 700
709 class SwitchStatement: public BreakableStatement { 701 class SwitchStatement: public BreakableStatement {
710 public: 702 public:
711 inline SwitchStatement(Isolate* isolate, ZoneStringList* labels); 703 inline SwitchStatement(Isolate* isolate, ZoneStringList* labels);
712 704
(...skipping 1399 matching lines...) Expand 10 before | Expand all | Expand 10 after
2112 2104
2113 private: 2105 private:
2114 Isolate* isolate_; 2106 Isolate* isolate_;
2115 bool stack_overflow_; 2107 bool stack_overflow_;
2116 }; 2108 };
2117 2109
2118 2110
2119 } } // namespace v8::internal 2111 } } // namespace v8::internal
2120 2112
2121 #endif // V8_AST_H_ 2113 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698