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

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

Issue 17074003: Back out r24266 to investigate dartium test failure. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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/flow_graph_compiler_x64.cc ('k') | runtime/vm/mirrors_api_impl.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/flow_graph_optimizer.h" 5 #include "vm/flow_graph_optimizer.h"
6 6
7 #include "vm/bit_vector.h" 7 #include "vm/bit_vector.h"
8 #include "vm/cha.h" 8 #include "vm/cha.h"
9 #include "vm/flow_graph_builder.h" 9 #include "vm/flow_graph_builder.h"
10 #include "vm/flow_graph_compiler.h" 10 #include "vm/flow_graph_compiler.h"
(...skipping 1487 matching lines...) Expand 10 before | Expand all | Expand 10 after
1498 Function& target = Function::Handle(ic_data.GetTargetAt(0)); 1498 Function& target = Function::Handle(ic_data.GetTargetAt(0));
1499 if (target.kind() == RawFunction::kImplicitGetter) { 1499 if (target.kind() == RawFunction::kImplicitGetter) {
1500 if (!ic_data.HasOneTarget()) { 1500 if (!ic_data.HasOneTarget()) {
1501 // TODO(srdjan): Implement for mutiple targets. 1501 // TODO(srdjan): Implement for mutiple targets.
1502 return false; 1502 return false;
1503 } 1503 }
1504 InlineImplicitInstanceGetter(call); 1504 InlineImplicitInstanceGetter(call);
1505 return true; 1505 return true;
1506 } else if (target.kind() == RawFunction::kMethodExtractor) { 1506 } else if (target.kind() == RawFunction::kMethodExtractor) {
1507 return false; 1507 return false;
1508 } else if (target.kind() == RawFunction::kNoSuchMethodDispatcher) {
1509 return false;
1510 } 1508 }
1511 1509
1512 // Not an implicit getter. 1510 // Not an implicit getter.
1513 MethodRecognizer::Kind recognized_kind = 1511 MethodRecognizer::Kind recognized_kind =
1514 MethodRecognizer::RecognizeKind(target); 1512 MethodRecognizer::RecognizeKind(target);
1515 1513
1516 // VM objects length getter. 1514 // VM objects length getter.
1517 switch (recognized_kind) { 1515 switch (recognized_kind) {
1518 case MethodRecognizer::kObjectCid: { 1516 case MethodRecognizer::kObjectCid: {
1519 InlineObjectCid(call); 1517 InlineObjectCid(call);
(...skipping 5059 matching lines...) Expand 10 before | Expand all | Expand 10 after
6579 6577
6580 // Insert materializations at environment uses. 6578 // Insert materializations at environment uses.
6581 const Class& cls = Class::Handle(alloc->constructor().Owner()); 6579 const Class& cls = Class::Handle(alloc->constructor().Owner());
6582 for (intptr_t i = 0; i < exits.length(); i++) { 6580 for (intptr_t i = 0; i < exits.length(); i++) {
6583 CreateMaterializationAt(exits[i], alloc, cls, *fields); 6581 CreateMaterializationAt(exits[i], alloc, cls, *fields);
6584 } 6582 }
6585 } 6583 }
6586 6584
6587 6585
6588 } // namespace dart 6586 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/mirrors_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698