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

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

Issue 12843043: When attempting to to inline a field getter we use the incoming cid. That type may differ between v… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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_optimizer.cc ('k') | no next file » | 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 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 ASSERT(other != NULL); 521 ASSERT(other != NULL);
522 ASSERT(this != other); 522 ASSERT(this != other);
523 523
524 Value* current = NULL; 524 Value* current = NULL;
525 Value* next = input_use_list(); 525 Value* next = input_use_list();
526 if (next != NULL) { 526 if (next != NULL) {
527 // Change all the definitions. 527 // Change all the definitions.
528 while (next != NULL) { 528 while (next != NULL) {
529 current = next; 529 current = next;
530 current->set_definition(other); 530 current->set_definition(other);
531 current->SetReachingType(NULL);
Vyacheslav Egorov (Google) 2013/03/26 20:46:12 I think guarding it with if (current->Type() ==
srdjan 2013/03/26 21:23:34 Done.
531 next = current->next_use(); 532 next = current->next_use();
532 } 533 }
533 534
534 // Concatenate the lists. 535 // Concatenate the lists.
535 next = other->input_use_list(); 536 next = other->input_use_list();
536 current->set_next_use(next); 537 current->set_next_use(next);
537 if (next != NULL) next->set_previous_use(current); 538 if (next != NULL) next->set_previous_use(current);
538 other->set_input_use_list(input_use_list()); 539 other->set_input_use_list(input_use_list());
539 set_input_use_list(NULL); 540 set_input_use_list(NULL);
540 } 541 }
(...skipping 1797 matching lines...) Expand 10 before | Expand all | Expand 10 after
2338 default: 2339 default:
2339 UNREACHABLE(); 2340 UNREACHABLE();
2340 } 2341 }
2341 return kPowRuntimeEntry; 2342 return kPowRuntimeEntry;
2342 } 2343 }
2343 2344
2344 2345
2345 #undef __ 2346 #undef __
2346 2347
2347 } // namespace dart 2348 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698