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

Unified Diff: src/objects-printer.cc

Issue 2482913002: [ic] Resurrect access checks for primitive and global proxy receivers. (Closed)
Patch Set: Addressing comments Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ic/x87/handler-compiler-x87.cc ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-printer.cc
diff --git a/src/objects-printer.cc b/src/objects-printer.cc
index 7ba42e8715da8815d21102c93dbc568d96578cc3..e6b623ba5177bade9e4b228e892628c575d1cc75 100644
--- a/src/objects-printer.cc
+++ b/src/objects-printer.cc
@@ -1046,18 +1046,18 @@ void SharedFunctionInfo::SharedFunctionInfoPrint(std::ostream& os) { // NOLINT
void JSGlobalProxy::JSGlobalProxyPrint(std::ostream& os) { // NOLINT
- os << "global_proxy ";
- JSObjectPrint(os);
- os << "native context : " << Brief(native_context());
- os << "\n";
+ JSObjectPrintHeader(os, this, "JSGlobalProxy");
+ os << "\n - native context = " << Brief(native_context());
+ os << "\n - hash = " << Brief(hash());
+ JSObjectPrintBody(os, this);
}
void JSGlobalObject::JSGlobalObjectPrint(std::ostream& os) { // NOLINT
- os << "global ";
- JSObjectPrint(os);
- os << "native context : " << Brief(native_context());
- os << "\n";
+ JSObjectPrintHeader(os, this, "JSGlobalObject");
+ os << "\n - native context = " << Brief(native_context());
+ os << "\n - global proxy = " << Brief(global_proxy());
+ JSObjectPrintBody(os, this);
}
« no previous file with comments | « src/ic/x87/handler-compiler-x87.cc ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698