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

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

Issue 1415683007: Reland "[es6] Fix Function and GeneratorFunction built-ins subclassing." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@fix-subclass
Patch Set: Improved test 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 849 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 } 860 }
861 861
862 862
863 void JSFunction::JSFunctionPrint(std::ostream& os) { // NOLINT 863 void JSFunction::JSFunctionPrint(std::ostream& os) { // NOLINT
864 HeapObject::PrintHeader(os, "Function"); 864 HeapObject::PrintHeader(os, "Function");
865 os << " - map = " << reinterpret_cast<void*>(map()) << "\n"; 865 os << " - map = " << reinterpret_cast<void*>(map()) << "\n";
866 os << " - initial_map = "; 866 os << " - initial_map = ";
867 if (has_initial_map()) os << Brief(initial_map()); 867 if (has_initial_map()) os << Brief(initial_map());
868 os << "\n - shared_info = " << Brief(shared()); 868 os << "\n - shared_info = " << Brief(shared());
869 os << "\n - name = " << Brief(shared()->name()); 869 os << "\n - name = " << Brief(shared()->name());
870 if (shared()->is_generator()) {
871 os << "\n - generator";
872 }
870 os << "\n - context = " << Brief(context()); 873 os << "\n - context = " << Brief(context());
871 if (shared()->bound()) { 874 if (shared()->bound()) {
872 os << "\n - bindings = " << Brief(function_bindings()); 875 os << "\n - bindings = " << Brief(function_bindings());
873 } else { 876 } else {
874 os << "\n - literals = " << Brief(literals()); 877 os << "\n - literals = " << Brief(literals());
875 } 878 }
876 os << "\n - code = " << Brief(code()); 879 os << "\n - code = " << Brief(code());
877 os << "\n"; 880 os << "\n";
878 PrintProperties(os); 881 PrintProperties(os);
879 PrintElements(os); 882 PrintElements(os);
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
1324 } 1327 }
1325 } 1328 }
1326 1329
1327 1330
1328 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT 1331 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1329 TransitionArray::PrintTransitions(os, map()->raw_transitions()); 1332 TransitionArray::PrintTransitions(os, map()->raw_transitions());
1330 } 1333 }
1331 #endif // defined(DEBUG) || defined(OBJECT_PRINT) 1334 #endif // defined(DEBUG) || defined(OBJECT_PRINT)
1332 } // namespace internal 1335 } // namespace internal
1333 } // namespace v8 1336 } // 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