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

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: Improved heuristics. 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
« 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) 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 189
190 const Object& Value::BoundConstant() const { 190 const Object& Value::BoundConstant() const {
191 ASSERT(BindsToConstant()); 191 ASSERT(BindsToConstant());
192 ConstantInstr* constant = definition()->AsConstant(); 192 ConstantInstr* constant = definition()->AsConstant();
193 ASSERT(constant != NULL); 193 ASSERT(constant != NULL);
194 return constant->value(); 194 return constant->value();
195 } 195 }
196 196
197 197
198 GraphEntryInstr::GraphEntryInstr(TargetEntryInstr* normal_entry) 198 GraphEntryInstr::GraphEntryInstr(TargetEntryInstr* normal_entry)
199 : BlockEntryInstr(0, CatchClauseNode::kInvalidTryIndex), 199 : BlockEntryInstr(0, CatchClauseNode::kInvalidTryIndex, 0),
200 normal_entry_(normal_entry), 200 normal_entry_(normal_entry),
201 catch_entries_(), 201 catch_entries_(),
202 initial_definitions_(), 202 initial_definitions_(),
203 spill_slot_count_(0) { 203 spill_slot_count_(0) {
204 } 204 }
205 205
206 206
207 ConstantInstr* GraphEntryInstr::constant_null() { 207 ConstantInstr* GraphEntryInstr::constant_null() {
208 ASSERT(initial_definitions_.length() > 0); 208 ASSERT(initial_definitions_.length() > 0);
209 for (intptr_t i = 0; i < initial_definitions_.length(); ++i) { 209 for (intptr_t i = 0; i < initial_definitions_.length(); ++i) {
(...skipping 2436 matching lines...) Expand 10 before | Expand all | Expand 10 after
2646 return Array::length_offset(); 2646 return Array::length_offset();
2647 default: 2647 default:
2648 UNREACHABLE(); 2648 UNREACHABLE();
2649 return -1; 2649 return -1;
2650 } 2650 }
2651 } 2651 }
2652 2652
2653 #undef __ 2653 #undef __
2654 2654
2655 } // namespace dart 2655 } // 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