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

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

Issue 1080403004: Revert of Reland "LayoutDescriptor should inherit from JSTypedArray" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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') | test/cctest/test-unboxed-doubles.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/v8.h" 5 #include "src/v8.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/heap/objects-visiting.h" 9 #include "src/heap/objects-visiting.h"
10 #include "src/jsregexp.h" 10 #include "src/jsregexp.h"
(...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after
1058 os << "Layout descriptor: "; 1058 os << "Layout descriptor: ";
1059 if (IsUninitialized()) { 1059 if (IsUninitialized()) {
1060 os << "<uninitialized>"; 1060 os << "<uninitialized>";
1061 } else if (IsFastPointerLayout()) { 1061 } else if (IsFastPointerLayout()) {
1062 os << "<all tagged>"; 1062 os << "<all tagged>";
1063 } else if (IsSmi()) { 1063 } else if (IsSmi()) {
1064 os << "fast"; 1064 os << "fast";
1065 PrintBitMask(os, static_cast<uint32_t>(Smi::cast(this)->value())); 1065 PrintBitMask(os, static_cast<uint32_t>(Smi::cast(this)->value()));
1066 } else { 1066 } else {
1067 os << "slow"; 1067 os << "slow";
1068 int len = Smi::cast(length())->value(); 1068 int len = length();
1069 for (int i = 0; i < len; i++) { 1069 for (int i = 0; i < len; i++) {
1070 if (i > 0) os << " |"; 1070 if (i > 0) os << " |";
1071 PrintBitMask(os, get_scalar(i)); 1071 PrintBitMask(os, get_scalar(i));
1072 } 1072 }
1073 } 1073 }
1074 os << "\n"; 1074 os << "\n";
1075 } 1075 }
1076 1076
1077 1077
1078 #endif // OBJECT_PRINT 1078 #endif // OBJECT_PRINT
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
1201 os << " -> " << Brief(target) << "\n"; 1201 os << " -> " << Brief(target) << "\n";
1202 } 1202 }
1203 } 1203 }
1204 1204
1205 1205
1206 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT 1206 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1207 TransitionArray::PrintTransitions(os, map()->raw_transitions()); 1207 TransitionArray::PrintTransitions(os, map()->raw_transitions());
1208 } 1208 }
1209 #endif // defined(DEBUG) || defined(OBJECT_PRINT) 1209 #endif // defined(DEBUG) || defined(OBJECT_PRINT)
1210 } } // namespace v8::internal 1210 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | test/cctest/test-unboxed-doubles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698