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

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

Issue 1230753004: [Interpreter] Add BytecodeArray class and add to SharedFunctionInfo. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix pedantic build (take2). Created 5 years, 5 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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/heap/objects-visiting.h" 7 #include "src/heap/objects-visiting.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 24 matching lines...) Expand all
35 return GetVisitorIdForSize(kVisitDataObject, kVisitDataObjectGeneric, 35 return GetVisitorIdForSize(kVisitDataObject, kVisitDataObjectGeneric,
36 instance_size, has_unboxed_fields); 36 instance_size, has_unboxed_fields);
37 } 37 }
38 UNREACHABLE(); 38 UNREACHABLE();
39 } 39 }
40 40
41 switch (instance_type) { 41 switch (instance_type) {
42 case BYTE_ARRAY_TYPE: 42 case BYTE_ARRAY_TYPE:
43 return kVisitByteArray; 43 return kVisitByteArray;
44 44
45 case BYTECODE_ARRAY_TYPE:
46 return kVisitBytecodeArray;
47
45 case FREE_SPACE_TYPE: 48 case FREE_SPACE_TYPE:
46 return kVisitFreeSpace; 49 return kVisitFreeSpace;
47 50
48 case FIXED_ARRAY_TYPE: 51 case FIXED_ARRAY_TYPE:
49 return kVisitFixedArray; 52 return kVisitFixedArray;
50 53
51 case FIXED_DOUBLE_ARRAY_TYPE: 54 case FIXED_DOUBLE_ARRAY_TYPE:
52 return kVisitFixedDoubleArray; 55 return kVisitFixedDoubleArray;
53 56
54 case ODDBALL_TYPE: 57 case ODDBALL_TYPE:
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 }; 356 };
354 357
355 358
356 template Object* VisitWeakList<Context>(Heap* heap, Object* list, 359 template Object* VisitWeakList<Context>(Heap* heap, Object* list,
357 WeakObjectRetainer* retainer); 360 WeakObjectRetainer* retainer);
358 361
359 template Object* VisitWeakList<AllocationSite>(Heap* heap, Object* list, 362 template Object* VisitWeakList<AllocationSite>(Heap* heap, Object* list,
360 WeakObjectRetainer* retainer); 363 WeakObjectRetainer* retainer);
361 } // namespace internal 364 } // namespace internal
362 } // namespace v8 365 } // 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