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

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

Issue 1165603002: Starting using GlobalDictionary for global objects instead of NameDictionary. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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') | src/runtime/runtime-object.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/v8.h" 5 #include "src/v8.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/heap/objects-visiting.h" 9 #include "src/heap/objects-visiting.h"
10 #include "src/jsregexp.h" 10 #include "src/jsregexp.h"
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 break; 248 break;
249 } 249 }
250 case DATA_CONSTANT: 250 case DATA_CONSTANT:
251 os << Brief(descs->GetConstant(i)) << " (data constant)\n"; 251 os << Brief(descs->GetConstant(i)) << " (data constant)\n";
252 break; 252 break;
253 case ACCESSOR_CONSTANT: 253 case ACCESSOR_CONSTANT:
254 os << Brief(descs->GetCallbacksObject(i)) << " (accessor constant)\n"; 254 os << Brief(descs->GetCallbacksObject(i)) << " (accessor constant)\n";
255 break; 255 break;
256 } 256 }
257 } 257 }
258 } else if (IsGlobalObject()) {
259 global_dictionary()->Print(os);
258 } else { 260 } else {
259 property_dictionary()->Print(os); 261 property_dictionary()->Print(os);
260 } 262 }
261 } 263 }
262 264
263 265
264 template <class T> 266 template <class T>
265 static void DoPrintElements(std::ostream& os, Object* object) { // NOLINT 267 static void DoPrintElements(std::ostream& os, Object* object) { // NOLINT
266 T* p = T::cast(object); 268 T* p = T::cast(object);
267 for (int i = 0; i < p->length(); i++) { 269 for (int i = 0; i < p->length(); i++) {
(...skipping 937 matching lines...) Expand 10 before | Expand all | Expand 10 after
1205 os << " -> " << Brief(target) << "\n"; 1207 os << " -> " << Brief(target) << "\n";
1206 } 1208 }
1207 } 1209 }
1208 1210
1209 1211
1210 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT 1212 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1211 TransitionArray::PrintTransitions(os, map()->raw_transitions()); 1213 TransitionArray::PrintTransitions(os, map()->raw_transitions());
1212 } 1214 }
1213 #endif // defined(DEBUG) || defined(OBJECT_PRINT) 1215 #endif // defined(DEBUG) || defined(OBJECT_PRINT)
1214 } } // namespace v8::internal 1216 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime/runtime-object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698