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

Side by Side Diff: src/snapshot/serializer.cc

Issue 2247093002: PPC/s390: [wasm] adding case for kAttachedReference in Serializer/Deseriealizer (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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/snapshot/deserializer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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/snapshot/serializer.h" 5 #include "src/snapshot/serializer.h"
6 6
7 #include "src/macro-assembler.h" 7 #include "src/macro-assembler.h"
8 #include "src/snapshot/natives.h" 8 #include "src/snapshot/natives.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 sink_.PutInt(reference.back_reference(), "BackRefValue"); 241 sink_.PutInt(reference.back_reference(), "BackRefValue");
242 hot_objects_.Add(object); 242 hot_objects_.Add(object);
243 } 243 }
244 244
245 void Serializer::PutAttachedReference(SerializerReference reference, 245 void Serializer::PutAttachedReference(SerializerReference reference,
246 HowToCode how_to_code, 246 HowToCode how_to_code,
247 WhereToPoint where_to_point) { 247 WhereToPoint where_to_point) {
248 DCHECK(reference.is_attached_reference()); 248 DCHECK(reference.is_attached_reference());
249 DCHECK((how_to_code == kPlain && where_to_point == kStartOfObject) || 249 DCHECK((how_to_code == kPlain && where_to_point == kStartOfObject) ||
250 (how_to_code == kPlain && where_to_point == kInnerPointer) || 250 (how_to_code == kPlain && where_to_point == kInnerPointer) ||
251 (how_to_code == kFromCode && where_to_point == kStartOfObject) ||
251 (how_to_code == kFromCode && where_to_point == kInnerPointer)); 252 (how_to_code == kFromCode && where_to_point == kInnerPointer));
252 sink_.Put(kAttachedReference + how_to_code + where_to_point, "AttachedRef"); 253 sink_.Put(kAttachedReference + how_to_code + where_to_point, "AttachedRef");
253 sink_.PutInt(reference.attached_reference_index(), "AttachedRefIndex"); 254 sink_.PutInt(reference.attached_reference_index(), "AttachedRefIndex");
254 } 255 }
255 256
256 int Serializer::PutAlignmentPrefix(HeapObject* object) { 257 int Serializer::PutAlignmentPrefix(HeapObject* object) {
257 AllocationAlignment alignment = object->RequiredAlignment(); 258 AllocationAlignment alignment = object->RequiredAlignment();
258 if (alignment != kWordAligned) { 259 if (alignment != kWordAligned) {
259 DCHECK(1 <= alignment && alignment <= 3); 260 DCHECK(1 <= alignment && alignment <= 3);
260 byte prefix = (kAlignmentPrefix - 1) + alignment; 261 byte prefix = (kAlignmentPrefix - 1) + alignment;
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 if (to_skip != 0 && return_skip == kIgnoringReturn) { 791 if (to_skip != 0 && return_skip == kIgnoringReturn) {
791 sink_->Put(kSkip, "Skip"); 792 sink_->Put(kSkip, "Skip");
792 sink_->PutInt(to_skip, "SkipDistance"); 793 sink_->PutInt(to_skip, "SkipDistance");
793 to_skip = 0; 794 to_skip = 0;
794 } 795 }
795 return to_skip; 796 return to_skip;
796 } 797 }
797 798
798 } // namespace internal 799 } // namespace internal
799 } // namespace v8 800 } // namespace v8
OLDNEW
« no previous file with comments | « src/snapshot/deserializer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698