diff options
Diffstat (limited to 'deps/v8/src/handles.h')
-rw-r--r-- | deps/v8/src/handles.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/deps/v8/src/handles.h b/deps/v8/src/handles.h index b35693e95f..032fbe4815 100644 --- a/deps/v8/src/handles.h +++ b/deps/v8/src/handles.h @@ -95,6 +95,13 @@ class Handle { }; +// Convenience wrapper. +template<class T> +inline Handle<T> handle(T* t, Isolate* isolate) { + return Handle<T>(t, isolate); +} + + class DeferredHandles; class HandleScopeImplementer; @@ -209,7 +216,8 @@ Handle<String> FlattenGetString(Handle<String> str); int Utf8Length(Handle<String> str); -Handle<Object> SetProperty(Handle<Object> object, +Handle<Object> SetProperty(Isolate* isolate, + Handle<Object> object, Handle<Object> key, Handle<Object> value, PropertyAttributes attributes, @@ -260,6 +268,7 @@ int GetScriptLineNumber(Handle<Script> script, int code_position); // The safe version does not make heap allocations but may work much slower. int GetScriptLineNumberSafe(Handle<Script> script, int code_position); int GetScriptColumnNumber(Handle<Script> script, int code_position); +Handle<Object> GetScriptNameOrSourceURL(Handle<Script> script); // Computes the enumerable keys from interceptors. Used for debug mirrors and // by GetKeysInFixedArrayFor below. @@ -276,6 +285,7 @@ Handle<FixedArray> GetKeysInFixedArrayFor(Handle<JSReceiver> object, KeyCollectionType type, bool* threw); Handle<JSArray> GetKeysFor(Handle<JSReceiver> object, bool* threw); +Handle<FixedArray> ReduceFixedArrayTo(Handle<FixedArray> array, int length); Handle<FixedArray> GetEnumPropertyKeys(Handle<JSObject> object, bool cache_result); |