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

Side by Side Diff: src/serialize.cc

Issue 933533003: Version 4.2.70.1 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@4.2.70
Patch Set: Created 5 years, 10 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
« no previous file with comments | « src/runtime/runtime-typedarray.cc ('k') | src/version.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/base/platform/platform.h" 9 #include "src/base/platform/platform.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 DCHECK(isolate_->handle_scope_implementer()->blocks()->is_empty()); 665 DCHECK(isolate_->handle_scope_implementer()->blocks()->is_empty());
666 isolate_->heap()->IterateSmiRoots(this); 666 isolate_->heap()->IterateSmiRoots(this);
667 isolate_->heap()->IterateStrongRoots(this, VISIT_ONLY_STRONG); 667 isolate_->heap()->IterateStrongRoots(this, VISIT_ONLY_STRONG);
668 isolate_->heap()->RepairFreeListsAfterDeserialization(); 668 isolate_->heap()->RepairFreeListsAfterDeserialization();
669 isolate_->heap()->IterateWeakRoots(this, VISIT_ALL); 669 isolate_->heap()->IterateWeakRoots(this, VISIT_ALL);
670 670
671 isolate_->heap()->set_native_contexts_list( 671 isolate_->heap()->set_native_contexts_list(
672 isolate_->heap()->undefined_value()); 672 isolate_->heap()->undefined_value());
673 isolate_->heap()->set_array_buffers_list( 673 isolate_->heap()->set_array_buffers_list(
674 isolate_->heap()->undefined_value()); 674 isolate_->heap()->undefined_value());
675 isolate->heap()->set_new_array_buffer_views_list(
676 isolate_->heap()->undefined_value());
677 675
678 // The allocation site list is build during root iteration, but if no sites 676 // The allocation site list is build during root iteration, but if no sites
679 // were encountered then it needs to be initialized to undefined. 677 // were encountered then it needs to be initialized to undefined.
680 if (isolate_->heap()->allocation_sites_list() == Smi::FromInt(0)) { 678 if (isolate_->heap()->allocation_sites_list() == Smi::FromInt(0)) {
681 isolate_->heap()->set_allocation_sites_list( 679 isolate_->heap()->set_allocation_sites_list(
682 isolate_->heap()->undefined_value()); 680 isolate_->heap()->undefined_value());
683 } 681 }
684 682
685 // Update data pointers to the external strings containing natives sources. 683 // Update data pointers to the external strings containing natives sources.
686 for (int i = 0; i < Natives::GetBuiltinsCount(); i++) { 684 for (int i = 0; i < Natives::GetBuiltinsCount(); i++) {
(...skipping 1974 matching lines...) Expand 10 before | Expand all | Expand 10 after
2661 SerializedCodeData* SerializedCodeData::FromCachedData(ScriptData* cached_data, 2659 SerializedCodeData* SerializedCodeData::FromCachedData(ScriptData* cached_data,
2662 String* source) { 2660 String* source) {
2663 DisallowHeapAllocation no_gc; 2661 DisallowHeapAllocation no_gc;
2664 SerializedCodeData* scd = new SerializedCodeData(cached_data); 2662 SerializedCodeData* scd = new SerializedCodeData(cached_data);
2665 if (scd->IsSane(source)) return scd; 2663 if (scd->IsSane(source)) return scd;
2666 cached_data->Reject(); 2664 cached_data->Reject();
2667 delete scd; 2665 delete scd;
2668 return NULL; 2666 return NULL;
2669 } 2667 }
2670 } } // namespace v8::internal 2668 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime/runtime-typedarray.cc ('k') | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698