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

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

Issue 11975061: Removed loop depth info tracking at graph build time. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/intermediate_language_test.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) 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 #include "vm/intermediate_language.h" 5 #include "vm/intermediate_language.h"
6 6
7 #include "vm/bit_vector.h" 7 #include "vm/bit_vector.h"
8 #include "vm/dart_entry.h" 8 #include "vm/dart_entry.h"
9 #include "vm/flow_graph_allocator.h" 9 #include "vm/flow_graph_allocator.h"
10 #include "vm/flow_graph_builder.h" 10 #include "vm/flow_graph_builder.h"
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 193
194 const Object& Value::BoundConstant() const { 194 const Object& Value::BoundConstant() const {
195 ASSERT(BindsToConstant()); 195 ASSERT(BindsToConstant());
196 ConstantInstr* constant = definition()->AsConstant(); 196 ConstantInstr* constant = definition()->AsConstant();
197 ASSERT(constant != NULL); 197 ASSERT(constant != NULL);
198 return constant->value(); 198 return constant->value();
199 } 199 }
200 200
201 201
202 GraphEntryInstr::GraphEntryInstr(TargetEntryInstr* normal_entry) 202 GraphEntryInstr::GraphEntryInstr(TargetEntryInstr* normal_entry)
203 : BlockEntryInstr(0, CatchClauseNode::kInvalidTryIndex, 0), 203 : BlockEntryInstr(0, CatchClauseNode::kInvalidTryIndex),
204 normal_entry_(normal_entry), 204 normal_entry_(normal_entry),
205 catch_entries_(), 205 catch_entries_(),
206 initial_definitions_(), 206 initial_definitions_(),
207 spill_slot_count_(0) { 207 spill_slot_count_(0) {
208 } 208 }
209 209
210 210
211 ConstantInstr* GraphEntryInstr::constant_null() { 211 ConstantInstr* GraphEntryInstr::constant_null() {
212 ASSERT(initial_definitions_.length() > 0); 212 ASSERT(initial_definitions_.length() > 0);
213 for (intptr_t i = 0; i < initial_definitions_.length(); ++i) { 213 for (intptr_t i = 0; i < initial_definitions_.length(); ++i) {
(...skipping 2466 matching lines...) Expand 10 before | Expand all | Expand 10 after
2680 default: 2680 default:
2681 UNREACHABLE(); 2681 UNREACHABLE();
2682 } 2682 }
2683 return kPowRuntimeEntry; 2683 return kPowRuntimeEntry;
2684 } 2684 }
2685 2685
2686 2686
2687 #undef __ 2687 #undef __
2688 2688
2689 } // namespace dart 2689 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/intermediate_language_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698