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

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

Issue 2087823002: Optionally invoke an interceptor on failed access checks (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 4 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
« no previous file with comments | « src/objects-inl.h ('k') | test/cctest/BUILD.gn » ('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 "src/disasm.h" 7 #include "src/disasm.h"
8 #include "src/disassembler.h" 8 #include "src/disassembler.h"
9 #include "src/interpreter/bytecodes.h" 9 #include "src/interpreter/bytecodes.h"
10 #include "src/objects-inl.h" 10 #include "src/objects-inl.h"
(...skipping 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after
1035 HeapObject::PrintHeader(os, "AccessorPair"); 1035 HeapObject::PrintHeader(os, "AccessorPair");
1036 os << "\n - getter: " << Brief(getter()); 1036 os << "\n - getter: " << Brief(getter());
1037 os << "\n - setter: " << Brief(setter()); 1037 os << "\n - setter: " << Brief(setter());
1038 os << "\n"; 1038 os << "\n";
1039 } 1039 }
1040 1040
1041 1041
1042 void AccessCheckInfo::AccessCheckInfoPrint(std::ostream& os) { // NOLINT 1042 void AccessCheckInfo::AccessCheckInfoPrint(std::ostream& os) { // NOLINT
1043 HeapObject::PrintHeader(os, "AccessCheckInfo"); 1043 HeapObject::PrintHeader(os, "AccessCheckInfo");
1044 os << "\n - callback: " << Brief(callback()); 1044 os << "\n - callback: " << Brief(callback());
1045 os << "\n - named_interceptor: " << Brief(named_interceptor());
1046 os << "\n - indexed_interceptor: " << Brief(indexed_interceptor());
1045 os << "\n - data: " << Brief(data()); 1047 os << "\n - data: " << Brief(data());
1046 os << "\n"; 1048 os << "\n";
1047 } 1049 }
1048 1050
1049 1051
1050 void InterceptorInfo::InterceptorInfoPrint(std::ostream& os) { // NOLINT 1052 void InterceptorInfo::InterceptorInfoPrint(std::ostream& os) { // NOLINT
1051 HeapObject::PrintHeader(os, "InterceptorInfo"); 1053 HeapObject::PrintHeader(os, "InterceptorInfo");
1052 os << "\n - getter: " << Brief(getter()); 1054 os << "\n - getter: " << Brief(getter());
1053 os << "\n - setter: " << Brief(setter()); 1055 os << "\n - setter: " << Brief(setter());
1054 os << "\n - query: " << Brief(query()); 1056 os << "\n - query: " << Brief(query());
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
1344 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT 1346 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1345 Object* transitions = map()->raw_transitions(); 1347 Object* transitions = map()->raw_transitions();
1346 int num_transitions = TransitionArray::NumberOfTransitions(transitions); 1348 int num_transitions = TransitionArray::NumberOfTransitions(transitions);
1347 if (num_transitions == 0) return; 1349 if (num_transitions == 0) return;
1348 os << "\n - transitions"; 1350 os << "\n - transitions";
1349 TransitionArray::PrintTransitions(os, transitions, false); 1351 TransitionArray::PrintTransitions(os, transitions, false);
1350 } 1352 }
1351 #endif // defined(DEBUG) || defined(OBJECT_PRINT) 1353 #endif // defined(DEBUG) || defined(OBJECT_PRINT)
1352 } // namespace internal 1354 } // namespace internal
1353 } // namespace v8 1355 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | test/cctest/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698