| 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) || | |
| 581 IsFixedTypedArrayElementsKind(elements_kind)) { | 580 IsFixedTypedArrayElementsKind(elements_kind)) { |
| 582 cached_stub = LoadFastElementStub(isolate(), is_js_array, elements_kind, | 581 cached_stub = LoadFastElementStub(isolate(), is_js_array, elements_kind, |
| 583 convert_hole_to_undefined).GetCode(); | 582 convert_hole_to_undefined).GetCode(); |
| 584 } else { | 583 } else { |
| 585 DCHECK(elements_kind == DICTIONARY_ELEMENTS); | 584 DCHECK(elements_kind == DICTIONARY_ELEMENTS); |
| 586 LoadICState state = | 585 LoadICState state = |
| 587 LoadICState(is_strong(language_mode) ? LoadICState::kStrongModeState | 586 LoadICState(is_strong(language_mode) ? LoadICState::kStrongModeState |
| 588 : kNoExtraICState); | 587 : kNoExtraICState); |
| 589 cached_stub = LoadDictionaryElementStub(isolate(), state).GetCode(); | 588 cached_stub = LoadDictionaryElementStub(isolate(), state).GetCode(); |
| 590 } | 589 } |
| 591 } | 590 } |
| 592 | 591 |
| 593 handlers->Add(cached_stub); | 592 handlers->Add(cached_stub); |
| 594 } | 593 } |
| 595 } | 594 } |
| 596 } // namespace internal | 595 } // namespace internal |
| 597 } // namespace v8 | 596 } // namespace v8 |
| OLD | NEW |