Revision: 2645
Author: [email protected]
Date: Fri Aug  7 03:18:15 2009
Log: Merge r2642 to trunk.
Review URL: http://codereview.chromium.org/164141
http://code.google.com/p/v8/source/detail?r=2645

Modified:
  /trunk/src/execution.cc
  /trunk/src/version.cc

=======================================
--- /trunk/src/execution.cc     Thu Jul 30 07:48:31 2009
+++ /trunk/src/execution.cc     Fri Aug  7 03:18:15 2009
@@ -82,6 +82,14 @@
      JSEntryStub stub;
      code = stub.GetCode();
    }
+
+  // Convert calls on global objects to be calls on the global
+  // receiver instead to avoid having a 'this' pointer which refers
+  // directly to a global object.
+  if (receiver->IsGlobalObject()) {
+    Handle<GlobalObject> global = Handle<GlobalObject>::cast(receiver);
+    receiver = Handle<JSObject>(global->global_receiver());
+  }

    {
      // Save and restore context around invocation and block the
=======================================
--- /trunk/src/version.cc       Wed Aug  5 01:38:10 2009
+++ /trunk/src/version.cc       Fri Aug  7 03:18:15 2009
@@ -35,7 +35,7 @@
  #define MAJOR_VERSION     1
  #define MINOR_VERSION     3
  #define BUILD_NUMBER      2
-#define PATCH_LEVEL       0
+#define PATCH_LEVEL       1
  #define CANDIDATE_VERSION false

  // Define SONAME to have the SCons build the put a specific SONAME into the

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to