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

Side by Side Diff: src/objects-printer.cc

Issue 1844413002: Use EmbedderHeapTracer instead of object grouping when trace_embedder_heap flag is set (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Move logic from heap to mark compact Created 4 years, 8 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/objects-inl.h ('k') | src/types.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/objects.h" 5 #include "src/objects.h"
6 6
7 #include "src/disasm.h" 7 #include "src/disasm.h"
8 #include "src/disassembler.h" 8 #include "src/disassembler.h"
9 #include "src/interpreter/bytecodes.h" 9 #include "src/interpreter/bytecodes.h"
10 #include "src/objects-inl.h" 10 #include "src/objects-inl.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 Fixed##Type##Array::cast(this)->FixedTypedArrayPrint(os); \ 94 Fixed##Type##Array::cast(this)->FixedTypedArrayPrint(os); \
95 break; 95 break;
96 96
97 TYPED_ARRAYS(PRINT_FIXED_TYPED_ARRAY) 97 TYPED_ARRAYS(PRINT_FIXED_TYPED_ARRAY)
98 #undef PRINT_FIXED_TYPED_ARRAY 98 #undef PRINT_FIXED_TYPED_ARRAY
99 99
100 case FILLER_TYPE: 100 case FILLER_TYPE:
101 os << "filler"; 101 os << "filler";
102 break; 102 break;
103 case JS_OBJECT_TYPE: // fall through 103 case JS_OBJECT_TYPE: // fall through
104 case JS_API_OBJECT_TYPE:
104 case JS_SPECIAL_API_OBJECT_TYPE: 105 case JS_SPECIAL_API_OBJECT_TYPE:
105 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: 106 case JS_CONTEXT_EXTENSION_OBJECT_TYPE:
106 case JS_GENERATOR_OBJECT_TYPE: 107 case JS_GENERATOR_OBJECT_TYPE:
107 case JS_PROMISE_TYPE: 108 case JS_PROMISE_TYPE:
108 JSObject::cast(this)->JSObjectPrint(os); 109 JSObject::cast(this)->JSObjectPrint(os);
109 break; 110 break;
110 case JS_ARRAY_TYPE: 111 case JS_ARRAY_TYPE:
111 JSArray::cast(this)->JSArrayPrint(os); 112 JSArray::cast(this)->JSArrayPrint(os);
112 break; 113 break;
113 case JS_REGEXP_TYPE: 114 case JS_REGEXP_TYPE:
(...skipping 1225 matching lines...) Expand 10 before | Expand all | Expand 10 after
1339 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT 1340 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1340 Object* transitions = map()->raw_transitions(); 1341 Object* transitions = map()->raw_transitions();
1341 int num_transitions = TransitionArray::NumberOfTransitions(transitions); 1342 int num_transitions = TransitionArray::NumberOfTransitions(transitions);
1342 if (num_transitions == 0) return; 1343 if (num_transitions == 0) return;
1343 os << "\n - transitions"; 1344 os << "\n - transitions";
1344 TransitionArray::PrintTransitions(os, transitions, false); 1345 TransitionArray::PrintTransitions(os, transitions, false);
1345 } 1346 }
1346 #endif // defined(DEBUG) || defined(OBJECT_PRINT) 1347 #endif // defined(DEBUG) || defined(OBJECT_PRINT)
1347 } // namespace internal 1348 } // namespace internal
1348 } // namespace v8 1349 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698