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

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

Issue 93066: Built-in JSON support (Closed)
Patch Set: Created 11 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
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 HeapObject::PrintHeader("SharedFunctionInfo"); 551 HeapObject::PrintHeader("SharedFunctionInfo");
552 PrintF(" - name: "); 552 PrintF(" - name: ");
553 name()->ShortPrint(); 553 name()->ShortPrint();
554 PrintF("\n - expected_nof_properties: %d", expected_nof_properties()); 554 PrintF("\n - expected_nof_properties: %d", expected_nof_properties());
555 PrintF("\n - instance class name = "); 555 PrintF("\n - instance class name = ");
556 instance_class_name()->Print(); 556 instance_class_name()->Print();
557 PrintF("\n - code = "); 557 PrintF("\n - code = ");
558 code()->ShortPrint(); 558 code()->ShortPrint();
559 PrintF("\n - source code = "); 559 PrintF("\n - source code = ");
560 GetSourceCode()->ShortPrint(); 560 GetSourceCode()->ShortPrint();
561 PrintF("\n - lazy load: %s",
562 lazy_load_data() == Heap::undefined_value() ? "no" : "yes");
563 // Script files are often large, hard to read. 561 // Script files are often large, hard to read.
564 // PrintF("\n - script ="); 562 // PrintF("\n - script =");
565 // script()->Print(); 563 // script()->Print();
566 PrintF("\n - function token position = %d", function_token_position()); 564 PrintF("\n - function token position = %d", function_token_position());
567 PrintF("\n - start position = %d", start_position()); 565 PrintF("\n - start position = %d", start_position());
568 PrintF("\n - end position = %d", end_position()); 566 PrintF("\n - end position = %d", end_position());
569 PrintF("\n - is expression = %d", is_expression()); 567 PrintF("\n - is expression = %d", is_expression());
570 PrintF("\n - debug info = "); 568 PrintF("\n - debug info = ");
571 debug_info()->ShortPrint(); 569 debug_info()->ShortPrint();
572 PrintF("\n - length = %d", length()); 570 PrintF("\n - length = %d", length());
573 PrintF("\n"); 571 PrintF("\n");
574 } 572 }
575 573
576 void SharedFunctionInfo::SharedFunctionInfoVerify() { 574 void SharedFunctionInfo::SharedFunctionInfoVerify() {
577 CHECK(IsSharedFunctionInfo()); 575 CHECK(IsSharedFunctionInfo());
578 VerifyObjectField(kNameOffset); 576 VerifyObjectField(kNameOffset);
579 VerifyObjectField(kCodeOffset); 577 VerifyObjectField(kCodeOffset);
580 VerifyObjectField(kInstanceClassNameOffset); 578 VerifyObjectField(kInstanceClassNameOffset);
581 VerifyObjectField(kExternalReferenceDataOffset); 579 VerifyObjectField(kExternalReferenceDataOffset);
582 VerifyObjectField(kLazyLoadDataOffset);
583 VerifyObjectField(kScriptOffset); 580 VerifyObjectField(kScriptOffset);
584 VerifyObjectField(kDebugInfoOffset); 581 VerifyObjectField(kDebugInfoOffset);
585 } 582 }
586 583
587 584
588 void JSGlobalProxy::JSGlobalProxyPrint() { 585 void JSGlobalProxy::JSGlobalProxyPrint() {
589 PrintF("global_proxy"); 586 PrintF("global_proxy");
590 JSObjectPrint(); 587 JSObjectPrint();
591 PrintF("context : "); 588 PrintF("context : ");
592 context()->ShortPrint(); 589 context()->ShortPrint();
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
1089 } 1086 }
1090 current = hash; 1087 current = hash;
1091 } 1088 }
1092 return true; 1089 return true;
1093 } 1090 }
1094 1091
1095 1092
1096 #endif // DEBUG 1093 #endif // DEBUG
1097 1094
1098 } } // namespace v8::internal 1095 } } // namespace v8::internal
OLDNEW
« src/objects.h ('K') | « src/objects.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698