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

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

Issue 1257223002: Revert of Remove ExternalArray, derived types, and element kinds (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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/lithium-ia32.cc ('k') | src/ic/ic.cc » ('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/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
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
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/ic/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698