| Index: src/mips/full-codegen-mips.cc
|
| diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc
|
| index 2a51b1c14aeb8d0010270b200e7c90c54795495a..a16e478afa882d4b9f0c5b0af26b1262d2a73b46 100644
|
| --- a/src/mips/full-codegen-mips.cc
|
| +++ b/src/mips/full-codegen-mips.cc
|
| @@ -138,7 +138,7 @@ void FullCodeGenerator::Generate() {
|
| CompilationInfo* info = info_;
|
| handler_table_ =
|
| isolate()->factory()->NewFixedArray(function()->handler_count(), TENURED);
|
| - profiling_counter_ = isolate()->factory()->NewJSGlobalPropertyCell(
|
| + profiling_counter_ = isolate()->factory()->NewCell(
|
| Handle<Smi>(Smi::FromInt(FLAG_interrupt_budget), isolate()));
|
| SetFunctionPosition(function());
|
| Comment cmnt(masm_, "[ function compiled by full code generator");
|
| @@ -326,9 +326,9 @@ void FullCodeGenerator::ClearAccumulator() {
|
|
|
| void FullCodeGenerator::EmitProfilingCounterDecrement(int delta) {
|
| __ li(a2, Operand(profiling_counter_));
|
| - __ lw(a3, FieldMemOperand(a2, JSGlobalPropertyCell::kValueOffset));
|
| + __ lw(a3, FieldMemOperand(a2, Cell::kValueOffset));
|
| __ Subu(a3, a3, Operand(Smi::FromInt(delta)));
|
| - __ sw(a3, FieldMemOperand(a2, JSGlobalPropertyCell::kValueOffset));
|
| + __ sw(a3, FieldMemOperand(a2, Cell::kValueOffset));
|
| }
|
|
|
|
|
| @@ -344,7 +344,7 @@ void FullCodeGenerator::EmitProfilingCounterReset() {
|
| }
|
| __ li(a2, Operand(profiling_counter_));
|
| __ li(a3, Operand(Smi::FromInt(reset_value)));
|
| - __ sw(a3, FieldMemOperand(a2, JSGlobalPropertyCell::kValueOffset));
|
| + __ sw(a3, FieldMemOperand(a2, Cell::kValueOffset));
|
| }
|
|
|
|
|
| @@ -1164,15 +1164,13 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) {
|
| Label non_proxy;
|
| __ bind(&fixed_array);
|
|
|
| - Handle<JSGlobalPropertyCell> cell =
|
| - isolate()->factory()->NewJSGlobalPropertyCell(
|
| - Handle<Object>(
|
| - Smi::FromInt(TypeFeedbackCells::kForInFastCaseMarker),
|
| - isolate()));
|
| + Handle<Cell> cell = isolate()->factory()->NewCell(
|
| + Handle<Object>(Smi::FromInt(TypeFeedbackCells::kForInFastCaseMarker),
|
| + isolate()));
|
| RecordTypeFeedbackCell(stmt->ForInFeedbackId(), cell);
|
| __ LoadHeapObject(a1, cell);
|
| __ li(a2, Operand(Smi::FromInt(TypeFeedbackCells::kForInSlowCaseMarker)));
|
| - __ sw(a2, FieldMemOperand(a1, JSGlobalPropertyCell::kValueOffset));
|
| + __ sw(a2, FieldMemOperand(a1, Cell::kValueOffset));
|
|
|
| __ li(a1, Operand(Smi::FromInt(1))); // Smi indicates slow check
|
| __ lw(a2, MemOperand(sp, 0 * kPointerSize)); // Get enumerated object
|
| @@ -2702,8 +2700,7 @@ void FullCodeGenerator::EmitCallWithStub(Call* expr, CallFunctionFlags flags) {
|
| flags = static_cast<CallFunctionFlags>(flags | RECORD_CALL_TARGET);
|
| Handle<Object> uninitialized =
|
| TypeFeedbackCells::UninitializedSentinel(isolate());
|
| - Handle<JSGlobalPropertyCell> cell =
|
| - isolate()->factory()->NewJSGlobalPropertyCell(uninitialized);
|
| + Handle<Cell> cell = isolate()->factory()->NewCell(uninitialized);
|
| RecordTypeFeedbackCell(expr->CallFeedbackId(), cell);
|
| __ li(a2, Operand(cell));
|
|
|
| @@ -2897,8 +2894,7 @@ void FullCodeGenerator::VisitCallNew(CallNew* expr) {
|
| // Record call targets in unoptimized code.
|
| Handle<Object> uninitialized =
|
| TypeFeedbackCells::UninitializedSentinel(isolate());
|
| - Handle<JSGlobalPropertyCell> cell =
|
| - isolate()->factory()->NewJSGlobalPropertyCell(uninitialized);
|
| + Handle<Cell> cell = isolate()->factory()->NewCell(uninitialized);
|
| RecordTypeFeedbackCell(expr->CallNewFeedbackId(), cell);
|
| __ li(a2, Operand(cell));
|
|
|
|
|