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

Side by Side Diff: src/ic/handler-compiler.cc

Issue 2065373003: [ic] LoadICState cleanup. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@cleanup-load-global-ic
Patch Set: Rebasing Created 4 years, 6 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/ia32/code-stubs-ia32.cc ('k') | src/ic/ic.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 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
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
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ic/ic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698