Index: src/ia32/lithium-codegen-ia32.cc |
diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc |
index 245dcdc482acc08992b5433f9c78f0d3cd667e3d..d216581ba79c42cd56d422bc195ed81efe9d0870 100644 |
--- a/src/ia32/lithium-codegen-ia32.cc |
+++ b/src/ia32/lithium-codegen-ia32.cc |
@@ -2536,7 +2536,7 @@ void LCodeGen::EmitClassOfTest(Label* is_true, |
DCHECK(!temp.is(temp2)); |
__ 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); |
@@ -2566,7 +2566,7 @@ void LCodeGen::EmitClassOfTest(Label* is_true, |
__ mov(temp, FieldOperand(temp, Map::kConstructorOffset)); |
// Objects with a non-function constructor have class 'Object'. |
__ CmpObjectType(temp, JS_FUNCTION_TYPE, temp2); |
- 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); |