Index: src/ia32/stub-cache-ia32.cc |
diff --git a/src/ia32/stub-cache-ia32.cc b/src/ia32/stub-cache-ia32.cc |
index 6b28fe61a680c15afb5ca5e612cb698a5430fec1..5ea6d851c1735af826215de16c8e9afd54bfd2b6 100644 |
--- a/src/ia32/stub-cache-ia32.cc |
+++ b/src/ia32/stub-cache-ia32.cc |
@@ -2169,7 +2169,7 @@ Handle<Code> CallStubCompiler::CompileCallConstant(Handle<Object> object, |
break; |
case STRING_CHECK: |
- if (function->IsBuiltin() || function->shared()->strict_mode()) { |
+ if (function->IsBuiltin() || !function->shared()->is_classic_mode()) { |
// Check that the object is a string or a symbol. |
__ CmpObjectType(edx, FIRST_NONSTRING_TYPE, eax); |
__ j(above_equal, &miss); |
@@ -2187,7 +2187,7 @@ Handle<Code> CallStubCompiler::CompileCallConstant(Handle<Object> object, |
break; |
case NUMBER_CHECK: |
- if (function->IsBuiltin() || function->shared()->strict_mode()) { |
+ if (function->IsBuiltin() || !function->shared()->is_classic_mode()) { |
Label fast; |
// Check that the object is a smi or a heap number. |
__ JumpIfSmi(edx, &fast); |
@@ -2208,7 +2208,7 @@ Handle<Code> CallStubCompiler::CompileCallConstant(Handle<Object> object, |
break; |
case BOOLEAN_CHECK: |
- if (function->IsBuiltin() || function->shared()->strict_mode()) { |
+ if (function->IsBuiltin() || !function->shared()->is_classic_mode()) { |
Label fast; |
// Check that the object is a boolean. |
__ cmp(edx, factory()->true_value()); |