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

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

Issue 11234002: Enable redundancy elimination for array loads. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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
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 2677 matching lines...) Expand 10 before | Expand all | Expand 10 after
2688 intptr_t class_id() const { return class_id_; } 2688 intptr_t class_id() const { return class_id_; }
2689 2689
2690 virtual bool CanDeoptimize() const { return false; } 2690 virtual bool CanDeoptimize() const { return false; }
2691 2691
2692 virtual bool HasSideEffect() const { return false; } 2692 virtual bool HasSideEffect() const { return false; }
2693 2693
2694 virtual intptr_t ResultCid() const; 2694 virtual intptr_t ResultCid() const;
2695 2695
2696 virtual Representation representation() const; 2696 virtual Representation representation() const;
2697 2697
2698 virtual bool AttributesEqual(Instruction* other) const;
2699
2700 virtual bool AffectedBySideEffect() const { return true; }
2701
2698 private: 2702 private:
2699 const intptr_t class_id_; 2703 const intptr_t class_id_;
2700 2704
2701 DISALLOW_COPY_AND_ASSIGN(LoadIndexedInstr); 2705 DISALLOW_COPY_AND_ASSIGN(LoadIndexedInstr);
2702 }; 2706 };
2703 2707
2704 2708
2705 class StoreIndexedInstr : public TemplateDefinition<3> { 2709 class StoreIndexedInstr : public TemplateDefinition<3> {
2706 public: 2710 public:
2707 StoreIndexedInstr(Value* array, 2711 StoreIndexedInstr(Value* array,
(...skipping 1533 matching lines...) Expand 10 before | Expand all | Expand 10 after
4241 ForwardInstructionIterator* current_iterator_; 4245 ForwardInstructionIterator* current_iterator_;
4242 4246
4243 private: 4247 private:
4244 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 4248 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
4245 }; 4249 };
4246 4250
4247 4251
4248 } // namespace dart 4252 } // namespace dart
4249 4253
4250 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 4254 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698