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

Side by Side Diff: src/interpreter/constant-array-builder.cc

Issue 2637403008: [async-iteration] add support for for-await-of loops in Async Functions (Closed)
Patch Set: remove that comment 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
« no previous file with comments | « src/interpreter/constant-array-builder.h ('k') | src/messages.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/interpreter/constant-array-builder.h" 5 #include "src/interpreter/constant-array-builder.h"
6 6
7 #include <functional> 7 #include <functional>
8 #include <set> 8 #include <set>
9 9
10 #include "src/ast/ast-value-factory.h" 10 #include "src/ast/ast-value-factory.h"
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 return handle_; 312 return handle_;
313 case Tag::kSmi: 313 case Tag::kSmi:
314 return handle(smi_, isolate); 314 return handle(smi_, isolate);
315 case Tag::kRawString: 315 case Tag::kRawString:
316 return raw_string_->string(); 316 return raw_string_->string();
317 case Tag::kHeapNumber: 317 case Tag::kHeapNumber:
318 DCHECK(heap_number_->IsHeapNumber()); 318 DCHECK(heap_number_->IsHeapNumber());
319 return heap_number_->value(); 319 return heap_number_->value();
320 case Tag::kScope: 320 case Tag::kScope:
321 return scope_->scope_info(); 321 return scope_->scope_info();
322 case Tag::kIteratorSymbol: 322 #define ENTRY_LOOKUP(Name, name) \
323 return isolate->factory()->iterator_symbol(); 323 case Tag::k##Name: \
324 case Tag::kHomeObjectSymbol: 324 return isolate->factory()->name();
325 return isolate->factory()->home_object_symbol(); 325 SINGLETON_CONSTANT_ENTRY_TYPES(ENTRY_LOOKUP);
326 case Tag::kEmptyFixedArray: 326 #undef ENTRY_LOOKUP
327 return isolate->factory()->empty_fixed_array();
328 } 327 }
329 UNREACHABLE(); 328 UNREACHABLE();
330 return Handle<Object>::null(); 329 return Handle<Object>::null();
331 } 330 }
332 331
333 } // namespace interpreter 332 } // namespace interpreter
334 } // namespace internal 333 } // namespace internal
335 } // namespace v8 334 } // namespace v8
OLDNEW
« no previous file with comments | « src/interpreter/constant-array-builder.h ('k') | src/messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698