| Index: src/x64/stub-cache-x64.cc
|
| diff --git a/src/x64/stub-cache-x64.cc b/src/x64/stub-cache-x64.cc
|
| index 6cee05c9d879f3b6a74bdb91948bd64770a9190f..5a81c897464524b9f1692363f8a6dfff99a8cb49 100644
|
| --- a/src/x64/stub-cache-x64.cc
|
| +++ b/src/x64/stub-cache-x64.cc
|
| @@ -2015,7 +2015,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 two-byte string or a symbol.
|
| __ CmpObjectType(rdx, FIRST_NONSTRING_TYPE, rax);
|
| __ j(above_equal, &miss);
|
| @@ -2033,7 +2033,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(rdx, &fast);
|
| @@ -2054,7 +2054,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.
|
| __ CompareRoot(rdx, Heap::kTrueValueRootIndex);
|
|
|