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

Side by Side Diff: src/hydrogen-instructions.cc

Issue 252583004: Don't adopt the AST id from previous if id is none, since previous may have mismatching expected st… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Ensure we advance while consuming simulates Created 6 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 | « no previous file | src/hydrogen-removable-simulates.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2577 matching lines...) Expand 10 before | Expand all | Expand 10 after
2588 2588
2589 2589
2590 void HPhi::AddIndirectUsesTo(int* dest) { 2590 void HPhi::AddIndirectUsesTo(int* dest) {
2591 for (int i = 0; i < Representation::kNumRepresentations; i++) { 2591 for (int i = 0; i < Representation::kNumRepresentations; i++) {
2592 dest[i] += indirect_uses_[i]; 2592 dest[i] += indirect_uses_[i];
2593 } 2593 }
2594 } 2594 }
2595 2595
2596 2596
2597 void HSimulate::MergeWith(ZoneList<HSimulate*>* list) { 2597 void HSimulate::MergeWith(ZoneList<HSimulate*>* list) {
2598 if (!list->is_empty() && !HasAstId()) {
2599 set_ast_id(list->last()->ast_id());
2600 }
2601 while (!list->is_empty()) { 2598 while (!list->is_empty()) {
2602 HSimulate* from = list->RemoveLast(); 2599 HSimulate* from = list->RemoveLast();
2603 ZoneList<HValue*>* from_values = &from->values_; 2600 ZoneList<HValue*>* from_values = &from->values_;
2604 for (int i = 0; i < from_values->length(); ++i) { 2601 for (int i = 0; i < from_values->length(); ++i) {
2605 if (from->HasAssignedIndexAt(i)) { 2602 if (from->HasAssignedIndexAt(i)) {
2606 int index = from->GetAssignedIndexAt(i); 2603 int index = from->GetAssignedIndexAt(i);
2607 if (HasValueForIndex(index)) continue; 2604 if (HasValueForIndex(index)) continue;
2608 AddAssignedValue(index, from_values->at(i)); 2605 AddAssignedValue(index, from_values->at(i));
2609 } else { 2606 } else {
2610 if (pop_count_ > 0) { 2607 if (pop_count_ > 0) {
(...skipping 2136 matching lines...) Expand 10 before | Expand all | Expand 10 after
4747 break; 4744 break;
4748 case kExternalMemory: 4745 case kExternalMemory:
4749 stream->Add("[external-memory]"); 4746 stream->Add("[external-memory]");
4750 break; 4747 break;
4751 } 4748 }
4752 4749
4753 stream->Add("@%d", offset()); 4750 stream->Add("@%d", offset());
4754 } 4751 }
4755 4752
4756 } } // namespace v8::internal 4753 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen-removable-simulates.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698