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

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

Issue 218403002: Fix Type::Intersect to allocate large enough union. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 | « src/heap-snapshot-generator.cc ('k') | src/jsregexp.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 2614 matching lines...) Expand 10 before | Expand all | Expand 10 after
2625 done_with_replay_ = true; 2625 done_with_replay_ = true;
2626 } 2626 }
2627 2627
2628 2628
2629 static void ReplayEnvironmentNested(const ZoneList<HValue*>* values, 2629 static void ReplayEnvironmentNested(const ZoneList<HValue*>* values,
2630 HCapturedObject* other) { 2630 HCapturedObject* other) {
2631 for (int i = 0; i < values->length(); ++i) { 2631 for (int i = 0; i < values->length(); ++i) {
2632 HValue* value = values->at(i); 2632 HValue* value = values->at(i);
2633 if (value->IsCapturedObject()) { 2633 if (value->IsCapturedObject()) {
2634 if (HCapturedObject::cast(value)->capture_id() == other->capture_id()) { 2634 if (HCapturedObject::cast(value)->capture_id() == other->capture_id()) {
2635 // TODO(jkummerow): This impertinently circumvents const-ness
2636 // of |values|!
2635 values->at(i) = other; 2637 values->at(i) = other;
2636 } else { 2638 } else {
2637 ReplayEnvironmentNested(HCapturedObject::cast(value)->values(), other); 2639 ReplayEnvironmentNested(HCapturedObject::cast(value)->values(), other);
2638 } 2640 }
2639 } 2641 }
2640 } 2642 }
2641 } 2643 }
2642 2644
2643 2645
2644 // Replay captured objects by replacing all captured objects with the 2646 // Replay captured objects by replacing all captured objects with the
(...skipping 2050 matching lines...) Expand 10 before | Expand all | Expand 10 after
4695 break; 4697 break;
4696 case kExternalMemory: 4698 case kExternalMemory:
4697 stream->Add("[external-memory]"); 4699 stream->Add("[external-memory]");
4698 break; 4700 break;
4699 } 4701 }
4700 4702
4701 stream->Add("@%d", offset()); 4703 stream->Add("@%d", offset());
4702 } 4704 }
4703 4705
4704 } } // namespace v8::internal 4706 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap-snapshot-generator.cc ('k') | src/jsregexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698