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