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

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

Issue 11313005: Small performance fix for mint equality operation. (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 | « no previous file | 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 2245 matching lines...) Expand 10 before | Expand all | Expand 10 after
2256 intptr_t token_pos() const { return token_pos_; } 2256 intptr_t token_pos() const { return token_pos_; }
2257 2257
2258 // Receiver class id is computed from collected ICData. 2258 // Receiver class id is computed from collected ICData.
2259 void set_receiver_class_id(intptr_t value) { receiver_class_id_ = value; } 2259 void set_receiver_class_id(intptr_t value) { receiver_class_id_ = value; }
2260 intptr_t receiver_class_id() const { return receiver_class_id_; } 2260 intptr_t receiver_class_id() const { return receiver_class_id_; }
2261 2261
2262 virtual void PrintOperandsTo(BufferFormatter* f) const; 2262 virtual void PrintOperandsTo(BufferFormatter* f) const;
2263 2263
2264 virtual bool CanDeoptimize() const { 2264 virtual bool CanDeoptimize() const {
2265 return (receiver_class_id() != kDoubleCid) 2265 return (receiver_class_id() != kDoubleCid)
2266 && (receiver_class_id() != kMintCid)
2266 && (receiver_class_id() != kSmiCid); 2267 && (receiver_class_id() != kSmiCid);
2267 } 2268 }
2268 virtual bool HasSideEffect() const { 2269 virtual bool HasSideEffect() const {
2269 return (receiver_class_id() != kDoubleCid) 2270 return (receiver_class_id() != kDoubleCid)
2271 && (receiver_class_id() != kMintCid)
2270 && (receiver_class_id() != kSmiCid); 2272 && (receiver_class_id() != kSmiCid);
2271 } 2273 }
2272 2274
2273 virtual intptr_t ResultCid() const; 2275 virtual intptr_t ResultCid() const;
2274 2276
2275 virtual void EmitBranchCode(FlowGraphCompiler* compiler, 2277 virtual void EmitBranchCode(FlowGraphCompiler* compiler,
2276 BranchInstr* branch); 2278 BranchInstr* branch);
2277 2279
2278 virtual intptr_t DeoptimizationTarget() const { 2280 virtual intptr_t DeoptimizationTarget() const {
2279 return GetDeoptId(); 2281 return GetDeoptId();
(...skipping 1881 matching lines...) Expand 10 before | Expand all | Expand 10 after
4161 ForwardInstructionIterator* current_iterator_; 4163 ForwardInstructionIterator* current_iterator_;
4162 4164
4163 private: 4165 private:
4164 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 4166 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
4165 }; 4167 };
4166 4168
4167 4169
4168 } // namespace dart 4170 } // namespace dart
4169 4171
4170 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 4172 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698