- Turn off -Wno-unused-param for JavaScriptCore and get rid of unused params
http://bugzilla.opendarwin.org/show_bug.cgi?id=7384
* JavaScriptCore.xcodeproj/project.pbxproj:
* bindings/NP_jsobject.cpp:
(jsAllocate):
(_NPN_InvokeDefault):
(_NPN_Evaluate):
(_NPN_GetProperty):
(_NPN_SetProperty):
(_NPN_RemoveProperty):
(_NPN_HasProperty):
(_NPN_HasMethod):
* bindings/c/c_class.h:
(KJS::Bindings::CClass::constructorAt):
* bindings/c/c_utility.cpp:
(KJS::Bindings::convertNPVariantToValue):
* bindings/jni/jni_class.cpp:
(JavaClass::methodsNamed):
(JavaClass::fieldNamed):
* bindings/jni/jni_instance.cpp:
(JavaInstance::invokeDefaultMethod):
* bindings/jni/jni_jsobject.cpp:
* bindings/jni/jni_objc.mm:
(-[NSObject KJS::Bindings::]):
* bindings/objc/WebScriptObject.mm:
(+[WebUndefined allocWithZone:]):
(-[WebUndefined initWithCoder:]):
(-[WebUndefined encodeWithCoder:]):
(-[WebUndefined copyWithZone:]):
* bindings/objc/objc_class.h:
(KJS::Bindings::ObjcClass::constructorAt):
* bindings/objc/objc_class.mm:
(KJS::Bindings::ObjcClass::methodsNamed):
(KJS::Bindings::ObjcClass::fallbackObject):
* bindings/objc/objc_instance.mm:
(ObjcInstance::getValueOfUndefinedField):
* bindings/objc/objc_runtime.mm:
(ObjcFallbackObjectImp::getOwnPropertySlot):
(ObjcFallbackObjectImp::put):
(ObjcFallbackObjectImp::canPut):
(ObjcFallbackObjectImp::deleteProperty):
(ObjcFallbackObjectImp::toBoolean):
* bindings/runtime.cpp:
(KJS::Bindings::Instance::createLanguageInstanceForValue):
* bindings/runtime.h:
(KJS::Bindings::Instance::getValueOfUndefinedField):
(KJS::Bindings::Instance::setValueOfUndefinedField):
* bindings/runtime_array.cpp:
(RuntimeArray::lengthGetter):
(RuntimeArray::indexGetter):
(RuntimeArray::put):
(RuntimeArray::deleteProperty):
* bindings/runtime_method.cpp:
(RuntimeMethod::lengthGetter):
(RuntimeMethod::execute):
* bindings/runtime_object.cpp:
(RuntimeObjectImp::fallbackObjectGetter):
(RuntimeObjectImp::fieldGetter):
(RuntimeObjectImp::methodGetter):
(RuntimeObjectImp::put):
(RuntimeObjectImp::canPut):
(RuntimeObjectImp::deleteProperty):
(RuntimeObjectImp::defaultValue):
(RuntimeObjectImp::callAsFunction):
* bindings/runtime_root.cpp:
(performJavaScriptAccess):
* kjs/array_object.cpp:
(ArrayInstance::lengthGetter):
(ArrayInstance::getOwnPropertySlot):
(ArrayPrototype::ArrayPrototype):
(ArrayPrototype::getOwnPropertySlot):
* kjs/bool_object.cpp:
(BooleanObjectImp::BooleanObjectImp):
* kjs/date_object.cpp:
(KJS::DateObjectFuncImp::DateObjectFuncImp):
(KJS::DateObjectFuncImp::callAsFunction):
* kjs/error_object.cpp:
(ErrorObjectImp::ErrorObjectImp):
(NativeErrorPrototype::NativeErrorPrototype):
(NativeErrorImp::NativeErrorImp):
* kjs/function.cpp:
(KJS::FunctionImp::argumentsGetter):
(KJS::FunctionImp::lengthGetter):
(KJS::Arguments::mappedIndexGetter):
(KJS::ActivationImp::argumentsGetter):
(KJS::ActivationImp::put):
* kjs/function_object.cpp:
(FunctionObjectImp::FunctionObjectImp):
* kjs/internal.cpp:
(KJS::GetterSetterImp::toPrimitive):
(KJS::GetterSetterImp::toBoolean):
* kjs/interpreter.cpp:
(KJS::Interpreter::evaluate):
* kjs/interpreter.h:
(KJS::Interpreter::isGlobalObject):
(KJS::Interpreter::interpreterForGlobalObject):
(KJS::Interpreter::isSafeScript):
* kjs/lexer.cpp:
(Lexer::makeIdentifier):
(Lexer::makeUString):
* kjs/lookup.h:
(KJS::staticFunctionGetter):
(KJS::staticValueGetter):
* kjs/nodes.cpp:
(StatementNode::processFuncDecl):
(PropertyNode::evaluate):
(PropertyNameNode::evaluate):
* kjs/number_object.cpp:
(NumberObjectImp::NumberObjectImp):
(NumberObjectImp::getOwnPropertySlot):
* kjs/object.cpp:
(KJS::JSObject::defineGetter):
(KJS::JSObject::defineSetter):
(KJS::JSObject::hasInstance):
(KJS::JSObject::propertyIsEnumerable):
* kjs/object_object.cpp:
(ObjectObjectImp::ObjectObjectImp):
* kjs/property_slot.cpp:
(KJS::PropertySlot::undefinedGetter):
(KJS::PropertySlot::functionGetter):
* kjs/reference.cpp:
(KJS::Reference::getPropertyName):
* kjs/reference_list.cpp:
(ReferenceListIterator::operator++):
* kjs/regexp_object.cpp:
(RegExpObjectImp::RegExpObjectImp):
(RegExpObjectImp::getValueProperty):
(RegExpObjectImp::putValueProperty):
* kjs/string_object.cpp:
(StringInstance::lengthGetter):
(StringInstance::indexGetter):
(StringPrototype::StringPrototype):
* kxmlcore/Assertions.mm:
* kxmlcore/FastMalloc.cpp:
(KXMLCore::TCMalloc_PageHeap::CheckList):
* kxmlcore/HashTable.h:
(KXMLCore::HashTableConstIterator::checkValidity):
(KXMLCore::IdentityHashTranslator::translate):
* pcre/pcre_get.c:
(pcre_get_stringnumber):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13015
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-02-21 Maciej Stachowiak <mjs@apple.com>
+
+ Reviewed by Darin.
+
+ - Turn off -Wno-unused-param for JavaScriptCore and get rid of unused params
+ http://bugzilla.opendarwin.org/show_bug.cgi?id=7384
+
+ * JavaScriptCore.xcodeproj/project.pbxproj:
+ * bindings/NP_jsobject.cpp:
+ (jsAllocate):
+ (_NPN_InvokeDefault):
+ (_NPN_Evaluate):
+ (_NPN_GetProperty):
+ (_NPN_SetProperty):
+ (_NPN_RemoveProperty):
+ (_NPN_HasProperty):
+ (_NPN_HasMethod):
+ * bindings/c/c_class.h:
+ (KJS::Bindings::CClass::constructorAt):
+ * bindings/c/c_utility.cpp:
+ (KJS::Bindings::convertNPVariantToValue):
+ * bindings/jni/jni_class.cpp:
+ (JavaClass::methodsNamed):
+ (JavaClass::fieldNamed):
+ * bindings/jni/jni_instance.cpp:
+ (JavaInstance::invokeDefaultMethod):
+ * bindings/jni/jni_jsobject.cpp:
+ * bindings/jni/jni_objc.mm:
+ (-[NSObject KJS::Bindings::]):
+ * bindings/objc/WebScriptObject.mm:
+ (+[WebUndefined allocWithZone:]):
+ (-[WebUndefined initWithCoder:]):
+ (-[WebUndefined encodeWithCoder:]):
+ (-[WebUndefined copyWithZone:]):
+ * bindings/objc/objc_class.h:
+ (KJS::Bindings::ObjcClass::constructorAt):
+ * bindings/objc/objc_class.mm:
+ (KJS::Bindings::ObjcClass::methodsNamed):
+ (KJS::Bindings::ObjcClass::fallbackObject):
+ * bindings/objc/objc_instance.mm:
+ (ObjcInstance::getValueOfUndefinedField):
+ * bindings/objc/objc_runtime.mm:
+ (ObjcFallbackObjectImp::getOwnPropertySlot):
+ (ObjcFallbackObjectImp::put):
+ (ObjcFallbackObjectImp::canPut):
+ (ObjcFallbackObjectImp::deleteProperty):
+ (ObjcFallbackObjectImp::toBoolean):
+ * bindings/runtime.cpp:
+ (KJS::Bindings::Instance::createLanguageInstanceForValue):
+ * bindings/runtime.h:
+ (KJS::Bindings::Instance::getValueOfUndefinedField):
+ (KJS::Bindings::Instance::setValueOfUndefinedField):
+ * bindings/runtime_array.cpp:
+ (RuntimeArray::lengthGetter):
+ (RuntimeArray::indexGetter):
+ (RuntimeArray::put):
+ (RuntimeArray::deleteProperty):
+ * bindings/runtime_method.cpp:
+ (RuntimeMethod::lengthGetter):
+ (RuntimeMethod::execute):
+ * bindings/runtime_object.cpp:
+ (RuntimeObjectImp::fallbackObjectGetter):
+ (RuntimeObjectImp::fieldGetter):
+ (RuntimeObjectImp::methodGetter):
+ (RuntimeObjectImp::put):
+ (RuntimeObjectImp::canPut):
+ (RuntimeObjectImp::deleteProperty):
+ (RuntimeObjectImp::defaultValue):
+ (RuntimeObjectImp::callAsFunction):
+ * bindings/runtime_root.cpp:
+ (performJavaScriptAccess):
+ * kjs/array_object.cpp:
+ (ArrayInstance::lengthGetter):
+ (ArrayInstance::getOwnPropertySlot):
+ (ArrayPrototype::ArrayPrototype):
+ (ArrayPrototype::getOwnPropertySlot):
+ * kjs/bool_object.cpp:
+ (BooleanObjectImp::BooleanObjectImp):
+ * kjs/date_object.cpp:
+ (KJS::DateObjectFuncImp::DateObjectFuncImp):
+ (KJS::DateObjectFuncImp::callAsFunction):
+ * kjs/error_object.cpp:
+ (ErrorObjectImp::ErrorObjectImp):
+ (NativeErrorPrototype::NativeErrorPrototype):
+ (NativeErrorImp::NativeErrorImp):
+ * kjs/function.cpp:
+ (KJS::FunctionImp::argumentsGetter):
+ (KJS::FunctionImp::lengthGetter):
+ (KJS::Arguments::mappedIndexGetter):
+ (KJS::ActivationImp::argumentsGetter):
+ (KJS::ActivationImp::put):
+ * kjs/function_object.cpp:
+ (FunctionObjectImp::FunctionObjectImp):
+ * kjs/internal.cpp:
+ (KJS::GetterSetterImp::toPrimitive):
+ (KJS::GetterSetterImp::toBoolean):
+ * kjs/interpreter.cpp:
+ (KJS::Interpreter::evaluate):
+ * kjs/interpreter.h:
+ (KJS::Interpreter::isGlobalObject):
+ (KJS::Interpreter::interpreterForGlobalObject):
+ (KJS::Interpreter::isSafeScript):
+ * kjs/lexer.cpp:
+ (Lexer::makeIdentifier):
+ (Lexer::makeUString):
+ * kjs/lookup.h:
+ (KJS::staticFunctionGetter):
+ (KJS::staticValueGetter):
+ * kjs/nodes.cpp:
+ (StatementNode::processFuncDecl):
+ (PropertyNode::evaluate):
+ (PropertyNameNode::evaluate):
+ * kjs/number_object.cpp:
+ (NumberObjectImp::NumberObjectImp):
+ (NumberObjectImp::getOwnPropertySlot):
+ * kjs/object.cpp:
+ (KJS::JSObject::defineGetter):
+ (KJS::JSObject::defineSetter):
+ (KJS::JSObject::hasInstance):
+ (KJS::JSObject::propertyIsEnumerable):
+ * kjs/object_object.cpp:
+ (ObjectObjectImp::ObjectObjectImp):
+ * kjs/property_slot.cpp:
+ (KJS::PropertySlot::undefinedGetter):
+ (KJS::PropertySlot::functionGetter):
+ * kjs/reference.cpp:
+ (KJS::Reference::getPropertyName):
+ * kjs/reference_list.cpp:
+ (ReferenceListIterator::operator++):
+ * kjs/regexp_object.cpp:
+ (RegExpObjectImp::RegExpObjectImp):
+ (RegExpObjectImp::getValueProperty):
+ (RegExpObjectImp::putValueProperty):
+ * kjs/string_object.cpp:
+ (StringInstance::lengthGetter):
+ (StringInstance::indexGetter):
+ (StringPrototype::StringPrototype):
+ * kxmlcore/Assertions.mm:
+ * kxmlcore/FastMalloc.cpp:
+ (KXMLCore::TCMalloc_PageHeap::CheckList):
+ * kxmlcore/HashTable.h:
+ (KXMLCore::HashTableConstIterator::checkValidity):
+ (KXMLCore::IdentityHashTranslator::translate):
+ * pcre/pcre_get.c:
+ (pcre_get_stringnumber):
+
2006-02-23 Darin Adler <darin@apple.com>
- try to fix buildbot failure
);
PRODUCT_NAME = JavaScriptCore;
STYLE_LDFLAGS = "";
+ WARNING_CFLAGS = (
+ "-Wall",
+ "-W",
+ "-Wcast-align",
+ "-Wchar-subscripts",
+ "-Wformat-security",
+ "-Wmissing-format-attribute",
+ "-Wpointer-arith",
+ "-Wwrite-strings",
+ "-Wno-format-y2k",
+ "-Wno-long-double",
+ );
};
name = Debug;
};
);
PRODUCT_NAME = JavaScriptCore;
STYLE_LDFLAGS = "";
+ WARNING_CFLAGS = (
+ "-Wall",
+ "-W",
+ "-Wcast-align",
+ "-Wchar-subscripts",
+ "-Wformat-security",
+ "-Wmissing-format-attribute",
+ "-Wpointer-arith",
+ "-Wwrite-strings",
+ "-Wno-format-y2k",
+ "-Wno-long-double",
+ );
};
name = Release;
};
"$(APPLE_INTERNAL_DIR)/OrderFiles/JavaScriptCore.order",
);
STYLE_LDFLAGS = "-umbrella WebKit -allowable_client JavaScriptGlue";
+ WARNING_CFLAGS = (
+ "-Wall",
+ "-W",
+ "-Wcast-align",
+ "-Wchar-subscripts",
+ "-Wformat-security",
+ "-Wmissing-format-attribute",
+ "-Wpointer-arith",
+ "-Wwrite-strings",
+ "-Wno-format-y2k",
+ "-Wno-long-double",
+ );
};
name = Production;
};
return aList;
}
-static NPObject *jsAllocate(NPP npp, NPClass *aClass)
+static NPObject* jsAllocate(NPP, NPClass*)
{
- return (NPObject *)malloc(sizeof(JavaScriptObject));
+ return (NPObject*)malloc(sizeof(JavaScriptObject));
}
static void jsDeallocate (JavaScriptObject *obj)
return _NPN_CreateObject(0, NPNoScriptObjectClass);
}
-bool _NPN_InvokeDefault (NPP npp, NPObject *o, const NPVariant *args, uint32_t argCount, NPVariant *result)
+bool _NPN_InvokeDefault (NPP, NPObject* o, const NPVariant* args, uint32_t argCount, NPVariant* result)
{
if (o->_class == NPScriptObjectClass) {
// No notion of a default function on JS objects. Just return false, can't handle.
return true;
}
-bool _NPN_Evaluate (NPP npp, NPObject *o, NPString *s, NPVariant *variant)
+bool _NPN_Evaluate(NPP, NPObject* o, NPString* s, NPVariant* variant)
{
if (o->_class == NPScriptObjectClass) {
- JavaScriptObject *obj = (JavaScriptObject *)o;
+ JavaScriptObject* obj = (JavaScriptObject*)o;
if (!_isSafeScript(obj))
return false;
- ExecState *exec = obj->executionContext->interpreter()->globalExec();
- JSValue *result;
+ ExecState* exec = obj->executionContext->interpreter()->globalExec();
+ JSValue* result;
JSLock lock;
- NPUTF16 *scriptString;
+ NPUTF16* scriptString;
unsigned int UTF16Length;
convertNPStringToUTF16 (s, &scriptString, &UTF16Length); // requires free() of returned memory.
- Completion completion = obj->executionContext->interpreter()->evaluate(UString(), 0, UString((const UChar *)scriptString,UTF16Length));
+ Completion completion = obj->executionContext->interpreter()->evaluate(UString(), 0, UString((const UChar*)scriptString,UTF16Length));
ComplType type = completion.complType();
if (type == Normal) {
return false;
}
-bool _NPN_GetProperty (NPP npp, NPObject *o, NPIdentifier propertyName, NPVariant *variant)
+bool _NPN_GetProperty (NPP, NPObject* o, NPIdentifier propertyName, NPVariant* variant)
{
if (o->_class == NPScriptObjectClass) {
JavaScriptObject *obj = (JavaScriptObject *)o;
return false;
}
-bool _NPN_SetProperty (NPP npp, NPObject *o, NPIdentifier propertyName, const NPVariant *variant)
+bool _NPN_SetProperty (NPP, NPObject* o, NPIdentifier propertyName, const NPVariant* variant)
{
if (o->_class == NPScriptObjectClass) {
JavaScriptObject *obj = (JavaScriptObject *)o;
return false;
}
-bool _NPN_RemoveProperty (NPP npp, NPObject *o, NPIdentifier propertyName)
+bool _NPN_RemoveProperty (NPP, NPObject* o, NPIdentifier propertyName)
{
if (o->_class == NPScriptObjectClass) {
JavaScriptObject *obj = (JavaScriptObject *)o;
return false;
}
-bool _NPN_HasProperty(NPP npp, NPObject *o, NPIdentifier propertyName)
+bool _NPN_HasProperty(NPP, NPObject* o, NPIdentifier propertyName)
{
if (o->_class == NPScriptObjectClass) {
JavaScriptObject *obj = (JavaScriptObject *)o;
return false;
}
-bool _NPN_HasMethod(NPP npp, NPObject *o, NPIdentifier methodName)
+bool _NPN_HasMethod(NPP, NPObject* o, NPIdentifier methodName)
{
if (o->_class == NPScriptObjectClass) {
JavaScriptObject *obj = (JavaScriptObject *)o;
virtual Field *fieldNamed(const char *name, Instance *instance) const;
- virtual Constructor *constructorAt(int i) const {
+ virtual Constructor *constructorAt(int) const {
return 0;
};
NPN_InitializeVariantAsUndefined(result);
}
-JSValue *convertNPVariantToValue(ExecState *exec, const NPVariant *variant)
+JSValue *convertNPVariantToValue(ExecState*, const NPVariant*variant)
{
NPVariantType type = variant->type;
delete [] _constructors;
}
-MethodList JavaClass::methodsNamed(const char *name, Instance *instance) const
+MethodList JavaClass::methodsNamed(const char *name, Instance*) const
{
CFStringRef methodName = CFStringCreateWithCString(NULL, name, kCFStringEncodingASCII);
MethodList *methodList = (MethodList *)CFDictionaryGetValue(_methods, methodName);
return MethodList();
}
-Field *JavaClass::fieldNamed(const char *name, Instance *instance) const
+Field *JavaClass::fieldNamed(const char *name, Instance*) const
{
CFStringRef fieldName = CFStringCreateWithCString(NULL, name, kCFStringEncodingASCII);
Field *aField = (Field *)CFDictionaryGetValue(_fields, fieldName);
return resultValue;
}
-JSValue *JavaInstance::invokeDefaultMethod (ExecState *exec, const List &args)
+JSValue *JavaInstance::invokeDefaultMethod (ExecState*, const List&)
{
return jsUndefined();
}
extern "C" {
-jlong KJS_JSCreateNativeJSObject (JNIEnv *env, jclass clazz, jstring jurl, jlong nativeHandle, jboolean ctx)
+jlong KJS_JSCreateNativeJSObject (JNIEnv*, jclass, jstring, jlong nativeHandle, jboolean)
{
JSObjectCallContext context;
context.type = CreateNative;
return JavaJSObject::invoke (&context).j;
}
-void KJS_JSObject_JSFinalize (JNIEnv *env, jclass jsClass, jlong nativeHandle)
+void KJS_JSObject_JSFinalize (JNIEnv*, jclass, jlong nativeHandle)
{
JSObjectCallContext context;
context.type = Finalize;
JavaJSObject::invoke (&context);
}
-jobject KJS_JSObject_JSObjectCall (JNIEnv *env, jclass jsClass, jlong nativeHandle, jstring jurl, jstring methodName, jobjectArray args, jboolean ctx)
+jobject KJS_JSObject_JSObjectCall (JNIEnv*, jclass, jlong nativeHandle, jstring, jstring methodName, jobjectArray args, jboolean)
{
JSObjectCallContext context;
context.type = Call;
return JavaJSObject::invoke (&context).l;
}
-jobject KJS_JSObject_JSObjectEval (JNIEnv *env, jclass jsClass, jlong nativeHandle, jstring jurl, jstring jscript, jboolean ctx)
+jobject KJS_JSObject_JSObjectEval (JNIEnv*, jclass, jlong nativeHandle, jstring, jstring jscript, jboolean)
{
JSObjectCallContext context;
context.type = Eval;
return JavaJSObject::invoke (&context).l;
}
-jobject KJS_JSObject_JSObjectGetMember (JNIEnv *env, jclass jsClass, jlong nativeHandle, jstring jurl, jstring jname, jboolean ctx)
+jobject KJS_JSObject_JSObjectGetMember (JNIEnv*, jclass, jlong nativeHandle, jstring, jstring jname, jboolean)
{
JSObjectCallContext context;
context.type = GetMember;
return JavaJSObject::invoke (&context).l;
}
-void KJS_JSObject_JSObjectSetMember (JNIEnv *env, jclass jsClass, jlong nativeHandle, jstring jurl, jstring jname, jobject value, jboolean ctx)
+void KJS_JSObject_JSObjectSetMember (JNIEnv*, jclass, jlong nativeHandle, jstring, jstring jname, jobject value, jboolean)
{
JSObjectCallContext context;
context.type = SetMember;
JavaJSObject::invoke (&context);
}
-void KJS_JSObject_JSObjectRemoveMember (JNIEnv *env, jclass jsClass, jlong nativeHandle, jstring jurl, jstring jname, jboolean ctx)
+void KJS_JSObject_JSObjectRemoveMember (JNIEnv*, jclass, jlong nativeHandle, jstring, jstring jname, jboolean)
{
JSObjectCallContext context;
context.type = RemoveMember;
JavaJSObject::invoke (&context);
}
-jobject KJS_JSObject_JSObjectGetSlot (JNIEnv *env, jclass jsClass, jlong nativeHandle, jstring jurl, jint jindex, jboolean ctx)
+jobject KJS_JSObject_JSObjectGetSlot (JNIEnv*, jclass, jlong nativeHandle, jstring, jint jindex, jboolean)
{
JSObjectCallContext context;
context.type = GetSlot;
return JavaJSObject::invoke (&context).l;
}
-void KJS_JSObject_JSObjectSetSlot (JNIEnv *env, jclass jsClass, jlong nativeHandle, jstring jurl, jint jindex, jobject value, jboolean ctx)
+void KJS_JSObject_JSObjectSetSlot (JNIEnv*, jclass, jlong nativeHandle, jstring, jint jindex, jobject value, jboolean)
{
JSObjectCallContext context;
context.type = SetSlot;
JavaJSObject::invoke (&context);
}
-jstring KJS_JSObject_JSObjectToString (JNIEnv *env, jclass clazz, jlong nativeHandle)
+jstring KJS_JSObject_JSObjectToString (JNIEnv*, jclass, jlong nativeHandle)
{
JSObjectCallContext context;
context.type = ToString;
- (NSURL *)_webViewURL;
@end
-bool KJS::Bindings::dispatchJNICall (const void *targetAppletView, jobject obj, bool isStatic, JNIType returnType, jmethodID methodID, jvalue *args, jvalue &result, const char *callingURL, JSValue *&exceptionDescription)
+bool KJS::Bindings::dispatchJNICall (const void *targetAppletView, jobject obj, bool isStatic, JNIType returnType, jmethodID methodID, jvalue *args, jvalue &result, const char*, JSValue *&exceptionDescription)
{
id view = (id)targetAppletView;
#import "runtime_object.h"
#import "runtime_root.h"
+#import <kxmlcore/UnusedParam.h>
+
#if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_3
@interface NSObject (WebExtras)
+ (id)allocWithZone:(NSZone *)zone
{
+ UNUSED_PARAM(zone);
static WebUndefined *sharedUndefined = 0;
if (!sharedUndefined)
sharedUndefined = [super allocWithZone:NULL];
- (id)initWithCoder:(NSCoder *)coder
{
+ UNUSED_PARAM(coder);
return self;
}
- (void)encodeWithCoder:(NSCoder *)encoder
{
+ UNUSED_PARAM(encoder);
}
- (id)copyWithZone:(NSZone *)zone
{
+ UNUSED_PARAM(zone);
return self;
}
virtual JSValue *fallbackObject(ExecState *exec, Instance *instance, const Identifier &propertyName);
- virtual Constructor *constructorAt(int i) const { return 0; }
+ virtual Constructor *constructorAt(int) const { return 0; }
virtual int numConstructors() const { return 0; }
ClassStructPtr isa() { return _isa; }
return _isa->name;
}
-MethodList ObjcClass::methodsNamed(const char *JSName, Instance *instance) const
+MethodList ObjcClass::methodsNamed(const char *JSName, Instance*) const
{
MethodList methodList;
char fixedSizeBuffer[1024];
return aField;
}
-JSValue *ObjcClass::fallbackObject (ExecState *exec, Instance *instance, const Identifier &propertyName)
+JSValue *ObjcClass::fallbackObject (ExecState*, Instance *instance, const Identifier &propertyName)
{
ObjcInstance * objcInstance = static_cast<ObjcInstance*>(instance);
id targetObject = objcInstance->getObject();
return aField->valueFromInstance (exec, this);
}
-JSValue *ObjcInstance::getValueOfUndefinedField (ExecState *exec, const Identifier &property, JSType hint) const
+JSValue *ObjcInstance::getValueOfUndefinedField (ExecState* exec, const Identifier& property, JSType) const
{
id targetObject = getObject();
{
}
-bool ObjcFallbackObjectImp::getOwnPropertySlot(ExecState *exec, const Identifier& propertyName, PropertySlot& slot)
+bool ObjcFallbackObjectImp::getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot& slot)
{
// keep the prototype from getting called instead of just returning false
slot.setUndefined(this);
return true;
}
-void ObjcFallbackObjectImp::put(ExecState *exec, const Identifier &propertyName,
- JSValue *value, int attr)
+void ObjcFallbackObjectImp::put(ExecState*, const Identifier&, JSValue*, int)
{
}
-bool ObjcFallbackObjectImp::canPut(ExecState *exec, const Identifier &propertyName) const
+bool ObjcFallbackObjectImp::canPut(ExecState*, const Identifier&) const
{
return false;
}
return result;
}
-bool ObjcFallbackObjectImp::deleteProperty(ExecState *exec,
- const Identifier &propertyName)
+bool ObjcFallbackObjectImp::deleteProperty(ExecState*, const Identifier&)
{
return false;
}
return _instance->getValueOfUndefinedField(exec, _item, hint);
}
-bool ObjcFallbackObjectImp::toBoolean(ExecState *exec) const
+bool ObjcFallbackObjectImp::toBoolean(ExecState*) const
{
id targetObject = _instance->getObject();
return new RuntimeObjectImp(interfaceObject);
}
-void *Instance::createLanguageInstanceForValue(ExecState *exec, BindingLanguage language, JSObject *value, const RootObject *origin, const RootObject *current)
+void *Instance::createLanguageInstanceForValue(ExecState*, BindingLanguage language, JSObject* value, const RootObject* origin, const RootObject* current)
{
void *result = 0;
virtual Class *getClass() const = 0;
virtual JSValue* getValueOfField(ExecState*, const Field*) const;
- virtual JSValue* getValueOfUndefinedField(ExecState*, const Identifier& property, JSType hint) const { return jsUndefined(); }
+ virtual JSValue* getValueOfUndefinedField(ExecState*, const Identifier&, JSType) const { return jsUndefined(); }
virtual void setValueOfField(ExecState*, const Field*, JSValue*) const;
virtual bool supportsSetValueOfUndefinedField() { return false; }
- virtual void setValueOfUndefinedField(ExecState*, const Identifier& property, JSValue*) {}
+ virtual void setValueOfUndefinedField(ExecState*, const Identifier&, JSValue*) {}
virtual JSValue* invokeMethod(ExecState*, const MethodList&, const List& args) = 0;
virtual JSValue* invokeDefaultMethod(ExecState*, const List& args) = 0;
delete _array;
}
-JSValue *RuntimeArray::lengthGetter(ExecState *exec, JSObject *originalObject, const Identifier& propertyName, const PropertySlot& slot)
+JSValue *RuntimeArray::lengthGetter(ExecState*, JSObject*, const Identifier&, const PropertySlot& slot)
{
RuntimeArray *thisObj = static_cast<RuntimeArray *>(slot.slotBase());
return jsNumber(thisObj->getLength());
}
-JSValue *RuntimeArray::indexGetter(ExecState *exec, JSObject *originalObject, const Identifier& propertyName, const PropertySlot& slot)
+JSValue *RuntimeArray::indexGetter(ExecState* exec, JSObject*, const Identifier&, const PropertySlot& slot)
{
RuntimeArray *thisObj = static_cast<RuntimeArray *>(slot.slotBase());
return thisObj->getConcreteArray()->valueAt(exec, slot.index());
JSObject::put(exec, propertyName, value, attr);
}
-void RuntimeArray::put(ExecState *exec, unsigned index, JSValue *value, int attr)
+void RuntimeArray::put(ExecState* exec, unsigned index, JSValue* value, int)
{
if (index >= getLength()) {
throwError(exec, RangeError);
getConcreteArray()->setValueAt(exec, index, value);
}
-bool RuntimeArray::deleteProperty(ExecState *exec, const Identifier &propertyName)
+bool RuntimeArray::deleteProperty(ExecState*, const Identifier&)
{
return false;
}
-bool RuntimeArray::deleteProperty(ExecState *exec, unsigned index)
+bool RuntimeArray::deleteProperty(ExecState*, unsigned)
{
return false;
}
{
}
-JSValue *RuntimeMethod::lengthGetter(ExecState *exec, JSObject *originalObject, const Identifier& propertyName, const PropertySlot& slot)
+JSValue *RuntimeMethod::lengthGetter(ExecState*, JSObject*, const Identifier&, const PropertySlot& slot)
{
RuntimeMethod *thisObj = static_cast<RuntimeMethod *>(slot.slotBase());
}
-Completion RuntimeMethod::execute(ExecState *exec)
+Completion RuntimeMethod::execute(ExecState*)
{
return Completion(Normal, jsUndefined());
}
{
}
-JSValue *RuntimeObjectImp::fallbackObjectGetter(ExecState *exec, JSObject *originalObject, const Identifier& propertyName, const PropertySlot& slot)
+JSValue *RuntimeObjectImp::fallbackObjectGetter(ExecState* exec, JSObject*, const Identifier& propertyName, const PropertySlot& slot)
{
RuntimeObjectImp *thisObj = static_cast<RuntimeObjectImp *>(slot.slotBase());
Bindings::Instance *instance = thisObj->instance.get();
return result;
}
-JSValue *RuntimeObjectImp::fieldGetter(ExecState *exec, JSObject *originalObject, const Identifier& propertyName, const PropertySlot& slot)
+JSValue *RuntimeObjectImp::fieldGetter(ExecState* exec, JSObject*, const Identifier& propertyName, const PropertySlot& slot)
{
RuntimeObjectImp *thisObj = static_cast<RuntimeObjectImp *>(slot.slotBase());
Bindings::Instance *instance = thisObj->instance.get();
return result;
}
-JSValue *RuntimeObjectImp::methodGetter(ExecState *exec, JSObject *originalObject, const Identifier& propertyName, const PropertySlot& slot)
+JSValue *RuntimeObjectImp::methodGetter(ExecState* exec, JSObject*, const Identifier& propertyName, const PropertySlot& slot)
{
RuntimeObjectImp *thisObj = static_cast<RuntimeObjectImp *>(slot.slotBase());
Bindings::Instance *instance = thisObj->instance.get();
return false;
}
-void RuntimeObjectImp::put(ExecState *exec, const Identifier &propertyName,
- JSValue *value, int attr)
+void RuntimeObjectImp::put(ExecState* exec, const Identifier& propertyName, JSValue* value, int)
{
instance->begin();
instance->end();
}
-bool RuntimeObjectImp::canPut(ExecState *exec, const Identifier &propertyName) const
+bool RuntimeObjectImp::canPut(ExecState*, const Identifier& propertyName) const
{
bool result = false;
return result;
}
-bool RuntimeObjectImp::deleteProperty(ExecState *exec,
- const Identifier &propertyName)
+bool RuntimeObjectImp::deleteProperty(ExecState*, const Identifier&)
{
// Can never remove a property of a RuntimeObject.
return false;
}
-JSValue *RuntimeObjectImp::defaultValue(ExecState *exec, JSType hint) const
+JSValue *RuntimeObjectImp::defaultValue(ExecState*, JSType hint) const
{
JSValue *result;
return true;
}
-JSValue *RuntimeObjectImp::callAsFunction(ExecState *exec, JSObject *thisObj, const List &args)
+JSValue *RuntimeObjectImp::callAsFunction(ExecState* exec, JSObject*, const List& args)
{
instance->begin();
unlockJavaScriptAccess();
}
-static void performJavaScriptAccess(void *info);
-static void performJavaScriptAccess(void *i)
+static void performJavaScriptAccess(void*)
{
assert (CFRunLoopGetCurrent() == RootObject::runLoop());
fastFree(storage);
}
-JSValue *ArrayInstance::lengthGetter(ExecState *exec, JSObject *originalObject, const Identifier& propertyName, const PropertySlot& slot)
+JSValue *ArrayInstance::lengthGetter(ExecState*, JSObject*, const Identifier&, const PropertySlot& slot)
{
return jsNumber(static_cast<ArrayInstance *>(slot.slotBase())->length);
}
-bool ArrayInstance::getOwnPropertySlot(ExecState *exec, const Identifier& propertyName, PropertySlot& slot)
+bool ArrayInstance::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
{
if (propertyName == lengthPropertyName) {
slot.setCustom(this, lengthGetter);
*/
// ECMA 15.4.4
-ArrayPrototype::ArrayPrototype(ExecState *exec,
- ObjectPrototype *objProto)
+ArrayPrototype::ArrayPrototype(ExecState*, ObjectPrototype* objProto)
: ArrayInstance(objProto, 0)
{
setInternalValue(jsNull());
}
-bool ArrayPrototype::getOwnPropertySlot(ExecState *exec, const Identifier& propertyName, PropertySlot& slot)
+bool ArrayPrototype::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
{
return getStaticFunctionSlot<ArrayProtoFunc, ArrayInstance>(exec, &arrayTable, this, propertyName, slot);
}
// ------------------------------ BooleanObjectImp -----------------------------
-BooleanObjectImp::BooleanObjectImp(ExecState *exec, FunctionPrototype *funcProto,
- BooleanPrototype *booleanProto)
+BooleanObjectImp::BooleanObjectImp(ExecState*, FunctionPrototype* funcProto, BooleanPrototype* booleanProto)
: InternalFunctionImp(funcProto)
{
putDirect(prototypePropertyName, booleanProto, DontEnum|DontDelete|ReadOnly);
// ------------------------------ DateObjectFuncImp ----------------------------
-DateObjectFuncImp::DateObjectFuncImp(ExecState *exec, FunctionPrototype *funcProto, int i, int len, const Identifier& name)
+DateObjectFuncImp::DateObjectFuncImp(ExecState*, FunctionPrototype* funcProto, int i, int len, const Identifier& name)
: InternalFunctionImp(funcProto, name), id(i)
{
putDirect(lengthPropertyName, len, DontDelete|ReadOnly|DontEnum);
}
// ECMA 15.9.4.2 - 3
-JSValue *DateObjectFuncImp::callAsFunction(ExecState *exec, JSObject *thisObj, const List &args)
+JSValue *DateObjectFuncImp::callAsFunction(ExecState* exec, JSObject*, const List& args)
{
if (id == Parse) {
return jsNumber(parseDate(args[0]->toString(exec)));
// ------------------------------ ErrorObjectImp -------------------------------
-ErrorObjectImp::ErrorObjectImp(ExecState *exec, FunctionPrototype *funcProto,
- ErrorPrototype *errorProto)
+ErrorObjectImp::ErrorObjectImp(ExecState*, FunctionPrototype* funcProto, ErrorPrototype* errorProto)
: InternalFunctionImp(funcProto)
{
// ECMA 15.11.3.1 Error.prototype
// ------------------------------ NativeErrorPrototype ----------------------
-NativeErrorPrototype::NativeErrorPrototype(ExecState *exec, ErrorPrototype *errorProto,
- ErrorType et, UString name, UString message)
+NativeErrorPrototype::NativeErrorPrototype(ExecState*, ErrorPrototype* errorProto, ErrorType et, UString name, UString message)
: JSObject(errorProto)
{
errType = et;
const ClassInfo NativeErrorImp::info = {"Function", &InternalFunctionImp::info, 0, 0};
-NativeErrorImp::NativeErrorImp(ExecState *exec, FunctionPrototype *funcProto,
- JSObject *prot)
- : InternalFunctionImp(funcProto), proto(prot)
+NativeErrorImp::NativeErrorImp(ExecState*, FunctionPrototype* funcProto, JSObject* prot)
+ : InternalFunctionImp(funcProto)
+ , proto(prot)
{
putDirect(lengthPropertyName, jsNumber(1), DontDelete|ReadOnly|DontEnum); // ECMA 15.11.7.5
putDirect(prototypePropertyName, proto, DontDelete|ReadOnly|DontEnum);
{
}
-JSValue *FunctionImp::argumentsGetter(ExecState *exec, JSObject *originalObject, const Identifier& propertyName, const PropertySlot& slot)
+JSValue *FunctionImp::argumentsGetter(ExecState* exec, JSObject*, const Identifier& propertyName, const PropertySlot& slot)
{
FunctionImp *thisObj = static_cast<FunctionImp *>(slot.slotBase());
ContextImp *context = exec->_context;
return jsNull();
}
-JSValue *FunctionImp::lengthGetter(ExecState *exec, JSObject *originalObject, const Identifier& propertyName, const PropertySlot& slot)
+JSValue *FunctionImp::lengthGetter(ExecState*, JSObject*, const Identifier&, const PropertySlot& slot)
{
FunctionImp *thisObj = static_cast<FunctionImp *>(slot.slotBase());
const Parameter *p = thisObj->param.get();
_activationObject->mark();
}
-JSValue *Arguments::mappedIndexGetter(ExecState *exec, JSObject *originalObject, const Identifier& propertyName, const PropertySlot& slot)
+JSValue *Arguments::mappedIndexGetter(ExecState* exec, JSObject*, const Identifier& propertyName, const PropertySlot& slot)
{
Arguments *thisObj = static_cast<Arguments *>(slot.slotBase());
return thisObj->_activationObject->get(exec, thisObj->indexToNameMap[propertyName]);
// FIXME: Do we need to support enumerating the arguments property?
}
-JSValue *ActivationImp::argumentsGetter(ExecState *exec, JSObject *originalObject, const Identifier& propertyName, const PropertySlot& slot)
+JSValue *ActivationImp::argumentsGetter(ExecState* exec, JSObject*, const Identifier&, const PropertySlot& slot)
{
ActivationImp *thisObj = static_cast<ActivationImp *>(slot.slotBase());
return JSObject::deleteProperty(exec, propertyName);
}
-void ActivationImp::put(ExecState *exec, const Identifier &propertyName, JSValue *value, int attr)
+void ActivationImp::put(ExecState*, const Identifier& propertyName, JSValue* value, int attr)
{
// There's no way that an activation object can have a prototype or getter/setter properties
assert(!_prop.hasGetterSetterProperties());
// ------------------------------ FunctionObjectImp ----------------------------
-FunctionObjectImp::FunctionObjectImp(ExecState *exec, FunctionPrototype *funcProto)
+FunctionObjectImp::FunctionObjectImp(ExecState*, FunctionPrototype* funcProto)
: InternalFunctionImp(funcProto)
{
putDirect(prototypePropertyName, funcProto, DontEnum|DontDelete|ReadOnly);
setter->mark();
}
-JSValue *GetterSetterImp::toPrimitive(ExecState *exec, JSType) const
+JSValue *GetterSetterImp::toPrimitive(ExecState*, JSType) const
{
assert(false);
return jsNull();
}
-bool GetterSetterImp::toBoolean(ExecState *) const
+bool GetterSetterImp::toBoolean(ExecState*) const
{
assert(false);
return false;
return rep->checkSyntax(code);
}
-Completion Interpreter::evaluate(const UString& sourceURL, int startingLineNumber, const UString& code, JSValue* thisV)
+Completion Interpreter::evaluate(const UString& sourceURL, int startingLineNumber, const UString& code, JSValue*)
{
return evaluate(sourceURL, startingLineNumber, code.data(), code.size());
}
* is used to determine if an object is the Window object so we can perform
* security checks.
*/
- virtual bool isGlobalObject(JSValue *v) { return false; }
+ virtual bool isGlobalObject(JSValue*) { return false; }
/**
* Find the interpreter for a particular global object. This should really
* created in an application to correctly implement this method. The only
* override of this method is currently in WebCore.
*/
- virtual Interpreter *interpreterForGlobalObject (const JSValue *imp) { return 0; }
+ virtual Interpreter* interpreterForGlobalObject(const JSValue*) { return 0; }
/**
* Determine if the it is 'safe' to execute code in the target interpreter from an
* cross frame security rules. In particular, attempts to access 'bound' objects are
* not allowed unless isSafeScript returns true.
*/
- virtual bool isSafeScript (const Interpreter *target) { return true; }
+ virtual bool isSafeScript(const Interpreter*) { return true; }
#if __APPLE__
virtual void *createLanguageInstanceForValue(ExecState*, int language, JSObject* value, const Bindings::RootObject* origin, const Bindings::RootObject* current);
const int initialCapacity = 64;
const int growthFactor = 2;
-Identifier *Lexer::makeIdentifier(KJS::UChar *buffer, unsigned int pos)
+// FIXME: this completely ignores its parameters, instead using buffer16 and pos16 - wtf?
+Identifier *Lexer::makeIdentifier(KJS::UChar*, unsigned int)
{
if (numIdentifiers == identifiersCapacity) {
identifiersCapacity = (identifiersCapacity == 0) ? initialCapacity : identifiersCapacity *growthFactor;
return identifier;
}
-UString *Lexer::makeUString(KJS::UChar *buffer, unsigned int pos)
+// FIXME: this completely ignores its parameters, instead using buffer16 and pos16 - wtf?
+UString *Lexer::makeUString(KJS::UChar*, unsigned int)
{
if (numStrings == stringsCapacity) {
stringsCapacity = (stringsCapacity == 0) ? initialCapacity : stringsCapacity *growthFactor;
* Helper for getStaticFunctionSlot and getStaticPropertySlot
*/
template <class FuncImp>
- inline JSValue *staticFunctionGetter(ExecState *exec, JSObject *originalObject, const Identifier& propertyName, const PropertySlot& slot)
+ inline JSValue *staticFunctionGetter(ExecState* exec, JSObject*, const Identifier& propertyName, const PropertySlot& slot)
{
// Look for cached value in dynamic map of properties (in JSObject)
JSObject *thisObj = slot.slotBase();
* Helper for getStaticValueSlot and getStaticPropertySlot
*/
template <class ThisImp>
- inline JSValue *staticValueGetter(ExecState *exec, JSObject *originalObject, const Identifier&, const PropertySlot& slot)
+ inline JSValue *staticValueGetter(ExecState* exec, JSObject*, const Identifier&, const PropertySlot& slot)
{
- ThisImp *thisObj = static_cast<ThisImp *>(slot.slotBase());
- const HashEntry *entry = slot.staticEntry();
+ ThisImp* thisObj = static_cast<ThisImp*>(slot.slotBase());
+ const HashEntry* entry = slot.staticEntry();
return thisObj->getValueProperty(exec, entry->value);
}
return true; // continue
}
-void StatementNode::processFuncDecl(ExecState *exec)
+void StatementNode::processFuncDecl(ExecState*)
{
}
// ------------------------------ PropertyNode -----------------------------
// ECMA 11.1.5
-JSValue *PropertyNode::evaluate(ExecState *exec)
+JSValue *PropertyNode::evaluate(ExecState*)
{
assert(false);
return jsNull();
// ---------------------------- PropertyNameNode -------------------------------
// ECMA 11.1.5
-JSValue *PropertyNameNode::evaluate(ExecState *)
+JSValue *PropertyNameNode::evaluate(ExecState*)
{
JSValue *s;
MIN_VALUE NumberObjectImp::MinValue DontEnum|DontDelete|ReadOnly
@end
*/
-NumberObjectImp::NumberObjectImp(ExecState *exec,
- FunctionPrototype *funcProto,
- NumberPrototype *numberProto)
+NumberObjectImp::NumberObjectImp(ExecState*, FunctionPrototype* funcProto, NumberPrototype* numberProto)
: InternalFunctionImp(funcProto)
{
// Number.Prototype
putDirect(lengthPropertyName, jsNumber(1), ReadOnly|DontDelete|DontEnum);
}
-bool NumberObjectImp::getOwnPropertySlot(ExecState *exec, const Identifier& propertyName, PropertySlot& slot)
+bool NumberObjectImp::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
{
return getStaticValueSlot<NumberObjectImp, InternalFunctionImp>(exec, &numberTable, this, propertyName, slot);
}
return 0;
}
-void JSObject::defineGetter(ExecState *exec, const Identifier& propertyName, JSObject *getterFunc)
+void JSObject::defineGetter(ExecState*, const Identifier& propertyName, JSObject* getterFunc)
{
JSValue *o = getDirect(propertyName);
GetterSetterImp *gs;
gs->setGetter(getterFunc);
}
-void JSObject::defineSetter(ExecState *exec, const Identifier& propertyName, JSObject *setterFunc)
+void JSObject::defineSetter(ExecState*, const Identifier& propertyName, JSObject* setterFunc)
{
JSValue *o = getDirect(propertyName);
GetterSetterImp *gs;
return false;
}
-bool JSObject::hasInstance(ExecState */*exec*/, JSValue */*value*/)
+bool JSObject::hasInstance(ExecState *, JSValue *)
{
assert(false);
return false;
}
-bool JSObject::propertyIsEnumerable(ExecState *exec, const Identifier &propertyName) const
+bool JSObject::propertyIsEnumerable(ExecState*, const Identifier& propertyName) const
{
int attributes;
// ------------------------------ ObjectObjectImp --------------------------------
-ObjectObjectImp::ObjectObjectImp(ExecState *exec,
- ObjectPrototype *objProto,
- FunctionPrototype *funcProto)
+ObjectObjectImp::ObjectObjectImp(ExecState*, ObjectPrototype* objProto, FunctionPrototype* funcProto)
: InternalFunctionImp(funcProto)
{
// ECMA 15.2.3.1
namespace KJS {
-JSValue *PropertySlot::undefinedGetter(ExecState *, JSObject *, const Identifier& propertyName, const PropertySlot& slot)
+JSValue *PropertySlot::undefinedGetter(ExecState*, JSObject*, const Identifier&, const PropertySlot&)
{
return jsUndefined();
}
-JSValue *PropertySlot::functionGetter(ExecState *exec, JSObject *originalObject, const Identifier&, const PropertySlot& slot)
+JSValue *PropertySlot::functionGetter(ExecState* exec, JSObject* originalObject, const Identifier&, const PropertySlot& slot)
{
return slot.m_data.getterFunc->call(exec, originalObject, List::empty());
}
{
}
-Identifier Reference::getPropertyName(ExecState *exec) const
+Identifier Reference::getPropertyName(ExecState*) const
{
if (propertyNameIsNumber && prop.isNull())
prop = Identifier::from(propertyNameAsNumber);
return &node->reference;
}
-const Reference &ReferenceListIterator::operator++(int i)
+const Reference &ReferenceListIterator::operator++(int)
{
const Reference &ref = node->reference;
node = node->next;
@end
*/
-RegExpObjectImp::RegExpObjectImp(ExecState *exec,
- FunctionPrototype *funcProto,
- RegExpPrototype *regProto)
+RegExpObjectImp::RegExpObjectImp(ExecState*, FunctionPrototype* funcProto, RegExpPrototype* regProto)
: InternalFunctionImp(funcProto), multiline(false), lastInput(""), lastNumSubPatterns(0)
{
return getStaticValueSlot<RegExpObjectImp, InternalFunctionImp>(exec, &RegExpTable, this, propertyName, slot);
}
-JSValue *RegExpObjectImp::getValueProperty(ExecState *exec, int token) const
+JSValue *RegExpObjectImp::getValueProperty(ExecState*, int token) const
{
switch (token) {
case Dollar1:
lookupPut<RegExpObjectImp, InternalFunctionImp>(exec, propertyName, value, attr, &RegExpTable, this);
}
-void RegExpObjectImp::putValueProperty(ExecState *exec, int token, JSValue *value, int attr)
+void RegExpObjectImp::putValueProperty(ExecState *exec, int token, JSValue *value, int)
{
switch (token) {
case Input:
setInternalValue(jsString(string));
}
-JSValue *StringInstance::lengthGetter(ExecState *exec, JSObject *originalObject, const Identifier& propertyName, const PropertySlot &slot)
+JSValue *StringInstance::lengthGetter(ExecState* exec, JSObject*, const Identifier&, const PropertySlot &slot)
{
- return jsNumber(static_cast<StringInstance *>(slot.slotBase())->internalValue()->toString(exec).size());
+ return jsNumber(static_cast<StringInstance*>(slot.slotBase())->internalValue()->toString(exec).size());
}
-JSValue *StringInstance::indexGetter(ExecState *exec, JSObject *originalObject, const Identifier& propertyName, const PropertySlot &slot)
+JSValue *StringInstance::indexGetter(ExecState* exec, JSObject*, const Identifier&, const PropertySlot &slot)
{
const UChar c = static_cast<StringInstance *>(slot.slotBase())->internalValue()->toString(exec)[slot.index()];
return jsString(UString(&c, 1));
@end
*/
// ECMA 15.5.4
-StringPrototype::StringPrototype(ExecState *exec,
- ObjectPrototype *objProto)
+StringPrototype::StringPrototype(ExecState*, ObjectPrototype* objProto)
: StringInstance(objProto)
{
// The constructor will be added later, after StringObjectImp has been built
}
-void KXCLog(const char *file, int line, const char *function, KXCLogChannel *channel, const char *format, ...)
+void KXCLog(const char*, int, const char*, KXCLogChannel *channel, const char *format, ...)
{
if (channel->state == KXCLogChannelUninitialized) {
channel->state = KXCLogChannelOff;
return true;
}
+#if ASSERT_DISABLED
+bool TCMalloc_PageHeap::CheckList(Span*, Length, Length) {
+ return true;
+}
+#else
bool TCMalloc_PageHeap::CheckList(Span* list, Length min_pages, Length max_pages) {
for (Span* s = list->next; s != list; s = s->next) {
CHECK_CONDITION(s->free);
}
return true;
}
+#endif
//-------------------------------------------------------------------
// Free list
#endif
}
+
+#if CHECK_HASHTABLE_ITERATORS
void checkValidity(const const_iterator& other) const
{
-#if CHECK_HASHTABLE_ITERATORS
assert(m_table);
assert(other.m_table);
assert(m_table == other.m_table);
-#endif
}
+#else
+ void checkValidity(const const_iterator&) const { }
+#endif
PointerType m_position;
PointerType m_endPosition;
public:
static unsigned hash(const Key& key) { return HashFunctions::hash(key); }
static bool equal(const Key& a, const Key& b) { return HashFunctions::equal(a, b); }
- static void translate(Value& location, const Key& key, const Value& value, unsigned) { location = value; }
+ static void translate(Value& location, const Key&, const Value& value, unsigned) { location = value; }
};
template<typename Key, typename Value, typename Extractor, typename HashFunctions, typename Traits, typename KeyTraits>
--- /dev/null
+// -*- mode: c++; c-basic-offset: 4 -*-
+/*
+ * Copyright (C) 2006 Apple Computer, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ *
+ */
+
+#ifndef KXMLCORE_UNUSED_PARAM
+#define KXMLCORE_UNUSED_PARAM
+
+// don't use this for C++, it should only be used in plain C files or
+// ObjC methods, where leaving off the parameter name is not allowed.
+
+#define UNUSED_PARAM(x) (void)x
+
+#endif // KXMLCORE_UNUSED_PARM
#include "pcre_internal.h"
+#include <kxmlcore/UnusedParam.h>
/*************************************************
if (c == 0) return (entry[0] << 8) + entry[1];
if (c > 0) bot = mid + 1; else top = mid;
}
+#else
+ UNUSED_PARAM(code);
+ UNUSED_PARAM(stringname);
#endif
return PCRE_ERROR_NOSUBSTRING;