| Index: src/ia32/stub-cache-ia32.cc
|
| diff --git a/src/ia32/stub-cache-ia32.cc b/src/ia32/stub-cache-ia32.cc
|
| index 3089a69473ff70da40104773507feee8d63bda23..1ec1e4b6210139188ced73a11cb361816ec8ccbb 100644
|
| --- a/src/ia32/stub-cache-ia32.cc
|
| +++ b/src/ia32/stub-cache-ia32.cc
|
| @@ -2173,7 +2173,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);
|
| @@ -2191,7 +2191,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);
|
| @@ -2212,7 +2212,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());
|
|
|