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

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

Issue 14341012: Fix another unused-private-field clang error. (Closed) Base URL: https://git.chromium.org/git/external/dart/bleeding_edge.git@master
Patch Set: Created 7 years, 8 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
« 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after
1066 // preorder number. 1066 // preorder number.
1067 BitVector* loop_info_; 1067 BitVector* loop_info_;
1068 1068
1069 DISALLOW_COPY_AND_ASSIGN(BlockEntryInstr); 1069 DISALLOW_COPY_AND_ASSIGN(BlockEntryInstr);
1070 }; 1070 };
1071 1071
1072 1072
1073 class ForwardInstructionIterator : public ValueObject { 1073 class ForwardInstructionIterator : public ValueObject {
1074 public: 1074 public:
1075 explicit ForwardInstructionIterator(BlockEntryInstr* block_entry) 1075 explicit ForwardInstructionIterator(BlockEntryInstr* block_entry)
1076 : block_entry_(block_entry), current_(block_entry) { 1076 : current_(block_entry) {
1077 Advance(); 1077 Advance();
1078 } 1078 }
1079 1079
1080 void Advance() { 1080 void Advance() {
1081 ASSERT(!Done()); 1081 ASSERT(!Done());
1082 current_ = current_->next(); 1082 current_ = current_->next();
1083 } 1083 }
1084 1084
1085 bool Done() const { return current_ == NULL; } 1085 bool Done() const { return current_ == NULL; }
1086 1086
1087 // Removes 'current_' from graph and sets 'current_' to previous instruction. 1087 // Removes 'current_' from graph and sets 'current_' to previous instruction.
1088 void RemoveCurrentFromGraph(); 1088 void RemoveCurrentFromGraph();
1089 1089
1090 Instruction* Current() const { return current_; } 1090 Instruction* Current() const { return current_; }
1091 1091
1092 private: 1092 private:
1093 BlockEntryInstr* block_entry_;
1094 Instruction* current_; 1093 Instruction* current_;
1095 }; 1094 };
1096 1095
1097 1096
1098 class BackwardInstructionIterator : public ValueObject { 1097 class BackwardInstructionIterator : public ValueObject {
1099 public: 1098 public:
1100 explicit BackwardInstructionIterator(BlockEntryInstr* block_entry) 1099 explicit BackwardInstructionIterator(BlockEntryInstr* block_entry)
1101 : block_entry_(block_entry), current_(block_entry->last_instruction()) { 1100 : block_entry_(block_entry), current_(block_entry->last_instruction()) {
1102 ASSERT(block_entry_->previous() == NULL); 1101 ASSERT(block_entry_->previous() == NULL);
1103 } 1102 }
(...skipping 3836 matching lines...) Expand 10 before | Expand all | Expand 10 after
4940 ForwardInstructionIterator* current_iterator_; 4939 ForwardInstructionIterator* current_iterator_;
4941 4940
4942 private: 4941 private:
4943 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 4942 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
4944 }; 4943 };
4945 4944
4946 4945
4947 } // namespace dart 4946 } // namespace dart
4948 4947
4949 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 4948 #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