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

Side by Side 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 unified diff | 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 »
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/objects.h" 5 #include "src/objects.h"
6 6
7 #include <iomanip> 7 #include <iomanip>
8 #include <memory> 8 #include <memory>
9 9
10 #include "src/disasm.h" 10 #include "src/disasm.h"
(...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after
1039 os << "\n - feedback_metadata = "; 1039 os << "\n - feedback_metadata = ";
1040 feedback_metadata()->TypeFeedbackMetadataPrint(os); 1040 feedback_metadata()->TypeFeedbackMetadataPrint(os);
1041 if (HasBytecodeArray()) { 1041 if (HasBytecodeArray()) {
1042 os << "\n - bytecode_array = " << bytecode_array(); 1042 os << "\n - bytecode_array = " << bytecode_array();
1043 } 1043 }
1044 os << "\n"; 1044 os << "\n";
1045 } 1045 }
1046 1046
1047 1047
1048 void JSGlobalProxy::JSGlobalProxyPrint(std::ostream& os) { // NOLINT 1048 void JSGlobalProxy::JSGlobalProxyPrint(std::ostream& os) { // NOLINT
1049 os << "global_proxy "; 1049 JSObjectPrintHeader(os, this, "JSGlobalProxy");
1050 JSObjectPrint(os); 1050 os << "\n - native context = " << Brief(native_context());
1051 os << "native context : " << Brief(native_context()); 1051 os << "\n - hash = " << Brief(hash());
1052 os << "\n"; 1052 JSObjectPrintBody(os, this);
1053 } 1053 }
1054 1054
1055 1055
1056 void JSGlobalObject::JSGlobalObjectPrint(std::ostream& os) { // NOLINT 1056 void JSGlobalObject::JSGlobalObjectPrint(std::ostream& os) { // NOLINT
1057 os << "global "; 1057 JSObjectPrintHeader(os, this, "JSGlobalObject");
1058 JSObjectPrint(os); 1058 os << "\n - native context = " << Brief(native_context());
1059 os << "native context : " << Brief(native_context()); 1059 os << "\n - global proxy = " << Brief(global_proxy());
1060 os << "\n"; 1060 JSObjectPrintBody(os, this);
1061 } 1061 }
1062 1062
1063 1063
1064 void Cell::CellPrint(std::ostream& os) { // NOLINT 1064 void Cell::CellPrint(std::ostream& os) { // NOLINT
1065 HeapObject::PrintHeader(os, "Cell"); 1065 HeapObject::PrintHeader(os, "Cell");
1066 os << "\n - value: " << Brief(value()); 1066 os << "\n - value: " << Brief(value());
1067 os << "\n"; 1067 os << "\n";
1068 } 1068 }
1069 1069
1070 1070
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
1595 printf("Not a transition array\n"); 1595 printf("Not a transition array\n");
1596 } else { 1596 } else {
1597 reinterpret_cast<i::TransitionArray*>(object)->Print(); 1597 reinterpret_cast<i::TransitionArray*>(object)->Print();
1598 } 1598 }
1599 } 1599 }
1600 1600
1601 extern void _v8_internal_Print_StackTrace() { 1601 extern void _v8_internal_Print_StackTrace() {
1602 i::Isolate* isolate = i::Isolate::Current(); 1602 i::Isolate* isolate = i::Isolate::Current();
1603 isolate->PrintStack(stdout); 1603 isolate->PrintStack(stdout);
1604 } 1604 }
OLDNEW
« 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