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

Side by Side Diff: src/objects.cc

Issue 2645313003: [async-iteration] implement Async-from-Sync Iterator (Closed)
Patch Set: attempt #3 to fix merge conflicts Created 3 years, 11 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 12716 matching lines...) Expand 10 before | Expand all | Expand 10 after
12727 12727
12728 12728
12729 #ifdef DEBUG 12729 #ifdef DEBUG
12730 namespace { 12730 namespace {
12731 12731
12732 bool CanSubclassHaveInobjectProperties(InstanceType instance_type) { 12732 bool CanSubclassHaveInobjectProperties(InstanceType instance_type) {
12733 switch (instance_type) { 12733 switch (instance_type) {
12734 case JS_API_OBJECT_TYPE: 12734 case JS_API_OBJECT_TYPE:
12735 case JS_ARRAY_BUFFER_TYPE: 12735 case JS_ARRAY_BUFFER_TYPE:
12736 case JS_ARRAY_TYPE: 12736 case JS_ARRAY_TYPE:
12737 case JS_ASYNC_FROM_SYNC_ITERATOR_TYPE:
12737 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: 12738 case JS_CONTEXT_EXTENSION_OBJECT_TYPE:
12738 case JS_DATA_VIEW_TYPE: 12739 case JS_DATA_VIEW_TYPE:
12739 case JS_DATE_TYPE: 12740 case JS_DATE_TYPE:
12740 case JS_FUNCTION_TYPE: 12741 case JS_FUNCTION_TYPE:
12741 case JS_GENERATOR_OBJECT_TYPE: 12742 case JS_GENERATOR_OBJECT_TYPE:
12742 case JS_MAP_ITERATOR_TYPE: 12743 case JS_MAP_ITERATOR_TYPE:
12743 case JS_MAP_TYPE: 12744 case JS_MAP_TYPE:
12744 case JS_MESSAGE_OBJECT_TYPE: 12745 case JS_MESSAGE_OBJECT_TYPE:
12745 case JS_OBJECT_TYPE: 12746 case JS_OBJECT_TYPE:
12746 case JS_ERROR_TYPE: 12747 case JS_ERROR_TYPE:
(...skipping 7319 matching lines...) Expand 10 before | Expand all | Expand 10 after
20066 // depend on this. 20067 // depend on this.
20067 return DICTIONARY_ELEMENTS; 20068 return DICTIONARY_ELEMENTS;
20068 } 20069 }
20069 DCHECK_LE(kind, LAST_ELEMENTS_KIND); 20070 DCHECK_LE(kind, LAST_ELEMENTS_KIND);
20070 return kind; 20071 return kind;
20071 } 20072 }
20072 } 20073 }
20073 20074
20074 } // namespace internal 20075 } // namespace internal
20075 } // namespace v8 20076 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698