Index: src/mips64/lithium-codegen-mips64.cc |
diff --git a/src/mips64/lithium-codegen-mips64.cc b/src/mips64/lithium-codegen-mips64.cc |
index 4d8d6afdf8e57bd2e13e27b782f6890a2e8b1387..ab0d8c7c78fa4aa07e32b4add3eced73b381860e 100644 |
--- a/src/mips64/lithium-codegen-mips64.cc |
+++ b/src/mips64/lithium-codegen-mips64.cc |
@@ -2577,7 +2577,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); |
@@ -2606,7 +2606,7 @@ void LCodeGen::EmitClassOfTest(Label* is_true, |
// Objects with a non-function constructor have class 'Object'. |
__ GetObjectType(temp, temp2, temp2); |
- if (class_name->IsOneByteEqualTo(STATIC_ASCII_VECTOR("Object"))) { |
+ if (String::Equals(class_name, isolate()->factory()->Object_string())) { |
__ Branch(is_true, ne, temp2, Operand(JS_FUNCTION_TYPE)); |
} else { |
__ Branch(is_false, ne, temp2, Operand(JS_FUNCTION_TYPE)); |