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

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: argh I keep making mistakes. 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
« no previous file with comments | « src/mips64/assembler-mips64-inl.h ('k') | src/ppc/assembler-ppc-inl.h » ('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 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 6398 matching lines...) Expand 10 before | Expand all | Expand 10 after
17166 CompilationInfo* info) { 17166 CompilationInfo* info) {
17167 Handle<DependentCode> codes = DependentCode::InsertCompilationInfo( 17167 Handle<DependentCode> codes = DependentCode::InsertCompilationInfo(
17168 handle(cell->dependent_code(), info->isolate()), 17168 handle(cell->dependent_code(), info->isolate()),
17169 DependentCode::kPropertyCellChangedGroup, info->object_wrapper()); 17169 DependentCode::kPropertyCellChangedGroup, info->object_wrapper());
17170 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes); 17170 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes);
17171 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add( 17171 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add(
17172 cell, info->zone()); 17172 cell, info->zone());
17173 } 17173 }
17174 17174
17175 } } // namespace v8::internal 17175 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips64/assembler-mips64-inl.h ('k') | src/ppc/assembler-ppc-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698