Index: src/ia32/deoptimizer-ia32.cc |
diff --git a/src/ia32/deoptimizer-ia32.cc b/src/ia32/deoptimizer-ia32.cc |
index 79a63766d24d9e98e38c913488513a32ee37eaba..6428daead886f0d794080100fbc085b53d43557a 100644 |
--- a/src/ia32/deoptimizer-ia32.cc |
+++ b/src/ia32/deoptimizer-ia32.cc |
@@ -190,15 +190,18 @@ void Deoptimizer::DeoptimizeFunction(JSFunction* function) { |
// The relocation info is in place, update the size. |
reloc_info->set_length(new_reloc_size); |
+ Isolate* isolate = code->GetIsolate(); |
Vitaly Repeshko
2011/03/25 12:57:51
Move this up and use the isolate in HandleScope if
Mads Ager (chromium)
2011/03/25 13:09:26
Done.
|
+ |
// Handle the junk part after the new relocation info. We will create |
// a non-live object in the extra space at the end of the former reloc info. |
Address junk_address = reloc_info->address() + reloc_info->Size(); |
ASSERT(junk_address <= reloc_end_address); |
- HEAP->CreateFillerObjectAt(junk_address, reloc_end_address - junk_address); |
+ isolate->heap()->CreateFillerObjectAt(junk_address, |
+ reloc_end_address - junk_address); |
// Add the deoptimizing code to the list. |
DeoptimizingCodeListNode* node = new DeoptimizingCodeListNode(code); |
- DeoptimizerData* data = code->GetIsolate()->deoptimizer_data(); |
+ DeoptimizerData* data = isolate->deoptimizer_data(); |
node->set_next(data->deoptimizing_code_list_); |
data->deoptimizing_code_list_ = node; |