Push bleeding_edge revisions 2004 and 2006 to trunk.
r2004 fixes compilation on newer gcc versions.
r2006 exposes the calling JavaScript context through the API.
Review URL: http://codereview.chromium.org/112047
git-svn-id: http://v8.googlecode.com/svn/trunk@2012 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
diff --git a/include/v8.h b/include/v8.h
index 9f59e4e..1f72572 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -2246,6 +2246,13 @@
static Local<Context> GetCurrent();
/**
+ * Returns the context of the calling JavaScript code. That is the
+ * context of the top-most JavaScript frame. If there are no
+ * JavaScript frames an empty handle is returned.
+ */
+ static Local<Context> GetCalling();
+
+ /**
* Sets the security token for the context. To access an object in
* another context, the security tokens must match.
*/