OLD | NEW |
---|---|
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 Loading... | |
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 |
caitp
2017/02/10 19:38:41
+leszeks@chromium.org << does this seem like a re
| |
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 |
OLD | NEW |