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

Side by Side Diff: src/objects.cc

Issue 2645313003: [async-iteration] implement Async-from-Sync Iterator (Closed)
Patch Set: more stuff Created 3 years, 10 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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 <cmath> 7 #include <cmath>
8 #include <iomanip> 8 #include <iomanip>
9 #include <memory> 9 #include <memory>
10 #include <sstream> 10 #include <sstream>
(...skipping 12497 matching lines...) Expand 10 before | Expand all | Expand 10 after
12508 12508
12509 12509
12510 #ifdef DEBUG 12510 #ifdef DEBUG
12511 namespace { 12511 namespace {
12512 12512
12513 bool CanSubclassHaveInobjectProperties(InstanceType instance_type) { 12513 bool CanSubclassHaveInobjectProperties(InstanceType instance_type) {
12514 switch (instance_type) { 12514 switch (instance_type) {
12515 case JS_API_OBJECT_TYPE: 12515 case JS_API_OBJECT_TYPE:
12516 case JS_ARRAY_BUFFER_TYPE: 12516 case JS_ARRAY_BUFFER_TYPE:
12517 case JS_ARRAY_TYPE: 12517 case JS_ARRAY_TYPE:
12518 case JS_ASYNC_FROM_SYNC_ITERATOR_TYPE:
12518 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: 12519 case JS_CONTEXT_EXTENSION_OBJECT_TYPE:
12519 case JS_DATA_VIEW_TYPE: 12520 case JS_DATA_VIEW_TYPE:
12520 case JS_DATE_TYPE: 12521 case JS_DATE_TYPE:
12521 case JS_FUNCTION_TYPE: 12522 case JS_FUNCTION_TYPE:
12522 case JS_GENERATOR_OBJECT_TYPE: 12523 case JS_GENERATOR_OBJECT_TYPE:
12523 case JS_MAP_ITERATOR_TYPE: 12524 case JS_MAP_ITERATOR_TYPE:
12524 case JS_MAP_TYPE: 12525 case JS_MAP_TYPE:
12525 case JS_MESSAGE_OBJECT_TYPE: 12526 case JS_MESSAGE_OBJECT_TYPE:
12526 case JS_OBJECT_TYPE: 12527 case JS_OBJECT_TYPE:
12527 case JS_ERROR_TYPE: 12528 case JS_ERROR_TYPE:
(...skipping 7553 matching lines...) Expand 10 before | Expand all | Expand 10 after
20081 // depend on this. 20082 // depend on this.
20082 return DICTIONARY_ELEMENTS; 20083 return DICTIONARY_ELEMENTS;
20083 } 20084 }
20084 DCHECK_LE(kind, LAST_ELEMENTS_KIND); 20085 DCHECK_LE(kind, LAST_ELEMENTS_KIND);
20085 return kind; 20086 return kind;
20086 } 20087 }
20087 } 20088 }
20088 20089
20089 } // namespace internal 20090 } // namespace internal
20090 } // namespace v8 20091 } // namespace v8
OLDNEW
« src/objects.h ('K') | « src/objects.h ('k') | src/objects-body-descriptors-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698