Index: src/ia32/codegen-ia32.cc |
=================================================================== |
--- src/ia32/codegen-ia32.cc (revision 4906) |
+++ src/ia32/codegen-ia32.cc (working copy) |
@@ -4432,7 +4432,7 @@ |
function_return_is_shadowed_ = function_return_was_shadowed; |
// Get an external reference to the handler address. |
- ExternalReference handler_address(Top::k_handler_address); |
+ ExternalReference handler_address(Isolate::k_handler_address); |
// Make sure that there's nothing left on the stack above the |
// handler structure. |
@@ -4558,7 +4558,7 @@ |
function_return_is_shadowed_ = function_return_was_shadowed; |
// Get an external reference to the handler address. |
- ExternalReference handler_address(Top::k_handler_address); |
+ ExternalReference handler_address(Isolate::k_handler_address); |
// If we can fall off the end of the try block, unlink from the try |
// chain and set the state on the frame to FALLING. |
@@ -6988,7 +6988,7 @@ |
int cache_id = Smi::cast(*(args->at(0)->AsLiteral()->handle()))->value(); |
Handle<FixedArray> jsfunction_result_caches( |
- Top::global_context()->jsfunction_result_caches()); |
+ Isolate::Current()->global_context()->jsfunction_result_caches()); |
if (jsfunction_result_caches->length() <= cache_id) { |
__ Abort("Attempt to use undefined cache."); |
frame_->Push(Factory::undefined_value()); |
@@ -11461,7 +11461,7 @@ |
// stack overflow (on the backtrack stack) was detected in RegExp code but |
// haven't created the exception yet. Handle that in the runtime system. |
// TODO(592): Rerunning the RegExp to get the stack overflow exception. |
- ExternalReference pending_exception(Top::k_pending_exception_address); |
+ ExternalReference pending_exception(Isolate::k_pending_exception_address); |
__ mov(eax, |
Operand::StaticVariable(ExternalReference::the_hole_value_location())); |
__ cmp(eax, Operand::StaticVariable(pending_exception)); |
@@ -12026,7 +12026,7 @@ |
ASSERT(StackHandlerConstants::kSize == 4 * kPointerSize); |
// Drop the sp to the top of the handler. |
- ExternalReference handler_address(Top::k_handler_address); |
+ ExternalReference handler_address(Isolate::k_handler_address); |
__ mov(esp, Operand::StaticVariable(handler_address)); |
// Restore next handler and frame pointer, discard handler state. |
@@ -12205,7 +12205,8 @@ |
__ j(equal, throw_out_of_memory_exception); |
// Retrieve the pending exception and clear the variable. |
- ExternalReference pending_exception_address(Top::k_pending_exception_address); |
+ ExternalReference pending_exception_address( |
+ Isolate::k_pending_exception_address); |
__ mov(eax, Operand::StaticVariable(pending_exception_address)); |
__ mov(edx, |
Operand::StaticVariable(ExternalReference::the_hole_value_location())); |
@@ -12230,7 +12231,7 @@ |
ASSERT(StackHandlerConstants::kSize == 4 * kPointerSize); |
// Drop sp to the top stack handler. |
- ExternalReference handler_address(Top::k_handler_address); |
+ ExternalReference handler_address(Isolate::k_handler_address); |
__ mov(esp, Operand::StaticVariable(handler_address)); |
// Unwind the handlers until the ENTRY handler is found. |
@@ -12252,12 +12253,13 @@ |
if (type == OUT_OF_MEMORY) { |
// Set external caught exception to false. |
- ExternalReference external_caught(Top::k_external_caught_exception_address); |
+ ExternalReference external_caught( |
+ Isolate::k_external_caught_exception_address); |
__ mov(eax, false); |
__ mov(Operand::StaticVariable(external_caught), eax); |
// Set pending exception and eax to out of memory exception. |
- ExternalReference pending_exception(Top::k_pending_exception_address); |
+ ExternalReference pending_exception(Isolate::k_pending_exception_address); |
__ mov(eax, reinterpret_cast<int32_t>(Failure::OutOfMemoryException())); |
__ mov(Operand::StaticVariable(pending_exception), eax); |
} |
@@ -12358,12 +12360,12 @@ |
__ push(ebx); |
// Save copies of the top frame descriptor on the stack. |
- ExternalReference c_entry_fp(Top::k_c_entry_fp_address); |
+ ExternalReference c_entry_fp(Isolate::k_c_entry_fp_address); |
__ push(Operand::StaticVariable(c_entry_fp)); |
#ifdef ENABLE_LOGGING_AND_PROFILING |
// If this is the outermost JS call, set js_entry_sp value. |
- ExternalReference js_entry_sp(Top::k_js_entry_sp_address); |
+ ExternalReference js_entry_sp(Isolate::k_js_entry_sp_address); |
__ cmp(Operand::StaticVariable(js_entry_sp), Immediate(0)); |
__ j(not_equal, ¬_outermost_js); |
__ mov(Operand::StaticVariable(js_entry_sp), ebp); |
@@ -12375,7 +12377,7 @@ |
// Caught exception: Store result (exception) in the pending |
// exception field in the JSEnv and return a failure sentinel. |
- ExternalReference pending_exception(Top::k_pending_exception_address); |
+ ExternalReference pending_exception(Isolate::k_pending_exception_address); |
__ mov(Operand::StaticVariable(pending_exception), eax); |
__ mov(eax, reinterpret_cast<int32_t>(Failure::Exception())); |
__ jmp(&exit); |
@@ -12408,7 +12410,8 @@ |
__ call(Operand(edx)); |
// Unlink this frame from the handler chain. |
- __ pop(Operand::StaticVariable(ExternalReference(Top::k_handler_address))); |
+ __ pop(Operand::StaticVariable( |
+ ExternalReference(Isolate::k_handler_address))); |
// Pop next_sp. |
__ add(Operand(esp), Immediate(StackHandlerConstants::kSize - kPointerSize)); |
@@ -12423,7 +12426,8 @@ |
// Restore the top frame descriptor from the stack. |
__ bind(&exit); |
- __ pop(Operand::StaticVariable(ExternalReference(Top::k_c_entry_fp_address))); |
+ __ pop(Operand::StaticVariable( |
+ ExternalReference(Isolate::k_c_entry_fp_address))); |
// Restore callee-saved registers (C calling conventions). |
__ pop(ebx); |