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

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

Issue 2581683003: Introduce {ConstantElementsPair} struct for type safety. (Closed)
Patch Set: Rebased. Created 4 years 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/runtime/runtime-literals.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 <iomanip> 7 #include <iomanip>
8 #include <memory> 8 #include <memory>
9 9
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 1281 matching lines...) Expand 10 before | Expand all | Expand 10 after
1292 os << "\n"; 1292 os << "\n";
1293 } 1293 }
1294 1294
1295 void ContextExtension::ContextExtensionPrint(std::ostream& os) { // NOLINT 1295 void ContextExtension::ContextExtensionPrint(std::ostream& os) { // NOLINT
1296 HeapObject::PrintHeader(os, "ContextExtension"); 1296 HeapObject::PrintHeader(os, "ContextExtension");
1297 os << "\n - scope_info: " << Brief(scope_info()); 1297 os << "\n - scope_info: " << Brief(scope_info());
1298 os << "\n - extension: " << Brief(extension()); 1298 os << "\n - extension: " << Brief(extension());
1299 os << "\n"; 1299 os << "\n";
1300 } 1300 }
1301 1301
1302 void ConstantElementsPair::ConstantElementsPairPrint(
1303 std::ostream& os) { // NOLINT
1304 HeapObject::PrintHeader(os, "ConstantElementsPair");
1305 os << "\n - elements_kind: " << static_cast<ElementsKind>(elements_kind());
1306 os << "\n - constant_values: " << Brief(constant_values());
1307 os << "\n";
1308 }
1302 1309
1303 void AccessorPair::AccessorPairPrint(std::ostream& os) { // NOLINT 1310 void AccessorPair::AccessorPairPrint(std::ostream& os) { // NOLINT
1304 HeapObject::PrintHeader(os, "AccessorPair"); 1311 HeapObject::PrintHeader(os, "AccessorPair");
1305 os << "\n - getter: " << Brief(getter()); 1312 os << "\n - getter: " << Brief(getter());
1306 os << "\n - setter: " << Brief(setter()); 1313 os << "\n - setter: " << Brief(setter());
1307 os << "\n"; 1314 os << "\n";
1308 } 1315 }
1309 1316
1310 1317
1311 void AccessCheckInfo::AccessCheckInfoPrint(std::ostream& os) { // NOLINT 1318 void AccessCheckInfo::AccessCheckInfoPrint(std::ostream& os) { // NOLINT
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
1673 printf("Not a transition array\n"); 1680 printf("Not a transition array\n");
1674 } else { 1681 } else {
1675 reinterpret_cast<i::TransitionArray*>(object)->Print(); 1682 reinterpret_cast<i::TransitionArray*>(object)->Print();
1676 } 1683 }
1677 } 1684 }
1678 1685
1679 extern void _v8_internal_Print_StackTrace() { 1686 extern void _v8_internal_Print_StackTrace() {
1680 i::Isolate* isolate = i::Isolate::Current(); 1687 i::Isolate* isolate = i::Isolate::Current();
1681 isolate->PrintStack(stdout); 1688 isolate->PrintStack(stdout);
1682 } 1689 }
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime/runtime-literals.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698