Title: [175118] trunk/Source/_javascript_Core
Revision
175118
Author
msab...@apple.com
Date
2014-10-23 06:15:58 -0700 (Thu, 23 Oct 2014)

Log Message

Change CallFrame::lexicalGlobalObject() to use Callee instead of JSScope
https://bugs.webkit.org/show_bug.cgi?id=136901

Reviewed by Mark Lam.

Implement ExecState::lexicalGlobalObject() using Callee.
        
* runtime/JSScope.h:
(JSC::ExecState::lexicalGlobalObject):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (175117 => 175118)


--- trunk/Source/_javascript_Core/ChangeLog	2014-10-23 12:20:44 UTC (rev 175117)
+++ trunk/Source/_javascript_Core/ChangeLog	2014-10-23 13:15:58 UTC (rev 175118)
@@ -1,3 +1,15 @@
+2014-10-23  Michael Saboff  <msab...@apple.com>
+
+        Change CallFrame::lexicalGlobalObject() to use Callee instead of JSScope
+        https://bugs.webkit.org/show_bug.cgi?id=136901
+
+        Reviewed by Mark Lam.
+
+        Implement ExecState::lexicalGlobalObject() using Callee.
+        
+        * runtime/JSScope.h:
+        (JSC::ExecState::lexicalGlobalObject):
+
 2014-10-22  Milan Crha  <mc...@redhat.com>
 
         Prefix isnan() with std::.

Modified: trunk/Source/_javascript_Core/runtime/JSScope.h (175117 => 175118)


--- trunk/Source/_javascript_Core/runtime/JSScope.h	2014-10-23 12:20:44 UTC (rev 175117)
+++ trunk/Source/_javascript_Core/runtime/JSScope.h	2014-10-23 13:15:58 UTC (rev 175118)
@@ -241,7 +241,7 @@
 
 inline JSGlobalObject* ExecState::lexicalGlobalObject() const
 {
-    return scope()->globalObject();
+    return callee()->globalObject();
 }
 
 inline JSObject* ExecState::globalThisValue() const
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to