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

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

Issue 11343046: Fix equality instruction to switch from checked (polymorphic) to megamorphic state. This helps da… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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') | runtime/vm/intermediate_language.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 (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 2264 matching lines...) Expand 10 before | Expand all | Expand 10 after
2275 return GetDeoptId(); 2275 return GetDeoptId();
2276 } 2276 }
2277 2277
2278 virtual Representation RequiredInputRepresentation(intptr_t idx) const { 2278 virtual Representation RequiredInputRepresentation(intptr_t idx) const {
2279 ASSERT((idx == 0) || (idx == 1)); 2279 ASSERT((idx == 0) || (idx == 1));
2280 if (receiver_class_id() == kDoubleCid) return kUnboxedDouble; 2280 if (receiver_class_id() == kDoubleCid) return kUnboxedDouble;
2281 if (receiver_class_id() == kMintCid) return kUnboxedMint; 2281 if (receiver_class_id() == kMintCid) return kUnboxedMint;
2282 return kTagged; 2282 return kTagged;
2283 } 2283 }
2284 2284
2285 bool IsPolymorphic() const;
2286
2285 private: 2287 private:
2286 const ICData* ic_data_; 2288 const ICData* ic_data_;
2287 const intptr_t token_pos_; 2289 const intptr_t token_pos_;
2288 intptr_t receiver_class_id_; // Set by optimizer. 2290 intptr_t receiver_class_id_; // Set by optimizer.
2289 2291
2290 DISALLOW_COPY_AND_ASSIGN(EqualityCompareInstr); 2292 DISALLOW_COPY_AND_ASSIGN(EqualityCompareInstr);
2291 }; 2293 };
2292 2294
2293 2295
2294 class RelationalOpInstr : public ComparisonInstr { 2296 class RelationalOpInstr : public ComparisonInstr {
(...skipping 1887 matching lines...) Expand 10 before | Expand all | Expand 10 after
4182 ForwardInstructionIterator* current_iterator_; 4184 ForwardInstructionIterator* current_iterator_;
4183 4185
4184 private: 4186 private:
4185 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 4187 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
4186 }; 4188 };
4187 4189
4188 4190
4189 } // namespace dart 4191 } // namespace dart
4190 4192
4191 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 4193 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698