Index: src/ia32/full-codegen-ia32.cc |
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc |
index c77faaad80e06a31c8e10b326bcbeff1465e9fbb..fa6392fc425a2815b828bcfc39c28fc1f2d059ef 100644 |
--- a/src/ia32/full-codegen-ia32.cc |
+++ b/src/ia32/full-codegen-ia32.cc |
@@ -118,7 +118,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"); |
@@ -315,7 +315,7 @@ void FullCodeGenerator::ClearAccumulator() { |
void FullCodeGenerator::EmitProfilingCounterDecrement(int delta) { |
__ mov(ebx, Immediate(profiling_counter_)); |
- __ sub(FieldOperand(ebx, JSGlobalPropertyCell::kValueOffset), |
+ __ sub(FieldOperand(ebx, Cell::kValueOffset), |
Immediate(Smi::FromInt(delta))); |
} |
@@ -327,7 +327,7 @@ void FullCodeGenerator::EmitProfilingCounterReset() { |
reset_value = Smi::kMaxValue; |
} |
__ mov(ebx, Immediate(profiling_counter_)); |
- __ mov(FieldOperand(ebx, JSGlobalPropertyCell::kValueOffset), |
+ __ mov(FieldOperand(ebx, Cell::kValueOffset), |
Immediate(Smi::FromInt(reset_value))); |
} |
@@ -1105,14 +1105,12 @@ 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(ebx, cell); |
- __ mov(FieldOperand(ebx, JSGlobalPropertyCell::kValueOffset), |
+ __ mov(FieldOperand(ebx, Cell::kValueOffset), |
Immediate(Smi::FromInt(TypeFeedbackCells::kForInSlowCaseMarker))); |
__ mov(ebx, Immediate(Smi::FromInt(1))); // Smi indicates slow check |
@@ -2637,8 +2635,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); |
__ mov(ebx, cell); |
@@ -2822,8 +2819,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); |
__ mov(ebx, cell); |