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

Side by Side Diff: src/objects.cc

Issue 2645313003: [async-iteration] implement Async-from-Sync Iterator (Closed)
Patch Set: cleanmerge Created 3 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.h ('k') | src/objects-body-descriptors-inl.h » ('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 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 12530 matching lines...) Expand 10 before | Expand all | Expand 10 after
12541 12541
12542 12542
12543 #ifdef DEBUG 12543 #ifdef DEBUG
12544 namespace { 12544 namespace {
12545 12545
12546 bool CanSubclassHaveInobjectProperties(InstanceType instance_type) { 12546 bool CanSubclassHaveInobjectProperties(InstanceType instance_type) {
12547 switch (instance_type) { 12547 switch (instance_type) {
12548 case JS_API_OBJECT_TYPE: 12548 case JS_API_OBJECT_TYPE:
12549 case JS_ARRAY_BUFFER_TYPE: 12549 case JS_ARRAY_BUFFER_TYPE:
12550 case JS_ARRAY_TYPE: 12550 case JS_ARRAY_TYPE:
12551 case JS_ASYNC_FROM_SYNC_ITERATOR_TYPE:
12551 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: 12552 case JS_CONTEXT_EXTENSION_OBJECT_TYPE:
12552 case JS_DATA_VIEW_TYPE: 12553 case JS_DATA_VIEW_TYPE:
12553 case JS_DATE_TYPE: 12554 case JS_DATE_TYPE:
12554 case JS_FUNCTION_TYPE: 12555 case JS_FUNCTION_TYPE:
12555 case JS_GENERATOR_OBJECT_TYPE: 12556 case JS_GENERATOR_OBJECT_TYPE:
12556 case JS_MAP_ITERATOR_TYPE: 12557 case JS_MAP_ITERATOR_TYPE:
12557 case JS_MAP_TYPE: 12558 case JS_MAP_TYPE:
12558 case JS_MESSAGE_OBJECT_TYPE: 12559 case JS_MESSAGE_OBJECT_TYPE:
12559 case JS_OBJECT_TYPE: 12560 case JS_OBJECT_TYPE:
12560 case JS_ERROR_TYPE: 12561 case JS_ERROR_TYPE:
(...skipping 7553 matching lines...) Expand 10 before | Expand all | Expand 10 after
20114 // depend on this. 20115 // depend on this.
20115 return DICTIONARY_ELEMENTS; 20116 return DICTIONARY_ELEMENTS;
20116 } 20117 }
20117 DCHECK_LE(kind, LAST_ELEMENTS_KIND); 20118 DCHECK_LE(kind, LAST_ELEMENTS_KIND);
20118 return kind; 20119 return kind;
20119 } 20120 }
20120 } 20121 }
20121 20122
20122 } // namespace internal 20123 } // namespace internal
20123 } // namespace v8 20124 } // namespace v8
OLDNEW
« no previous file with comments | « 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