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

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

Issue 1765713003: Reland "Speed up the LookupIterator" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: wrap in assertThrows Created 4 years, 9 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/types.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/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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 Fixed##Type##Array::cast(this)->FixedTypedArrayPrint(os); \ 88 Fixed##Type##Array::cast(this)->FixedTypedArrayPrint(os); \
89 break; 89 break;
90 90
91 TYPED_ARRAYS(PRINT_FIXED_TYPED_ARRAY) 91 TYPED_ARRAYS(PRINT_FIXED_TYPED_ARRAY)
92 #undef PRINT_FIXED_TYPED_ARRAY 92 #undef PRINT_FIXED_TYPED_ARRAY
93 93
94 case FILLER_TYPE: 94 case FILLER_TYPE:
95 os << "filler"; 95 os << "filler";
96 break; 96 break;
97 case JS_OBJECT_TYPE: // fall through 97 case JS_OBJECT_TYPE: // fall through
98 case JS_SPECIAL_API_OBJECT_TYPE:
98 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: 99 case JS_CONTEXT_EXTENSION_OBJECT_TYPE:
99 case JS_ARRAY_TYPE: 100 case JS_ARRAY_TYPE:
100 case JS_GENERATOR_OBJECT_TYPE: 101 case JS_GENERATOR_OBJECT_TYPE:
101 case JS_PROMISE_TYPE: 102 case JS_PROMISE_TYPE:
102 JSObject::cast(this)->JSObjectPrint(os); 103 JSObject::cast(this)->JSObjectPrint(os);
103 break; 104 break;
104 case JS_REGEXP_TYPE: 105 case JS_REGEXP_TYPE:
105 JSRegExp::cast(this)->JSRegExpPrint(os); 106 JSRegExp::cast(this)->JSRegExpPrint(os);
106 break; 107 break;
107 case ODDBALL_TYPE: 108 case ODDBALL_TYPE:
(...skipping 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after
1322 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT 1323 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1323 Object* transitions = map()->raw_transitions(); 1324 Object* transitions = map()->raw_transitions();
1324 int num_transitions = TransitionArray::NumberOfTransitions(transitions); 1325 int num_transitions = TransitionArray::NumberOfTransitions(transitions);
1325 if (num_transitions == 0) return; 1326 if (num_transitions == 0) return;
1326 os << "\n - transitions"; 1327 os << "\n - transitions";
1327 TransitionArray::PrintTransitions(os, transitions, false); 1328 TransitionArray::PrintTransitions(os, transitions, false);
1328 } 1329 }
1329 #endif // defined(DEBUG) || defined(OBJECT_PRINT) 1330 #endif // defined(DEBUG) || defined(OBJECT_PRINT)
1330 } // namespace internal 1331 } // namespace internal
1331 } // namespace v8 1332 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698