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

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

Issue 7754015: Implement identity hashes for proxies. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed Michael's comments. Created 9 years, 3 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/runtime.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 buffer[length()] = 0; 580 buffer[length()] = 0;
581 return buffer; 581 return buffer;
582 } 582 }
583 583
584 584
585 void JSProxy::JSProxyPrint(FILE* out) { 585 void JSProxy::JSProxyPrint(FILE* out) {
586 HeapObject::PrintHeader(out, "JSProxy"); 586 HeapObject::PrintHeader(out, "JSProxy");
587 PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map())); 587 PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map()));
588 PrintF(out, " - handler = "); 588 PrintF(out, " - handler = ");
589 handler()->Print(out); 589 handler()->Print(out);
590 PrintF(out, " - hash = ");
591 hash()->Print(out);
590 PrintF(out, "\n"); 592 PrintF(out, "\n");
591 } 593 }
592 594
593 595
594 void JSFunctionProxy::JSFunctionProxyPrint(FILE* out) { 596 void JSFunctionProxy::JSFunctionProxyPrint(FILE* out) {
595 HeapObject::PrintHeader(out, "JSFunctionProxy"); 597 HeapObject::PrintHeader(out, "JSFunctionProxy");
596 PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map())); 598 PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map()));
597 PrintF(out, " - handler = "); 599 PrintF(out, " - handler = ");
598 handler()->Print(out); 600 handler()->Print(out);
599 PrintF(out, " - call_trap = "); 601 PrintF(out, " - call_trap = ");
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 desc.Print(out); 893 desc.Print(out);
892 } 894 }
893 PrintF(out, "\n"); 895 PrintF(out, "\n");
894 } 896 }
895 897
896 898
897 #endif // OBJECT_PRINT 899 #endif // OBJECT_PRINT
898 900
899 901
900 } } // namespace v8::internal 902 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698