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

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

Issue 10368004: Properly set the element type of literal lists. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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 #include "vm/intermediate_language.h" 5 #include "vm/intermediate_language.h"
6 6
7 #include "vm/object.h" 7 #include "vm/object.h"
8 #include "vm/os.h" 8 #include "vm/os.h"
9 #include "vm/scopes.h" 9 #include "vm/scopes.h"
10 10
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 return arguments().length(); 131 return arguments().length();
132 } 132 }
133 133
134 134
135 intptr_t AllocateObjectWithBoundsCheckComp::InputCount() const { 135 intptr_t AllocateObjectWithBoundsCheckComp::InputCount() const {
136 return arguments().length(); 136 return arguments().length();
137 } 137 }
138 138
139 139
140 intptr_t CreateArrayComp::InputCount() const { 140 intptr_t CreateArrayComp::InputCount() const {
141 return ElementCount(); 141 return ElementCount() + 1;
142 } 142 }
143 143
144 144
145 intptr_t BranchInstr::InputCount() const { 145 intptr_t BranchInstr::InputCount() const {
146 return 1; 146 return 1;
147 } 147 }
148 148
149 149
150 intptr_t ReThrowInstr::InputCount() const { 150 intptr_t ReThrowInstr::InputCount() const {
151 return 2; 151 return 2;
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 // true/false order in reverse postorder used as the block ordering in the 290 // true/false order in reverse postorder used as the block ordering in the
291 // nonoptimizing compiler. 291 // nonoptimizing compiler.
292 ASSERT(true_successor_ != NULL); 292 ASSERT(true_successor_ != NULL);
293 ASSERT(false_successor_ != NULL); 293 ASSERT(false_successor_ != NULL);
294 false_successor_->DiscoverBlocks(current_block, preorder, postorder, parent); 294 false_successor_->DiscoverBlocks(current_block, preorder, postorder, parent);
295 true_successor_->DiscoverBlocks(current_block, preorder, postorder, parent); 295 true_successor_->DiscoverBlocks(current_block, preorder, postorder, parent);
296 } 296 }
297 297
298 298
299 } // namespace dart 299 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698