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

Side by Side Diff: src/heap/objects-visiting.cc

Issue 2549773002: Internalize strings in-place (Closed)
Patch Set: rebased Created 3 years, 11 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/heap/objects-visiting.h ('k') | src/heap/objects-visiting-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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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/heap/objects-visiting.h" 5 #include "src/heap/objects-visiting.h"
6 6
7 #include "src/heap/mark-compact-inl.h" 7 #include "src/heap/mark-compact-inl.h"
8 #include "src/heap/objects-visiting-inl.h" 8 #include "src/heap/objects-visiting-inl.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 23 matching lines...) Expand all
34 } else { 34 } else {
35 return kVisitConsString; 35 return kVisitConsString;
36 } 36 }
37 37
38 case kSlicedStringTag: 38 case kSlicedStringTag:
39 return kVisitSlicedString; 39 return kVisitSlicedString;
40 40
41 case kExternalStringTag: 41 case kExternalStringTag:
42 return GetVisitorIdForSize(kVisitDataObject, kVisitDataObjectGeneric, 42 return GetVisitorIdForSize(kVisitDataObject, kVisitDataObjectGeneric,
43 instance_size, has_unboxed_fields); 43 instance_size, has_unboxed_fields);
44
45 case kThinStringTag:
46 return kVisitThinString;
44 } 47 }
45 UNREACHABLE(); 48 UNREACHABLE();
46 } 49 }
47 50
48 switch (instance_type) { 51 switch (instance_type) {
49 case BYTE_ARRAY_TYPE: 52 case BYTE_ARRAY_TYPE:
50 return kVisitByteArray; 53 return kVisitByteArray;
51 54
52 case BYTECODE_ARRAY_TYPE: 55 case BYTECODE_ARRAY_TYPE:
53 return kVisitBytecodeArray; 56 return kVisitBytecodeArray;
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 }; 400 };
398 401
399 402
400 template Object* VisitWeakList<Context>(Heap* heap, Object* list, 403 template Object* VisitWeakList<Context>(Heap* heap, Object* list,
401 WeakObjectRetainer* retainer); 404 WeakObjectRetainer* retainer);
402 405
403 template Object* VisitWeakList<AllocationSite>(Heap* heap, Object* list, 406 template Object* VisitWeakList<AllocationSite>(Heap* heap, Object* list,
404 WeakObjectRetainer* retainer); 407 WeakObjectRetainer* retainer);
405 } // namespace internal 408 } // namespace internal
406 } // namespace v8 409 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/objects-visiting.h ('k') | src/heap/objects-visiting-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698