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

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

Issue 2578053003: [modules] Remove @@iterator on namespace objects. (Closed)
Patch Set: Skip out-of-date tests262 tests. Created 4 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
« no previous file with comments | « src/objects-inl.h ('k') | test/cctest/interpreter/bytecode_expectations/CallRuntime.golden » ('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 <iomanip> 7 #include <iomanip>
8 #include <memory> 8 #include <memory>
9 9
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 break; 228 break;
229 case WEAK_CELL_TYPE: 229 case WEAK_CELL_TYPE:
230 WeakCell::cast(this)->WeakCellPrint(os); 230 WeakCell::cast(this)->WeakCellPrint(os);
231 break; 231 break;
232 case JS_ARRAY_BUFFER_TYPE: 232 case JS_ARRAY_BUFFER_TYPE:
233 JSArrayBuffer::cast(this)->JSArrayBufferPrint(os); 233 JSArrayBuffer::cast(this)->JSArrayBufferPrint(os);
234 break; 234 break;
235 case JS_TYPED_ARRAY_TYPE: 235 case JS_TYPED_ARRAY_TYPE:
236 JSTypedArray::cast(this)->JSTypedArrayPrint(os); 236 JSTypedArray::cast(this)->JSTypedArrayPrint(os);
237 break; 237 break;
238 case JS_FIXED_ARRAY_ITERATOR_TYPE:
239 JSFixedArrayIterator::cast(this)->JSFixedArrayIteratorPrint(os);
240 break;
241 case JS_DATA_VIEW_TYPE: 238 case JS_DATA_VIEW_TYPE:
242 JSDataView::cast(this)->JSDataViewPrint(os); 239 JSDataView::cast(this)->JSDataViewPrint(os);
243 break; 240 break;
244 #define MAKE_STRUCT_CASE(NAME, Name, name) \ 241 #define MAKE_STRUCT_CASE(NAME, Name, name) \
245 case NAME##_TYPE: \ 242 case NAME##_TYPE: \
246 Name::cast(this)->Name##Print(os); \ 243 Name::cast(this)->Name##Print(os); \
247 break; 244 break;
248 STRUCT_LIST(MAKE_STRUCT_CASE) 245 STRUCT_LIST(MAKE_STRUCT_CASE)
249 #undef MAKE_STRUCT_CASE 246 #undef MAKE_STRUCT_CASE
250 247
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after
1006 type = "values"; 1003 type = "values";
1007 } 1004 }
1008 1005
1009 os << "\n - type = " << type; 1006 os << "\n - type = " << type;
1010 os << "\n - object = " << Brief(object()); 1007 os << "\n - object = " << Brief(object());
1011 os << "\n - index = " << Brief(index()); 1008 os << "\n - index = " << Brief(index());
1012 1009
1013 JSObjectPrintBody(os, this); 1010 JSObjectPrintBody(os, this);
1014 } 1011 }
1015 1012
1016 void JSFixedArrayIterator::JSFixedArrayIteratorPrint(
1017 std::ostream& os) { // NOLINT
1018 JSObjectPrintHeader(os, this, "JSFixedArrayIterator");
1019 os << "\n - array = " << Brief(array());
1020 os << "\n - index = " << index();
1021 os << "\n - initial_next = " << Brief(initial_next());
1022 JSObjectPrintBody(os, this);
1023 }
1024
1025 void JSDataView::JSDataViewPrint(std::ostream& os) { // NOLINT 1013 void JSDataView::JSDataViewPrint(std::ostream& os) { // NOLINT
1026 JSObjectPrintHeader(os, this, "JSDataView"); 1014 JSObjectPrintHeader(os, this, "JSDataView");
1027 os << "\n - buffer =" << Brief(buffer()); 1015 os << "\n - buffer =" << Brief(buffer());
1028 os << "\n - byte_offset = " << Brief(byte_offset()); 1016 os << "\n - byte_offset = " << Brief(byte_offset());
1029 os << "\n - byte_length = " << Brief(byte_length()); 1017 os << "\n - byte_length = " << Brief(byte_length());
1030 if (WasNeutered()) os << "\n - neutered"; 1018 if (WasNeutered()) os << "\n - neutered";
1031 JSObjectPrintBody(os, this, !WasNeutered()); 1019 JSObjectPrintBody(os, this, !WasNeutered());
1032 } 1020 }
1033 1021
1034 1022
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
1684 printf("Not a transition array\n"); 1672 printf("Not a transition array\n");
1685 } else { 1673 } else {
1686 reinterpret_cast<i::TransitionArray*>(object)->Print(); 1674 reinterpret_cast<i::TransitionArray*>(object)->Print();
1687 } 1675 }
1688 } 1676 }
1689 1677
1690 extern void _v8_internal_Print_StackTrace() { 1678 extern void _v8_internal_Print_StackTrace() {
1691 i::Isolate* isolate = i::Isolate::Current(); 1679 i::Isolate* isolate = i::Isolate::Current();
1692 isolate->PrintStack(stdout); 1680 isolate->PrintStack(stdout);
1693 } 1681 }
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | test/cctest/interpreter/bytecode_expectations/CallRuntime.golden » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698