couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r881611 - /couchdb/branches/0.9.x/src/couchdb/couch_js.c
Date Tue, 17 Nov 2009 23:07:25 GMT
Author: jan
Date: Tue Nov 17 23:07:25 2009
New Revision: 881611

URL: http://svn.apache.org/viewvc?rev=881611&view=rev
Log:
remove branch callbacks, makes CouchDB compile with latest spidermonkeys

Modified:
    couchdb/branches/0.9.x/src/couchdb/couch_js.c

Modified: couchdb/branches/0.9.x/src/couchdb/couch_js.c
URL: http://svn.apache.org/viewvc/couchdb/branches/0.9.x/src/couchdb/couch_js.c?rev=881611&r1=881610&r2=881611&view=diff
==============================================================================
--- couchdb/branches/0.9.x/src/couchdb/couch_js.c (original)
+++ couchdb/branches/0.9.x/src/couchdb/couch_js.c Tue Nov 17 23:07:25 2009
@@ -396,14 +396,6 @@
 
 static uint32 gBranchCount = 0;
 
-static JSBool
-BranchCallback(JSContext *context, JSScript *script) {
-    if ((++gBranchCount & 0x3fff) == 1) {
-        JS_MaybeGC(context);
-    }
-    return JS_TRUE;
-}
-
 static void
 PrintError(JSContext *context, const char *message, JSErrorReport *report) {
     if (!report || !JSREPORT_IS_WARNING(report->flags))
@@ -1214,8 +1206,6 @@
     if (!context)
         return 1;
     JS_SetErrorReporter(context, PrintError);
-    JS_SetBranchCallback(context, BranchCallback);
-    JS_ToggleOptions(context, JSOPTION_NATIVE_BRANCH_CALLBACK);
     JS_ToggleOptions(context, JSOPTION_XML);
 
     global = JS_NewObject(context, NULL, NULL, NULL);



Mime
View raw message