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

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

Issue 1510753005: Fix Function subclassing. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressing comments Created 5 years 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
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 1271 matching lines...) Expand 10 before | Expand all | Expand 10 after
1282 Heap* heap = key->GetHeap(); 1282 Heap* heap = key->GetHeap();
1283 if (key == heap->nonextensible_symbol()) { 1283 if (key == heap->nonextensible_symbol()) {
1284 os << "(transition to non-extensible)"; 1284 os << "(transition to non-extensible)";
1285 } else if (key == heap->sealed_symbol()) { 1285 } else if (key == heap->sealed_symbol()) {
1286 os << "(transition to sealed)"; 1286 os << "(transition to sealed)";
1287 } else if (key == heap->frozen_symbol()) { 1287 } else if (key == heap->frozen_symbol()) {
1288 os << "(transition to frozen)"; 1288 os << "(transition to frozen)";
1289 } else if (key == heap->elements_transition_symbol()) { 1289 } else if (key == heap->elements_transition_symbol()) {
1290 os << "(transition to " << ElementsKindToString(target->elements_kind()) 1290 os << "(transition to " << ElementsKindToString(target->elements_kind())
1291 << ")"; 1291 << ")";
1292 } else if (key == heap->strict_function_transition_symbol()) {
1293 os << " (transition to strict function)";
1294 } else if (key == heap->strong_function_transition_symbol()) {
1295 os << " (transition to strong function)";
1292 } else if (key == heap->observed_symbol()) { 1296 } else if (key == heap->observed_symbol()) {
1293 os << " (transition to Object.observe)"; 1297 os << " (transition to Object.observe)";
1294 } else { 1298 } else {
1295 PropertyDetails details = GetTargetDetails(key, target); 1299 PropertyDetails details = GetTargetDetails(key, target);
1296 os << "(transition to "; 1300 os << "(transition to ";
1297 if (details.location() == kDescriptor) { 1301 if (details.location() == kDescriptor) {
1298 os << "immutable "; 1302 os << "immutable ";
1299 } 1303 }
1300 os << (details.kind() == kData ? "data" : "accessor"); 1304 os << (details.kind() == kData ? "data" : "accessor");
1301 if (details.location() == kDescriptor) { 1305 if (details.location() == kDescriptor) {
(...skipping 11 matching lines...) Expand all
1313 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT 1317 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1314 Object* transitions = map()->raw_transitions(); 1318 Object* transitions = map()->raw_transitions();
1315 int num_transitions = TransitionArray::NumberOfTransitions(transitions); 1319 int num_transitions = TransitionArray::NumberOfTransitions(transitions);
1316 if (num_transitions == 0) return; 1320 if (num_transitions == 0) return;
1317 os << "\n - transitions"; 1321 os << "\n - transitions";
1318 TransitionArray::PrintTransitions(os, transitions, false); 1322 TransitionArray::PrintTransitions(os, transitions, false);
1319 } 1323 }
1320 #endif // defined(DEBUG) || defined(OBJECT_PRINT) 1324 #endif // defined(DEBUG) || defined(OBJECT_PRINT)
1321 } // namespace internal 1325 } // namespace internal
1322 } // namespace v8 1326 } // namespace v8
OLDNEW
« src/objects.cc ('K') | « src/objects.cc ('k') | src/runtime/runtime-function.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698