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/ic/handler-compiler.h" | 5 #include "src/ic/handler-compiler.h" |
6 | 6 |
7 #include "src/field-type.h" | 7 #include "src/field-type.h" |
8 #include "src/ic/call-optimization.h" | 8 #include "src/ic/call-optimization.h" |
9 #include "src/ic/ic-inl.h" | 9 #include "src/ic/ic-inl.h" |
10 #include "src/ic/ic.h" | 10 #include "src/ic/ic.h" |
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 !receiver_map->GetIndexedInterceptor()->non_masking()) { | 608 !receiver_map->GetIndexedInterceptor()->non_masking()) { |
609 cached_stub = LoadIndexedInterceptorStub(isolate()).GetCode(); | 609 cached_stub = LoadIndexedInterceptorStub(isolate()).GetCode(); |
610 } else if (IsSloppyArgumentsElements(elements_kind)) { | 610 } else if (IsSloppyArgumentsElements(elements_kind)) { |
611 cached_stub = KeyedLoadSloppyArgumentsStub(isolate()).GetCode(); | 611 cached_stub = KeyedLoadSloppyArgumentsStub(isolate()).GetCode(); |
612 } else if (IsFastElementsKind(elements_kind) || | 612 } else if (IsFastElementsKind(elements_kind) || |
613 IsFixedTypedArrayElementsKind(elements_kind)) { | 613 IsFixedTypedArrayElementsKind(elements_kind)) { |
614 cached_stub = LoadFastElementStub(isolate(), is_js_array, elements_kind, | 614 cached_stub = LoadFastElementStub(isolate(), is_js_array, elements_kind, |
615 convert_hole_to_undefined).GetCode(); | 615 convert_hole_to_undefined).GetCode(); |
616 } else { | 616 } else { |
617 DCHECK(elements_kind == DICTIONARY_ELEMENTS); | 617 DCHECK(elements_kind == DICTIONARY_ELEMENTS); |
618 LoadICState state = LoadICState(kNoExtraICState); | 618 cached_stub = LoadDictionaryElementStub(isolate()).GetCode(); |
619 cached_stub = LoadDictionaryElementStub(isolate(), state).GetCode(); | |
620 } | 619 } |
621 } | 620 } |
622 | 621 |
623 handlers->Add(cached_stub); | 622 handlers->Add(cached_stub); |
624 } | 623 } |
625 } | 624 } |
626 } // namespace internal | 625 } // namespace internal |
627 } // namespace v8 | 626 } // namespace v8 |
OLD | NEW |