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

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

Issue 1413723008: Revert of [es6] Fix Function and GeneratorFunction built-ins subclassing. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@subclass
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/js/v8natives.js ('k') | src/runtime/runtime.h » ('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 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 } 863 }
864 864
865 865
866 void JSFunction::JSFunctionPrint(std::ostream& os) { // NOLINT 866 void JSFunction::JSFunctionPrint(std::ostream& os) { // NOLINT
867 HeapObject::PrintHeader(os, "Function"); 867 HeapObject::PrintHeader(os, "Function");
868 os << " - map = " << reinterpret_cast<void*>(map()) << "\n"; 868 os << " - map = " << reinterpret_cast<void*>(map()) << "\n";
869 os << " - initial_map = "; 869 os << " - initial_map = ";
870 if (has_initial_map()) os << Brief(initial_map()); 870 if (has_initial_map()) os << Brief(initial_map());
871 os << "\n - shared_info = " << Brief(shared()); 871 os << "\n - shared_info = " << Brief(shared());
872 os << "\n - name = " << Brief(shared()->name()); 872 os << "\n - name = " << Brief(shared()->name());
873 if (shared()->is_generator()) {
874 os << "\n - generator";
875 }
876 os << "\n - context = " << Brief(context()); 873 os << "\n - context = " << Brief(context());
877 if (shared()->bound()) { 874 if (shared()->bound()) {
878 os << "\n - bindings = " << Brief(function_bindings()); 875 os << "\n - bindings = " << Brief(function_bindings());
879 } else { 876 } else {
880 os << "\n - literals = " << Brief(literals()); 877 os << "\n - literals = " << Brief(literals());
881 } 878 }
882 os << "\n - code = " << Brief(code()); 879 os << "\n - code = " << Brief(code());
883 os << "\n"; 880 os << "\n";
884 PrintProperties(os); 881 PrintProperties(os);
885 PrintElements(os); 882 PrintElements(os);
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
1336 } 1333 }
1337 } 1334 }
1338 1335
1339 1336
1340 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT 1337 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1341 TransitionArray::PrintTransitions(os, map()->raw_transitions()); 1338 TransitionArray::PrintTransitions(os, map()->raw_transitions());
1342 } 1339 }
1343 #endif // defined(DEBUG) || defined(OBJECT_PRINT) 1340 #endif // defined(DEBUG) || defined(OBJECT_PRINT)
1344 } // namespace internal 1341 } // namespace internal
1345 } // namespace v8 1342 } // namespace v8
OLDNEW
« no previous file with comments | « src/js/v8natives.js ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698