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

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

Issue 1221713003: Distinguish slow from fast sloppy arguments (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « src/objects-inl.h ('k') | src/ppc/code-stubs-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/v8.h" 5 #include "src/v8.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/heap/objects-visiting.h" 9 #include "src/heap/objects-visiting.h"
10 #include "src/jsregexp.h" 10 #include "src/jsregexp.h"
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 PRINT_ELEMENTS(UINT32_ELEMENTS, FixedUint32Array) 333 PRINT_ELEMENTS(UINT32_ELEMENTS, FixedUint32Array)
334 PRINT_ELEMENTS(INT32_ELEMENTS, FixedInt32Array) 334 PRINT_ELEMENTS(INT32_ELEMENTS, FixedInt32Array)
335 PRINT_ELEMENTS(FLOAT32_ELEMENTS, FixedFloat32Array) 335 PRINT_ELEMENTS(FLOAT32_ELEMENTS, FixedFloat32Array)
336 PRINT_ELEMENTS(FLOAT64_ELEMENTS, FixedFloat64Array) 336 PRINT_ELEMENTS(FLOAT64_ELEMENTS, FixedFloat64Array)
337 337
338 #undef PRINT_ELEMENTS 338 #undef PRINT_ELEMENTS
339 339
340 case DICTIONARY_ELEMENTS: 340 case DICTIONARY_ELEMENTS:
341 elements()->Print(os); 341 elements()->Print(os);
342 break; 342 break;
343 case SLOPPY_ARGUMENTS_ELEMENTS: { 343 case FAST_SLOPPY_ARGUMENTS_ELEMENTS:
344 case SLOW_SLOPPY_ARGUMENTS_ELEMENTS: {
344 FixedArray* p = FixedArray::cast(elements()); 345 FixedArray* p = FixedArray::cast(elements());
345 os << " parameter map:"; 346 os << " parameter map:";
346 for (int i = 2; i < p->length(); i++) { 347 for (int i = 2; i < p->length(); i++) {
347 os << " " << (i - 2) << ":" << Brief(p->get(i)); 348 os << " " << (i - 2) << ":" << Brief(p->get(i));
348 } 349 }
349 os << "\n context: " << Brief(p->get(0)) 350 os << "\n context: " << Brief(p->get(0))
350 << "\n arguments: " << Brief(p->get(1)) << "\n"; 351 << "\n arguments: " << Brief(p->get(1)) << "\n";
351 break; 352 break;
352 } 353 }
353 } 354 }
(...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after
1172 } 1173 }
1173 } 1174 }
1174 1175
1175 1176
1176 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT 1177 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1177 TransitionArray::PrintTransitions(os, map()->raw_transitions()); 1178 TransitionArray::PrintTransitions(os, map()->raw_transitions());
1178 } 1179 }
1179 #endif // defined(DEBUG) || defined(OBJECT_PRINT) 1180 #endif // defined(DEBUG) || defined(OBJECT_PRINT)
1180 } // namespace internal 1181 } // namespace internal
1181 } // namespace v8 1182 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/ppc/code-stubs-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698