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

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

Issue 1254623002: Remove ExternalArray, derived types, and element kinds (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 5 years, 5 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
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 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 (is_js_array && elements_kind == FAST_HOLEY_ELEMENTS && 561 (is_js_array && elements_kind == FAST_HOLEY_ELEMENTS &&
562 *receiver_map == 562 *receiver_map ==
563 isolate()->get_initial_js_array_map(elements_kind)) && 563 isolate()->get_initial_js_array_map(elements_kind)) &&
564 !is_strong(language_mode); 564 !is_strong(language_mode);
565 565
566 if (receiver_map->has_indexed_interceptor()) { 566 if (receiver_map->has_indexed_interceptor()) {
567 cached_stub = LoadIndexedInterceptorStub(isolate()).GetCode(); 567 cached_stub = LoadIndexedInterceptorStub(isolate()).GetCode();
568 } else if (IsSloppyArgumentsElements(elements_kind)) { 568 } else if (IsSloppyArgumentsElements(elements_kind)) {
569 cached_stub = KeyedLoadSloppyArgumentsStub(isolate()).GetCode(); 569 cached_stub = KeyedLoadSloppyArgumentsStub(isolate()).GetCode();
570 } else if (IsFastElementsKind(elements_kind) || 570 } else if (IsFastElementsKind(elements_kind) ||
571 IsExternalArrayElementsKind(elements_kind) ||
572 IsFixedTypedArrayElementsKind(elements_kind)) { 571 IsFixedTypedArrayElementsKind(elements_kind)) {
573 cached_stub = LoadFastElementStub(isolate(), is_js_array, elements_kind, 572 cached_stub = LoadFastElementStub(isolate(), is_js_array, elements_kind,
574 convert_hole_to_undefined).GetCode(); 573 convert_hole_to_undefined).GetCode();
575 } else { 574 } else {
576 DCHECK(elements_kind == DICTIONARY_ELEMENTS); 575 DCHECK(elements_kind == DICTIONARY_ELEMENTS);
577 LoadICState state = 576 LoadICState state =
578 LoadICState(is_strong(language_mode) ? LoadICState::kStrongModeState 577 LoadICState(is_strong(language_mode) ? LoadICState::kStrongModeState
579 : kNoExtraICState); 578 : kNoExtraICState);
580 cached_stub = LoadDictionaryElementStub(isolate(), state).GetCode(); 579 cached_stub = LoadDictionaryElementStub(isolate(), state).GetCode();
581 } 580 }
582 } 581 }
583 582
584 handlers->Add(cached_stub); 583 handlers->Add(cached_stub);
585 } 584 }
586 } 585 }
587 } // namespace internal 586 } // namespace internal
588 } // namespace v8 587 } // namespace v8
OLDNEW
« src/heap/heap.cc ('K') | « 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