提交 977f8d78 编写于 作者: R rasbold

6709972: runThese failed with assert(false,"bad AD file")

Summary: guard AryEqNode construction with has_match_rule() test, set SpecialArraysEquals default off
Reviewed-by: kvn, never
上级 cf124abe
...@@ -823,6 +823,8 @@ bool LibraryCallKit::inline_string_compareTo() { ...@@ -823,6 +823,8 @@ bool LibraryCallKit::inline_string_compareTo() {
//------------------------------inline_array_equals---------------------------- //------------------------------inline_array_equals----------------------------
bool LibraryCallKit::inline_array_equals() { bool LibraryCallKit::inline_array_equals() {
if (!Matcher::has_match_rule(Op_AryEq)) return false;
_sp += 2; _sp += 2;
Node *argument2 = pop(); Node *argument2 = pop();
Node *argument1 = pop(); Node *argument1 = pop();
......
...@@ -460,7 +460,7 @@ class CommandLineFlags { ...@@ -460,7 +460,7 @@ class CommandLineFlags {
develop(bool, SpecialStringIndexOf, true, \ develop(bool, SpecialStringIndexOf, true, \
"special version of string indexOf") \ "special version of string indexOf") \
\ \
product(bool, SpecialArraysEquals, true, \ product(bool, SpecialArraysEquals, false, \
"special version of Arrays.equals(char[],char[])") \ "special version of Arrays.equals(char[],char[])") \
\ \
develop(bool, TraceCallFixup, false, \ develop(bool, TraceCallFixup, false, \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册