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

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

Issue 1406113007: Merge GlobalObject with JSGlobalObject. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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/objects-inl.h ('k') | src/ppc/builtins-ppc.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 "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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 break; 290 break;
291 } 291 }
292 case DATA_CONSTANT: 292 case DATA_CONSTANT:
293 os << Brief(descs->GetConstant(i)) << " (data constant)\n"; 293 os << Brief(descs->GetConstant(i)) << " (data constant)\n";
294 break; 294 break;
295 case ACCESSOR_CONSTANT: 295 case ACCESSOR_CONSTANT:
296 os << Brief(descs->GetCallbacksObject(i)) << " (accessor constant)\n"; 296 os << Brief(descs->GetCallbacksObject(i)) << " (accessor constant)\n";
297 break; 297 break;
298 } 298 }
299 } 299 }
300 } else if (IsGlobalObject()) { 300 } else if (IsJSGlobalObject()) {
301 global_dictionary()->Print(os); 301 global_dictionary()->Print(os);
302 } else { 302 } else {
303 property_dictionary()->Print(os); 303 property_dictionary()->Print(os);
304 } 304 }
305 } 305 }
306 306
307 307
308 template <class T> 308 template <class T>
309 static void DoPrintElements(std::ostream& os, Object* object) { // NOLINT 309 static void DoPrintElements(std::ostream& os, Object* object) { // NOLINT
310 T* p = T::cast(object); 310 T* p = T::cast(object);
(...skipping 1013 matching lines...) Expand 10 before | Expand all | Expand 10 after
1324 } 1324 }
1325 } 1325 }
1326 1326
1327 1327
1328 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT 1328 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1329 TransitionArray::PrintTransitions(os, map()->raw_transitions()); 1329 TransitionArray::PrintTransitions(os, map()->raw_transitions());
1330 } 1330 }
1331 #endif // defined(DEBUG) || defined(OBJECT_PRINT) 1331 #endif // defined(DEBUG) || defined(OBJECT_PRINT)
1332 } // namespace internal 1332 } // namespace internal
1333 } // namespace v8 1333 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/ppc/builtins-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698