<?xml version="1.0"?>
<paste-with-annotations>
  <paste>
    <number>
      <integer>60579</integer>
    </number>
    <user>
      <string>olliej</string>
    </user>
    <title>
      <string>stupidity for cpst</string>
    </title>
    <contents>
      <string>diff --git a/JavaScriptCore/kjs/function.cpp b/JavaScriptCore/kjs/function.cpp
index a9fef6e..b31ac88 100644
--- a/JavaScriptCore/kjs/function.cpp
+++ b/JavaScriptCore/kjs/function.cpp
@@ -86,7 +86,10 @@ JSValue* FunctionImp::callAsFunction(ExecState* exec, JSObject* thisObj, const L
     RegisterFileStack* stack = &amp;exec-&gt;dynamicGlobalObject()-&gt;registerFileStack();
     RegisterFile* current = stack-&gt;current();
     if (!current-&gt;safeForReentry()) {
-        stack-&gt;pushFunctionRegisterFile();
+        RegisterFile* file = stack-&gt;pushFunctionRegisterFile();
+        ASSERT(file == stack-&gt;current());
+        ASSERT(file-&gt;safeForReentry());
+        ASSERT(stack-&gt;current()-&gt;safeForReentry());
         JSValue* result = machine().execute(body.get(), exec, this, thisObj, args, stack, _scope.node(), &amp;exception);
         stack-&gt;popFunctionRegisterFile();
         exec-&gt;setException(exception);

</string>
    </contents>
    <universal-time>
      <integer>3419496596</integer>
    </universal-time>
    <channel>
      <string>#webkit</string>
    </channel>
    <colorization-mode>
      <string></string>
    </colorization-mode>
    <maybe-spam>
      <null/>
    </maybe-spam>
    <is-unicode>
      <keyword>TRUE</keyword>
    </is-unicode>
  </paste>
</paste-with-annotations>