aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4objectproto_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-09-12 11:13:03 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-18 13:13:47 +0200
commit16f92ad85cf665d863ded5eeaaa7fc3f90820b3f (patch)
tree74b3477b9d6c023730835f1c478ceb6eaec68a2b /src/qml/jsruntime/qv4objectproto_p.h
parent7d4e61dd824706984030c58684fa844ff9cde251 (diff)
Convert builtin methods to return a ReturnedValue
Change-Id: I6b75adbf53a5be0deab023d2eed98ce2a7915551 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4objectproto_p.h')
-rw-r--r--src/qml/jsruntime/qv4objectproto_p.h54
1 files changed, 27 insertions, 27 deletions
diff --git a/src/qml/jsruntime/qv4objectproto_p.h b/src/qml/jsruntime/qv4objectproto_p.h
index a8294d2f47..f9f6853eb9 100644
--- a/src/qml/jsruntime/qv4objectproto_p.h
+++ b/src/qml/jsruntime/qv4objectproto_p.h
@@ -66,35 +66,35 @@ struct ObjectPrototype: Object
void init(ExecutionContext *ctx, const Value &ctor);
- static Value method_getPrototypeOf(SimpleCallContext *ctx);
- static Value method_getOwnPropertyDescriptor(SimpleCallContext *ctx);
- static Value method_getOwnPropertyNames(SimpleCallContext *context);
- static Value method_create(SimpleCallContext *ctx);
- static Value method_defineProperty(SimpleCallContext *ctx);
- static Value method_defineProperties(SimpleCallContext *ctx);
- static Value method_seal(SimpleCallContext *ctx);
- static Value method_freeze(SimpleCallContext *ctx);
- static Value method_preventExtensions(SimpleCallContext *ctx);
- static Value method_isSealed(SimpleCallContext *ctx);
- static Value method_isFrozen(SimpleCallContext *ctx);
- static Value method_isExtensible(SimpleCallContext *ctx);
- static Value method_keys(SimpleCallContext *ctx);
-
- static Value method_toString(SimpleCallContext *ctx);
- static Value method_toLocaleString(SimpleCallContext *ctx);
- static Value method_valueOf(SimpleCallContext *ctx);
- static Value method_hasOwnProperty(SimpleCallContext *ctx);
- static Value method_isPrototypeOf(SimpleCallContext *ctx);
- static Value method_propertyIsEnumerable(SimpleCallContext *ctx);
-
- static Value method_defineGetter(SimpleCallContext *ctx);
- static Value method_defineSetter(SimpleCallContext *ctx);
-
- static Value method_get_proto(SimpleCallContext *ctx);
- static Value method_set_proto(SimpleCallContext *ctx);
+ static ReturnedValue method_getPrototypeOf(SimpleCallContext *ctx);
+ static ReturnedValue method_getOwnPropertyDescriptor(SimpleCallContext *ctx);
+ static ReturnedValue method_getOwnPropertyNames(SimpleCallContext *context);
+ static ReturnedValue method_create(SimpleCallContext *ctx);
+ static ReturnedValue method_defineProperty(SimpleCallContext *ctx);
+ static ReturnedValue method_defineProperties(SimpleCallContext *ctx);
+ static ReturnedValue method_seal(SimpleCallContext *ctx);
+ static ReturnedValue method_freeze(SimpleCallContext *ctx);
+ static ReturnedValue method_preventExtensions(SimpleCallContext *ctx);
+ static ReturnedValue method_isSealed(SimpleCallContext *ctx);
+ static ReturnedValue method_isFrozen(SimpleCallContext *ctx);
+ static ReturnedValue method_isExtensible(SimpleCallContext *ctx);
+ static ReturnedValue method_keys(SimpleCallContext *ctx);
+
+ static ReturnedValue method_toString(SimpleCallContext *ctx);
+ static ReturnedValue method_toLocaleString(SimpleCallContext *ctx);
+ static ReturnedValue method_valueOf(SimpleCallContext *ctx);
+ static ReturnedValue method_hasOwnProperty(SimpleCallContext *ctx);
+ static ReturnedValue method_isPrototypeOf(SimpleCallContext *ctx);
+ static ReturnedValue method_propertyIsEnumerable(SimpleCallContext *ctx);
+
+ static ReturnedValue method_defineGetter(SimpleCallContext *ctx);
+ static ReturnedValue method_defineSetter(SimpleCallContext *ctx);
+
+ static ReturnedValue method_get_proto(SimpleCallContext *ctx);
+ static ReturnedValue method_set_proto(SimpleCallContext *ctx);
static void toPropertyDescriptor(ExecutionContext *ctx, Value v, Property *desc, PropertyAttributes *attrs);
- static Value fromPropertyDescriptor(ExecutionContext *ctx, const Property *desc, PropertyAttributes attrs);
+ static ReturnedValue fromPropertyDescriptor(ExecutionContext *ctx, const Property *desc, PropertyAttributes attrs);
static ArrayObject *getOwnPropertyNames(ExecutionEngine *v4, const Value &o);
};