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

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

Issue 390323002: Remove JSReceiver::GetPrototype and replace it with PrototypeIterator calls (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/objects-inl.h ('k') | src/prototype.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 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/jsregexp.h" 9 #include "src/jsregexp.h"
10 #include "src/objects-visiting.h" 10 #include "src/objects-visiting.h"
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 } 382 }
383 } 383 }
384 } 384 }
385 } 385 }
386 386
387 387
388 void JSObject::JSObjectPrint(OStream& os) { // NOLINT 388 void JSObject::JSObjectPrint(OStream& os) { // NOLINT
389 HeapObject::PrintHeader(os, "JSObject"); 389 HeapObject::PrintHeader(os, "JSObject");
390 // Don't call GetElementsKind, its validation code can cause the printer to 390 // Don't call GetElementsKind, its validation code can cause the printer to
391 // fail when debugging. 391 // fail when debugging.
392 PrototypeIterator iter(GetIsolate(), this);
392 os << " - map = " << reinterpret_cast<void*>(map()) << " [" 393 os << " - map = " << reinterpret_cast<void*>(map()) << " ["
393 << ElementsKindToString(this->map()->elements_kind()) 394 << ElementsKindToString(this->map()->elements_kind())
394 << "]\n - prototype = " << reinterpret_cast<void*>(GetPrototype()) << "\n" 395 << "]\n - prototype = " << reinterpret_cast<void*>(iter.GetCurrent())
395 << " {\n"; 396 << "\n {\n";
396 PrintProperties(os); 397 PrintProperties(os);
397 PrintTransitions(os); 398 PrintTransitions(os);
398 PrintElements(os); 399 PrintElements(os);
399 os << " }\n"; 400 os << " }\n";
400 } 401 }
401 402
402 403
403 void JSModule::JSModulePrint(OStream& os) { // NOLINT 404 void JSModule::JSModulePrint(OStream& os) { // NOLINT
404 HeapObject::PrintHeader(os, "JSModule"); 405 HeapObject::PrintHeader(os, "JSModule");
405 os << " - map = " << reinterpret_cast<void*>(map()) << "\n" 406 os << " - map = " << reinterpret_cast<void*>(map()) << "\n"
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
1109 } 1110 }
1110 } 1111 }
1111 os << "\n"; 1112 os << "\n";
1112 } 1113 }
1113 1114
1114 1115
1115 #endif // OBJECT_PRINT 1116 #endif // OBJECT_PRINT
1116 1117
1117 1118
1118 } } // namespace v8::internal 1119 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/prototype.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698