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);