Index: src/ia32/lithium-codegen-ia32.cc |
diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc |
index bbecdcc9f7f86f0f0fa69c1469d19e7dfc9ecd33..b91022aeaa764e43bb3beb9eb020d826b80bb1a9 100644 |
--- a/src/ia32/lithium-codegen-ia32.cc |
+++ b/src/ia32/lithium-codegen-ia32.cc |
@@ -2690,8 +2690,7 @@ void LCodeGen::DoInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr) { |
Register map = ToRegister(instr->temp()); |
__ mov(map, FieldOperand(object, HeapObject::kMapOffset)); |
__ bind(deferred->map_check()); // Label for calculating code patching. |
- Handle<JSGlobalPropertyCell> cache_cell = |
- factory()->NewJSGlobalPropertyCell(factory()->the_hole_value()); |
+ Handle<Cell> cache_cell = factory()->NewCell(factory()->the_hole_value()); |
__ cmp(map, Operand::Cell(cache_cell)); // Patched to cached map. |
__ j(not_equal, &cache_miss, Label::kNear); |
__ mov(eax, factory()->the_hole_value()); // Patched to either true or false. |
@@ -5758,8 +5757,7 @@ void LCodeGen::DoCheckFunction(LCheckFunction* instr) { |
Handle<JSFunction> target = instr->hydrogen()->target(); |
if (instr->hydrogen()->target_in_new_space()) { |
Register reg = ToRegister(instr->value()); |
- Handle<JSGlobalPropertyCell> cell = |
- isolate()->factory()->NewJSGlobalPropertyCell(target); |
+ Handle<Cell> cell = isolate()->factory()->NewCell(target); |
__ cmp(reg, Operand::Cell(cell)); |
} else { |
Operand operand = ToOperand(instr->value()); |