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

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

Issue 11269040: More inlining flags and tuned heuristics. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: out/DebugIA32/dart --ignore-unrecognized-flags /usr/local/google/home/zerny/src/dart/dart/tests/co1… 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
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/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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 161
162 const Object& Value::BoundConstant() const { 162 const Object& Value::BoundConstant() const {
163 ASSERT(BindsToConstant()); 163 ASSERT(BindsToConstant());
164 ConstantInstr* constant = definition()->AsConstant(); 164 ConstantInstr* constant = definition()->AsConstant();
165 ASSERT(constant != NULL); 165 ASSERT(constant != NULL);
166 return constant->value(); 166 return constant->value();
167 } 167 }
168 168
169 169
170 GraphEntryInstr::GraphEntryInstr(TargetEntryInstr* normal_entry) 170 GraphEntryInstr::GraphEntryInstr(TargetEntryInstr* normal_entry)
171 : BlockEntryInstr(0, CatchClauseNode::kInvalidTryIndex), 171 : BlockEntryInstr(0, CatchClauseNode::kInvalidTryIndex, 0),
172 normal_entry_(normal_entry), 172 normal_entry_(normal_entry),
173 catch_entries_(), 173 catch_entries_(),
174 initial_definitions_(), 174 initial_definitions_(),
175 spill_slot_count_(0) { 175 spill_slot_count_(0) {
176 } 176 }
177 177
178 178
179 ConstantInstr* GraphEntryInstr::constant_null() { 179 ConstantInstr* GraphEntryInstr::constant_null() {
180 ASSERT(initial_definitions_.length() > 0); 180 ASSERT(initial_definitions_.length() > 0);
181 for (intptr_t i = 0; i < initial_definitions_.length(); ++i) { 181 for (intptr_t i = 0; i < initial_definitions_.length(); ++i) {
(...skipping 2041 matching lines...) Expand 10 before | Expand all | Expand 10 after
2223 new_max = new_max.Clamp(); 2223 new_max = new_max.Clamp();
2224 } 2224 }
2225 2225
2226 return Range::Update(&range_, new_min, new_max); 2226 return Range::Update(&range_, new_min, new_max);
2227 } 2227 }
2228 2228
2229 2229
2230 #undef __ 2230 #undef __
2231 2231
2232 } // namespace dart 2232 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698