OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/cpu-profiler.h" | 7 #include "src/cpu-profiler.h" |
8 #include "src/ic/call-optimization.h" | 8 #include "src/ic/call-optimization.h" |
9 #include "src/ic/handler-compiler.h" | 9 #include "src/ic/handler-compiler.h" |
10 #include "src/ic/ic.h" | 10 #include "src/ic/ic.h" |
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 (is_js_array && elements_kind == FAST_HOLEY_ELEMENTS && | 570 (is_js_array && elements_kind == FAST_HOLEY_ELEMENTS && |
571 *receiver_map == | 571 *receiver_map == |
572 isolate()->get_initial_js_array_map(elements_kind)) && | 572 isolate()->get_initial_js_array_map(elements_kind)) && |
573 !is_strong(language_mode); | 573 !is_strong(language_mode); |
574 | 574 |
575 if (receiver_map->has_indexed_interceptor()) { | 575 if (receiver_map->has_indexed_interceptor()) { |
576 cached_stub = LoadIndexedInterceptorStub(isolate()).GetCode(); | 576 cached_stub = LoadIndexedInterceptorStub(isolate()).GetCode(); |
577 } else if (IsSloppyArgumentsElements(elements_kind)) { | 577 } else if (IsSloppyArgumentsElements(elements_kind)) { |
578 cached_stub = KeyedLoadSloppyArgumentsStub(isolate()).GetCode(); | 578 cached_stub = KeyedLoadSloppyArgumentsStub(isolate()).GetCode(); |
579 } else if (IsFastElementsKind(elements_kind) || | 579 } else if (IsFastElementsKind(elements_kind) || |
| 580 IsExternalArrayElementsKind(elements_kind) || |
580 IsFixedTypedArrayElementsKind(elements_kind)) { | 581 IsFixedTypedArrayElementsKind(elements_kind)) { |
581 cached_stub = LoadFastElementStub(isolate(), is_js_array, elements_kind, | 582 cached_stub = LoadFastElementStub(isolate(), is_js_array, elements_kind, |
582 convert_hole_to_undefined).GetCode(); | 583 convert_hole_to_undefined).GetCode(); |
583 } else { | 584 } else { |
584 DCHECK(elements_kind == DICTIONARY_ELEMENTS); | 585 DCHECK(elements_kind == DICTIONARY_ELEMENTS); |
585 LoadICState state = | 586 LoadICState state = |
586 LoadICState(is_strong(language_mode) ? LoadICState::kStrongModeState | 587 LoadICState(is_strong(language_mode) ? LoadICState::kStrongModeState |
587 : kNoExtraICState); | 588 : kNoExtraICState); |
588 cached_stub = LoadDictionaryElementStub(isolate(), state).GetCode(); | 589 cached_stub = LoadDictionaryElementStub(isolate(), state).GetCode(); |
589 } | 590 } |
590 } | 591 } |
591 | 592 |
592 handlers->Add(cached_stub); | 593 handlers->Add(cached_stub); |
593 } | 594 } |
594 } | 595 } |
595 } // namespace internal | 596 } // namespace internal |
596 } // namespace v8 | 597 } // namespace v8 |
OLD | NEW |