Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index 4457c2029734ccb3876b58052bbd0ae718d838fc..34674a64096514f8327bf8e6c3258f8969845b78 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -2578,7 +2578,7 @@ void LCodeGen::EmitClassOfTest(Label* is_true, |
__ JumpIfSmi(input, is_false); |
- if (class_name->IsOneByteEqualTo(STATIC_ASCII_VECTOR("Function"))) { |
+ if (String::Equals(isolate()->factory()->Function_string(), class_name)) { |
// Assuming the following assertions, we can use the same compares to test |
// for both being a function type and being in the object type range. |
STATIC_ASSERT(NUM_OF_CALLABLE_SPEC_OBJECT_TYPES == 2); |
@@ -2609,7 +2609,7 @@ void LCodeGen::EmitClassOfTest(Label* is_true, |
// Objects with a non-function constructor have class 'Object'. |
__ CmpObjectType(temp, JS_FUNCTION_TYPE, kScratchRegister); |
- if (class_name->IsOneByteEqualTo(STATIC_ASCII_VECTOR("Object"))) { |
+ if (String::Equals(class_name, isolate()->factory()->Object_string())) { |
__ j(not_equal, is_true); |
} else { |
__ j(not_equal, is_false); |