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/objects.cc

Issue 976623002: Serializer: correctly deal with internal references. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fixed ports, disabled context specialization for serializer Created 5 years, 9 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
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 <iomanip> 5 #include <iomanip>
6 #include <sstream> 6 #include <sstream>
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/accessors.h" 10 #include "src/accessors.h"
(...skipping 10736 matching lines...) Expand 10 before | Expand all | Expand 10 after
10747 10747
10748 10748
10749 void ObjectVisitor::VisitEmbeddedPointer(RelocInfo* rinfo) { 10749 void ObjectVisitor::VisitEmbeddedPointer(RelocInfo* rinfo) {
10750 DCHECK(rinfo->rmode() == RelocInfo::EMBEDDED_OBJECT); 10750 DCHECK(rinfo->rmode() == RelocInfo::EMBEDDED_OBJECT);
10751 Object* p = rinfo->target_object(); 10751 Object* p = rinfo->target_object();
10752 VisitPointer(&p); 10752 VisitPointer(&p);
10753 } 10753 }
10754 10754
10755 10755
10756 void ObjectVisitor::VisitExternalReference(RelocInfo* rinfo) { 10756 void ObjectVisitor::VisitExternalReference(RelocInfo* rinfo) {
10757 Address p = rinfo->target_reference(); 10757 Address p = rinfo->target_external_reference();
10758 VisitExternalReference(&p); 10758 VisitExternalReference(&p);
10759 } 10759 }
10760 10760
10761 10761
10762 void Code::InvalidateRelocation() { 10762 void Code::InvalidateRelocation() {
10763 InvalidateEmbeddedObjects(); 10763 InvalidateEmbeddedObjects();
10764 set_relocation_info(GetHeap()->empty_byte_array()); 10764 set_relocation_info(GetHeap()->empty_byte_array());
10765 } 10765 }
10766 10766
10767 10767
(...skipping 6396 matching lines...) Expand 10 before | Expand all | Expand 10 after
17164 CompilationInfo* info) { 17164 CompilationInfo* info) {
17165 Handle<DependentCode> codes = DependentCode::InsertCompilationInfo( 17165 Handle<DependentCode> codes = DependentCode::InsertCompilationInfo(
17166 handle(cell->dependent_code(), info->isolate()), 17166 handle(cell->dependent_code(), info->isolate()),
17167 DependentCode::kPropertyCellChangedGroup, info->object_wrapper()); 17167 DependentCode::kPropertyCellChangedGroup, info->object_wrapper());
17168 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes); 17168 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes);
17169 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add( 17169 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add(
17170 cell, info->zone()); 17170 cell, info->zone());
17171 } 17171 }
17172 17172
17173 } } // namespace v8::internal 17173 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698