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

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

Issue 1995453002: [stubs] Extend HasProperty stub with dictionary-mode and double-elements objects support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebasing and cleanup Created 4 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
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 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 PRINT_ELEMENTS(INT16_ELEMENTS, FixedInt16Array) 373 PRINT_ELEMENTS(INT16_ELEMENTS, FixedInt16Array)
374 PRINT_ELEMENTS(UINT32_ELEMENTS, FixedUint32Array) 374 PRINT_ELEMENTS(UINT32_ELEMENTS, FixedUint32Array)
375 PRINT_ELEMENTS(INT32_ELEMENTS, FixedInt32Array) 375 PRINT_ELEMENTS(INT32_ELEMENTS, FixedInt32Array)
376 PRINT_ELEMENTS(FLOAT32_ELEMENTS, FixedFloat32Array) 376 PRINT_ELEMENTS(FLOAT32_ELEMENTS, FixedFloat32Array)
377 PRINT_ELEMENTS(FLOAT64_ELEMENTS, FixedFloat64Array) 377 PRINT_ELEMENTS(FLOAT64_ELEMENTS, FixedFloat64Array)
378 378
379 #undef PRINT_ELEMENTS 379 #undef PRINT_ELEMENTS
380 380
381 case DICTIONARY_ELEMENTS: 381 case DICTIONARY_ELEMENTS:
382 case SLOW_STRING_WRAPPER_ELEMENTS: 382 case SLOW_STRING_WRAPPER_ELEMENTS:
383 elements()->Print(os); 383 SeededNumberDictionary::cast(elements())->Print(os);
384 break; 384 break;
385 case FAST_SLOPPY_ARGUMENTS_ELEMENTS: 385 case FAST_SLOPPY_ARGUMENTS_ELEMENTS:
386 case SLOW_SLOPPY_ARGUMENTS_ELEMENTS: { 386 case SLOW_SLOPPY_ARGUMENTS_ELEMENTS: {
387 FixedArray* p = FixedArray::cast(elements()); 387 FixedArray* p = FixedArray::cast(elements());
388 os << "\n parameter map:"; 388 os << "\n parameter map:";
389 for (int i = 2; i < p->length(); i++) { 389 for (int i = 2; i < p->length(); i++) {
390 os << " " << (i - 2) << ":" << Brief(p->get(i)); 390 os << " " << (i - 2) << ":" << Brief(p->get(i));
391 } 391 }
392 os << "\n context: " << Brief(p->get(0)) 392 os << "\n context: " << Brief(p->get(0))
393 << "\n arguments: " << Brief(p->get(1)); 393 << "\n arguments: " << Brief(p->get(1));
(...skipping 945 matching lines...) Expand 10 before | Expand all | Expand 10 after
1339 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT 1339 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1340 Object* transitions = map()->raw_transitions(); 1340 Object* transitions = map()->raw_transitions();
1341 int num_transitions = TransitionArray::NumberOfTransitions(transitions); 1341 int num_transitions = TransitionArray::NumberOfTransitions(transitions);
1342 if (num_transitions == 0) return; 1342 if (num_transitions == 0) return;
1343 os << "\n - transitions"; 1343 os << "\n - transitions";
1344 TransitionArray::PrintTransitions(os, transitions, false); 1344 TransitionArray::PrintTransitions(os, transitions, false);
1345 } 1345 }
1346 #endif // defined(DEBUG) || defined(OBJECT_PRINT) 1346 #endif // defined(DEBUG) || defined(OBJECT_PRINT)
1347 } // namespace internal 1347 } // namespace internal
1348 } // namespace v8 1348 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/utils.cc » ('j') | test/cctest/test-code-stub-assembler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698