Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index f42be65a1c9d48e7b3bbf18e2da28acc1fb9177a..519909c914185aa899860cb77ee185304db815d9 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -4957,8 +4957,7 @@ int Relocatable::ArchiveSpacePerThread() { |
// Archive statics that are thread local. |
-char* Relocatable::ArchiveState(char* to) { |
- Isolate* isolate = Isolate::Current(); |
+char* Relocatable::ArchiveState(Isolate* isolate, char* to) { |
*reinterpret_cast<Relocatable**>(to) = isolate->relocatable_top(); |
isolate->set_relocatable_top(NULL); |
return to + ArchiveSpacePerThread(); |
@@ -4966,8 +4965,7 @@ char* Relocatable::ArchiveState(char* to) { |
// Restore statics that are thread local. |
-char* Relocatable::RestoreState(char* from) { |
- Isolate* isolate = Isolate::Current(); |
+char* Relocatable::RestoreState(Isolate* isolate, char* from) { |
isolate->set_relocatable_top(*reinterpret_cast<Relocatable**>(from)); |
return from + ArchiveSpacePerThread(); |
} |