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

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

Issue 2581683003: Introduce {ConstantElementsPair} struct for type safety. (Closed)
Patch Set: Re-cemment bytecode tests. 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 1292 matching lines...) Expand 10 before | Expand all | Expand 10 after
1303 os << "\n"; 1303 os << "\n";
1304 } 1304 }
1305 1305
1306 void ContextExtension::ContextExtensionPrint(std::ostream& os) { // NOLINT 1306 void ContextExtension::ContextExtensionPrint(std::ostream& os) { // NOLINT
1307 HeapObject::PrintHeader(os, "ContextExtension"); 1307 HeapObject::PrintHeader(os, "ContextExtension");
1308 os << "\n - scope_info: " << Brief(scope_info()); 1308 os << "\n - scope_info: " << Brief(scope_info());
1309 os << "\n - extension: " << Brief(extension()); 1309 os << "\n - extension: " << Brief(extension());
1310 os << "\n"; 1310 os << "\n";
1311 } 1311 }
1312 1312
1313 void ConstantElementsPair::ConstantElementsPairPrint(
1314 std::ostream& os) { // NOLINT
1315 HeapObject::PrintHeader(os, "ContstantElementsPair");
mvstanton 2016/12/16 09:10:18 Typo here...
Michael Starzinger 2016/12/16 09:19:02 Done.
1316 os << "\n - elements_kind: " << static_cast<ElementsKind>(elements_kind());
1317 os << "\n - constant_values: " << Brief(constant_values());
1318 os << "\n";
1319 }
1313 1320
1314 void AccessorPair::AccessorPairPrint(std::ostream& os) { // NOLINT 1321 void AccessorPair::AccessorPairPrint(std::ostream& os) { // NOLINT
1315 HeapObject::PrintHeader(os, "AccessorPair"); 1322 HeapObject::PrintHeader(os, "AccessorPair");
1316 os << "\n - getter: " << Brief(getter()); 1323 os << "\n - getter: " << Brief(getter());
1317 os << "\n - setter: " << Brief(setter()); 1324 os << "\n - setter: " << Brief(setter());
1318 os << "\n"; 1325 os << "\n";
1319 } 1326 }
1320 1327
1321 1328
1322 void AccessCheckInfo::AccessCheckInfoPrint(std::ostream& os) { // NOLINT 1329 void AccessCheckInfo::AccessCheckInfoPrint(std::ostream& os) { // NOLINT
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
1684 printf("Not a transition array\n"); 1691 printf("Not a transition array\n");
1685 } else { 1692 } else {
1686 reinterpret_cast<i::TransitionArray*>(object)->Print(); 1693 reinterpret_cast<i::TransitionArray*>(object)->Print();
1687 } 1694 }
1688 } 1695 }
1689 1696
1690 extern void _v8_internal_Print_StackTrace() { 1697 extern void _v8_internal_Print_StackTrace() {
1691 i::Isolate* isolate = i::Isolate::Current(); 1698 i::Isolate* isolate = i::Isolate::Current();
1692 isolate->PrintStack(stdout); 1699 isolate->PrintStack(stdout);
1693 } 1700 }
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