Revision: 2651
Author: [email protected]
Date: Fri Aug  7 04:40:11 2009
Log: =Merge r2642 to branches/1.1. Review URL:  
http://codereview.chromium.org/165126.
http://code.google.com/p/v8/source/detail?r=2651

Modified:
  /branches/1.1/src/api.cc
  /branches/1.1/src/execution.cc

=======================================
--- /branches/1.1/src/api.cc    Fri Jul 24 00:22:24 2009
+++ /branches/1.1/src/api.cc    Fri Aug  7 04:40:11 2009
@@ -2373,7 +2373,7 @@


  const char* v8::V8::GetVersion() {
-  return "1.1.10.15";
+  return "1.1.10.16";
  }


=======================================
--- /branches/1.1/src/execution.cc      Tue Mar 24 06:25:23 2009
+++ /branches/1.1/src/execution.cc      Fri Aug  7 04:40:11 2009
@@ -77,6 +77,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

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

Reply via email to