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

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

Issue 10690043: Implement proper module linking. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed Michael's comments. Created 8 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 PrintElements(out); 425 PrintElements(out);
426 PrintF(out, " }\n"); 426 PrintF(out, " }\n");
427 } 427 }
428 428
429 429
430 void JSModule::JSModulePrint(FILE* out) { 430 void JSModule::JSModulePrint(FILE* out) {
431 HeapObject::PrintHeader(out, "JSModule"); 431 HeapObject::PrintHeader(out, "JSModule");
432 PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map())); 432 PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map()));
433 PrintF(out, " - context = "); 433 PrintF(out, " - context = ");
434 context()->Print(out); 434 context()->Print(out);
435 PrintF(out, " - scope_info = ");
436 scope_info()->ShortPrint(out);
435 PrintElementsKind(out, this->map()->elements_kind()); 437 PrintElementsKind(out, this->map()->elements_kind());
436 PrintF(out, " {\n"); 438 PrintF(out, " {\n");
437 PrintProperties(out); 439 PrintProperties(out);
438 PrintElements(out); 440 PrintElements(out);
439 PrintF(out, " }\n"); 441 PrintF(out, " }\n");
440 } 442 }
441 443
442 444
443 static const char* TypeToString(InstanceType type) { 445 static const char* TypeToString(InstanceType type) {
444 switch (type) { 446 switch (type) {
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
1021 desc.Print(out); 1023 desc.Print(out);
1022 } 1024 }
1023 PrintF(out, "\n"); 1025 PrintF(out, "\n");
1024 } 1026 }
1025 1027
1026 1028
1027 #endif // OBJECT_PRINT 1029 #endif // OBJECT_PRINT
1028 1030
1029 1031
1030 } } // namespace v8::internal 1032 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698