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

Side by Side Diff: runtime/vm/intermediate_language.h

Issue 11342014: Fold away x === null comparisons when propagated cid of x is not kDynamicCid. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix error in type recognition for List. call Created 8 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 | « runtime/vm/flow_graph_optimizer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_INTERMEDIATE_LANGUAGE_H_ 5 #ifndef VM_INTERMEDIATE_LANGUAGE_H_
6 #define VM_INTERMEDIATE_LANGUAGE_H_ 6 #define VM_INTERMEDIATE_LANGUAGE_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/ast.h" 9 #include "vm/ast.h"
10 #include "vm/growable_array.h" 10 #include "vm/growable_array.h"
(...skipping 1159 matching lines...) Expand 10 before | Expand all | Expand 10 after
1170 virtual bool CanDeoptimize() const { return false; } 1170 virtual bool CanDeoptimize() const { return false; }
1171 1171
1172 virtual bool HasSideEffect() const { return false; } 1172 virtual bool HasSideEffect() const { return false; }
1173 1173
1174 // TODO(regis): This helper will be removed once we support type sets. 1174 // TODO(regis): This helper will be removed once we support type sets.
1175 RawAbstractType* LeastSpecificInputType() const; 1175 RawAbstractType* LeastSpecificInputType() const;
1176 1176
1177 // Phi is alive if it reaches a non-environment use. 1177 // Phi is alive if it reaches a non-environment use.
1178 bool is_alive() const { return is_alive_; } 1178 bool is_alive() const { return is_alive_; }
1179 void mark_alive() { is_alive_ = true; } 1179 void mark_alive() { is_alive_ = true; }
1180 void mark_dead() { is_alive_ = false; }
1180 1181
1181 virtual Representation RequiredInputRepresentation(intptr_t i) const { 1182 virtual Representation RequiredInputRepresentation(intptr_t i) const {
1182 return representation_; 1183 return representation_;
1183 } 1184 }
1184 1185
1185 virtual Representation representation() const { 1186 virtual Representation representation() const {
1186 return representation_; 1187 return representation_;
1187 } 1188 }
1188 1189
1189 virtual void set_representation(Representation r) { 1190 virtual void set_representation(Representation r) {
(...skipping 2981 matching lines...) Expand 10 before | Expand all | Expand 10 after
4171 ForwardInstructionIterator* current_iterator_; 4172 ForwardInstructionIterator* current_iterator_;
4172 4173
4173 private: 4174 private:
4174 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 4175 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
4175 }; 4176 };
4176 4177
4177 4178
4178 } // namespace dart 4179 } // namespace dart
4179 4180
4180 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 4181 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698