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

Side by Side Diff: src/global-handles.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 | « no previous file | src/heap-snapshot-generator.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 Object* object = *objects[j]; 619 Object* object = *objects[j];
620 if (object->IsHeapObject()) { 620 if (object->IsHeapObject()) {
621 v->VisitPointer(&object); 621 v->VisitPointer(&object);
622 any_group_was_visited = true; 622 any_group_was_visited = true;
623 } 623 }
624 } 624 }
625 625
626 // Once the entire group has been iterated over, set the object 626 // Once the entire group has been iterated over, set the object
627 // group to NULL so it won't be processed again. 627 // group to NULL so it won't be processed again.
628 delete entry; 628 delete entry;
629 object_groups_.at(i) = NULL; 629 object_groups_.Set(i, NULL);
630 } 630 }
631 object_groups_.Rewind(last); 631 object_groups_.Rewind(last);
632 return any_group_was_visited; 632 return any_group_was_visited;
633 } 633 }
634 634
635 635
636 bool GlobalHandles::PostGarbageCollectionProcessing( 636 bool GlobalHandles::PostGarbageCollectionProcessing(
637 GarbageCollector collector, GCTracer* tracer) { 637 GarbageCollector collector, GCTracer* tracer) {
638 // Process weak global handle callbacks. This must be done after the 638 // Process weak global handle callbacks. This must be done after the
639 // GC is completely done, because the callbacks may invoke arbitrary 639 // GC is completely done, because the callbacks may invoke arbitrary
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
1086 ASSERT_EQ(isolate->heap()->the_hole_value(), blocks_[block][offset]); 1086 ASSERT_EQ(isolate->heap()->the_hole_value(), blocks_[block][offset]);
1087 blocks_[block][offset] = object; 1087 blocks_[block][offset] = object;
1088 if (isolate->heap()->InNewSpace(object)) { 1088 if (isolate->heap()->InNewSpace(object)) {
1089 new_space_indices_.Add(size_); 1089 new_space_indices_.Add(size_);
1090 } 1090 }
1091 *index = size_++; 1091 *index = size_++;
1092 } 1092 }
1093 1093
1094 1094
1095 } } // namespace v8::internal 1095 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/heap-snapshot-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698