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

Unified Diff: src/builtins/builtins-array.cc

Issue 2207903002: [builtins] fix mapcheck in Array.includes fast-case when searching for String (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/mjsunit/es7/regress/regress-633883.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/builtins/builtins-array.cc
diff --git a/src/builtins/builtins-array.cc b/src/builtins/builtins-array.cc
index 888eaef280f821e723435327f1116e4203de86b5..479d08c583f4a302daa262290c4ae8fdcbe87e84 100644
--- a/src/builtins/builtins-array.cc
+++ b/src/builtins/builtins-array.cc
@@ -1517,7 +1517,7 @@ void Builtins::Generate_ArrayIncludes(CodeStubAssembler* assembler) {
assembler->LoadFixedArrayElement(elements, index_var.value());
assembler->GotoIf(assembler->WordIsSmi(element_k), &continue_loop);
assembler->GotoUnless(assembler->Int32LessThan(
- assembler->LoadMapInstanceType(element_k),
+ assembler->LoadInstanceType(element_k),
assembler->Int32Constant(FIRST_NONSTRING_TYPE)),
&continue_loop);
« no previous file with comments | « no previous file | test/mjsunit/es7/regress/regress-633883.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698