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

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

Issue 1069883002: WIP SharedArrayBuffer implementation (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: update MakeTypeError calls Created 5 years, 8 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/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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 case CELL_TYPE: 166 case CELL_TYPE:
167 Cell::cast(this)->CellPrint(os); 167 Cell::cast(this)->CellPrint(os);
168 break; 168 break;
169 case PROPERTY_CELL_TYPE: 169 case PROPERTY_CELL_TYPE:
170 PropertyCell::cast(this)->PropertyCellPrint(os); 170 PropertyCell::cast(this)->PropertyCellPrint(os);
171 break; 171 break;
172 case WEAK_CELL_TYPE: 172 case WEAK_CELL_TYPE:
173 WeakCell::cast(this)->WeakCellPrint(os); 173 WeakCell::cast(this)->WeakCellPrint(os);
174 break; 174 break;
175 case JS_ARRAY_BUFFER_TYPE: 175 case JS_ARRAY_BUFFER_TYPE:
176 case JS_SHARED_ARRAY_BUFFER_TYPE:
176 JSArrayBuffer::cast(this)->JSArrayBufferPrint(os); 177 JSArrayBuffer::cast(this)->JSArrayBufferPrint(os);
177 break; 178 break;
178 case JS_TYPED_ARRAY_TYPE: 179 case JS_TYPED_ARRAY_TYPE:
180 case JS_SHARED_TYPED_ARRAY_TYPE:
179 JSTypedArray::cast(this)->JSTypedArrayPrint(os); 181 JSTypedArray::cast(this)->JSTypedArrayPrint(os);
180 break; 182 break;
181 case JS_DATA_VIEW_TYPE: 183 case JS_DATA_VIEW_TYPE:
182 JSDataView::cast(this)->JSDataViewPrint(os); 184 JSDataView::cast(this)->JSDataViewPrint(os);
183 break; 185 break;
184 #define MAKE_STRUCT_CASE(NAME, Name, name) \ 186 #define MAKE_STRUCT_CASE(NAME, Name, name) \
185 case NAME##_TYPE: \ 187 case NAME##_TYPE: \
186 Name::cast(this)->Name##Print(os); \ 188 Name::cast(this)->Name##Print(os); \
187 break; 189 break;
188 STRUCT_LIST(MAKE_STRUCT_CASE) 190 STRUCT_LIST(MAKE_STRUCT_CASE)
(...skipping 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after
1201 os << " -> " << Brief(target) << "\n"; 1203 os << " -> " << Brief(target) << "\n";
1202 } 1204 }
1203 } 1205 }
1204 1206
1205 1207
1206 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT 1208 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1207 TransitionArray::PrintTransitions(os, map()->raw_transitions()); 1209 TransitionArray::PrintTransitions(os, map()->raw_transitions());
1208 } 1210 }
1209 #endif // defined(DEBUG) || defined(OBJECT_PRINT) 1211 #endif // defined(DEBUG) || defined(OBJECT_PRINT)
1210 } } // namespace v8::internal 1212 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698