Chromium Code Reviews| Index: src/runtime.cc |
| diff --git a/src/runtime.cc b/src/runtime.cc |
| index b4136424145111fbbac0004896f8a0b0f879515d..9a4470e30e7aef5d33ab88dfe08003ca5e08fe3a 100644 |
| --- a/src/runtime.cc |
| +++ b/src/runtime.cc |
| @@ -482,7 +482,7 @@ MUST_USE_RESULT static MaybeHandle<Object> CreateLiteralBoilerplate( |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_CreateObjectLiteral) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_CreateObjectLiteral) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 4); |
| CONVERT_ARG_HANDLE_CHECKED(FixedArray, literals, 0); |
| @@ -593,7 +593,7 @@ static MaybeHandle<JSObject> CreateArrayLiteralImpl(Isolate* isolate, |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_CreateArrayLiteral) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_CreateArrayLiteral) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 4); |
| CONVERT_ARG_HANDLE_CHECKED(FixedArray, literals, 0); |
| @@ -609,7 +609,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_CreateArrayLiteral) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_CreateArrayLiteralStubBailout) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_CreateArrayLiteralStubBailout) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 3); |
| CONVERT_ARG_HANDLE_CHECKED(FixedArray, literals, 0); |
| @@ -624,7 +624,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_CreateArrayLiteralStubBailout) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_CreateSymbol) { |
| +RUNTIME_FUNCTION(Object*, Runtime_CreateSymbol) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(Object, name, 0); |
| @@ -635,7 +635,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_CreateSymbol) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_CreatePrivateSymbol) { |
| +RUNTIME_FUNCTION(Object*, Runtime_CreatePrivateSymbol) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(Object, name, 0); |
| @@ -646,7 +646,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_CreatePrivateSymbol) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_CreateGlobalPrivateSymbol) { |
| +RUNTIME_FUNCTION(Object*, Runtime_CreateGlobalPrivateSymbol) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(String, name, 0); |
| @@ -669,7 +669,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_CreateGlobalPrivateSymbol) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_NewSymbolWrapper) { |
| +RUNTIME_FUNCTION(Object*, Runtime_NewSymbolWrapper) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(Symbol, symbol, 0); |
| @@ -677,7 +677,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NewSymbolWrapper) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_SymbolDescription) { |
| +RUNTIME_FUNCTION(Object*, Runtime_SymbolDescription) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_CHECKED(Symbol, symbol, 0); |
| @@ -685,14 +685,14 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SymbolDescription) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_SymbolRegistry) { |
| +RUNTIME_FUNCTION(Object*, Runtime_SymbolRegistry) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 0); |
| return *isolate->GetSymbolRegistry(); |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_SymbolIsPrivate) { |
| +RUNTIME_FUNCTION(Object*, Runtime_SymbolIsPrivate) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_CHECKED(Symbol, symbol, 0); |
| @@ -700,7 +700,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SymbolIsPrivate) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_CreateJSProxy) { |
| +RUNTIME_FUNCTION(Object*, Runtime_CreateJSProxy) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(JSReceiver, handler, 0); |
| @@ -710,7 +710,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_CreateJSProxy) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_CreateJSFunctionProxy) { |
| +RUNTIME_FUNCTION(Object*, Runtime_CreateJSFunctionProxy) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 4); |
| CONVERT_ARG_HANDLE_CHECKED(JSReceiver, handler, 0); |
| @@ -724,7 +724,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_CreateJSFunctionProxy) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_IsJSProxy) { |
| +RUNTIME_FUNCTION(Object*, Runtime_IsJSProxy) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(Object, obj, 0); |
| @@ -732,7 +732,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_IsJSProxy) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_IsJSFunctionProxy) { |
| +RUNTIME_FUNCTION(Object*, Runtime_IsJSFunctionProxy) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(Object, obj, 0); |
| @@ -740,7 +740,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_IsJSFunctionProxy) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetHandler) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetHandler) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_CHECKED(JSProxy, proxy, 0); |
| @@ -748,7 +748,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetHandler) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetCallTrap) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetCallTrap) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_CHECKED(JSFunctionProxy, proxy, 0); |
| @@ -756,7 +756,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetCallTrap) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetConstructTrap) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetConstructTrap) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_CHECKED(JSFunctionProxy, proxy, 0); |
| @@ -764,7 +764,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetConstructTrap) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_Fix) { |
| +RUNTIME_FUNCTION(Object*, Runtime_Fix) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(JSProxy, proxy, 0); |
| @@ -863,7 +863,7 @@ void Runtime::NeuterArrayBuffer(Handle<JSArrayBuffer> array_buffer) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_ArrayBufferInitialize) { |
| +RUNTIME_FUNCTION(Object*, Runtime_ArrayBufferInitialize) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(JSArrayBuffer, holder, 0); |
| @@ -884,7 +884,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_ArrayBufferInitialize) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_ArrayBufferGetByteLength) { |
| +RUNTIME_FUNCTION(Object*, Runtime_ArrayBufferGetByteLength) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_CHECKED(JSArrayBuffer, holder, 0); |
| @@ -892,7 +892,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_ArrayBufferGetByteLength) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_ArrayBufferSliceImpl) { |
| +RUNTIME_FUNCTION(Object*, Runtime_ArrayBufferSliceImpl) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 3); |
| CONVERT_ARG_HANDLE_CHECKED(JSArrayBuffer, source, 0); |
| @@ -914,7 +914,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_ArrayBufferSliceImpl) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_ArrayBufferIsView) { |
| +RUNTIME_FUNCTION(Object*, Runtime_ArrayBufferIsView) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_CHECKED(Object, object, 0); |
| @@ -922,7 +922,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_ArrayBufferIsView) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_ArrayBufferNeuter) { |
| +RUNTIME_FUNCTION(Object*, Runtime_ArrayBufferNeuter) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(JSArrayBuffer, array_buffer, 0); |
| @@ -964,7 +964,7 @@ void Runtime::ArrayIdToTypeAndSize( |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_TypedArrayInitialize) { |
| +RUNTIME_FUNCTION(Object*, Runtime_TypedArrayInitialize) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 5); |
| CONVERT_ARG_HANDLE_CHECKED(JSTypedArray, holder, 0); |
| @@ -1046,7 +1046,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_TypedArrayInitialize) { |
| // initializes backing store using memove. |
| // |
| // Returns true if backing store was initialized or false otherwise. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_TypedArrayInitializeFromArrayLike) { |
| +RUNTIME_FUNCTION(Object*, Runtime_TypedArrayInitializeFromArrayLike) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 4); |
| CONVERT_ARG_HANDLE_CHECKED(JSTypedArray, holder, 0); |
| @@ -1148,7 +1148,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_TypedArrayInitializeFromArrayLike) { |
| #define BUFFER_VIEW_GETTER(Type, getter, accessor) \ |
| - RUNTIME_FUNCTION(MaybeObject*, Runtime_##Type##Get##getter) { \ |
| + RUNTIME_FUNCTION(Object*, Runtime_##Type##Get##getter) { \ |
| HandleScope scope(isolate); \ |
| ASSERT(args.length() == 1); \ |
| CONVERT_ARG_HANDLE_CHECKED(JS##Type, holder, 0); \ |
| @@ -1162,7 +1162,7 @@ BUFFER_VIEW_GETTER(DataView, Buffer, buffer) |
| #undef BUFFER_VIEW_GETTER |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_TypedArrayGetBuffer) { |
| +RUNTIME_FUNCTION(Object*, Runtime_TypedArrayGetBuffer) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(JSTypedArray, holder, 0); |
| @@ -1185,7 +1185,7 @@ enum TypedArraySetResultCodes { |
| }; |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_TypedArraySetFastCases) { |
| +RUNTIME_FUNCTION(Object*, Runtime_TypedArraySetFastCases) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 3); |
| CONVERT_ARG_HANDLE_CHECKED(Object, target_obj, 0); |
| @@ -1244,7 +1244,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_TypedArraySetFastCases) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_TypedArrayMaxSizeInHeap) { |
| +RUNTIME_FUNCTION(Object*, Runtime_TypedArrayMaxSizeInHeap) { |
| ASSERT(args.length() == 0); |
| ASSERT_OBJECT_SIZE( |
| FLAG_typed_array_max_size_in_heap + FixedTypedArrayBase::kDataOffset); |
| @@ -1252,7 +1252,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_TypedArrayMaxSizeInHeap) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DataViewInitialize) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DataViewInitialize) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 4); |
| CONVERT_ARG_HANDLE_CHECKED(JSDataView, holder, 0); |
| @@ -1398,7 +1398,7 @@ static bool DataViewSetValue( |
| #define DATA_VIEW_GETTER(TypeName, Type, Converter) \ |
| - RUNTIME_FUNCTION(MaybeObject*, Runtime_DataViewGet##TypeName) { \ |
| + RUNTIME_FUNCTION(Object*, Runtime_DataViewGet##TypeName) { \ |
| HandleScope scope(isolate); \ |
| ASSERT(args.length() == 3); \ |
| CONVERT_ARG_HANDLE_CHECKED(JSDataView, holder, 0); \ |
| @@ -1480,7 +1480,7 @@ double DataViewConvertValue<double>(double value) { |
| #define DATA_VIEW_SETTER(TypeName, Type) \ |
| - RUNTIME_FUNCTION(MaybeObject*, Runtime_DataViewSet##TypeName) { \ |
| + RUNTIME_FUNCTION(Object*, Runtime_DataViewSet##TypeName) { \ |
| HandleScope scope(isolate); \ |
| ASSERT(args.length() == 4); \ |
| CONVERT_ARG_HANDLE_CHECKED(JSDataView, holder, 0); \ |
| @@ -1510,7 +1510,7 @@ DATA_VIEW_SETTER(Float64, double) |
| #undef DATA_VIEW_SETTER |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_SetInitialize) { |
| +RUNTIME_FUNCTION(Object*, Runtime_SetInitialize) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(JSSet, holder, 0); |
| @@ -1520,7 +1520,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetInitialize) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_SetAdd) { |
| +RUNTIME_FUNCTION(Object*, Runtime_SetAdd) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(JSSet, holder, 0); |
| @@ -1532,7 +1532,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetAdd) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_SetHas) { |
| +RUNTIME_FUNCTION(Object*, Runtime_SetHas) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(JSSet, holder, 0); |
| @@ -1542,7 +1542,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetHas) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_SetDelete) { |
| +RUNTIME_FUNCTION(Object*, Runtime_SetDelete) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(JSSet, holder, 0); |
| @@ -1554,7 +1554,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetDelete) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_SetGetSize) { |
| +RUNTIME_FUNCTION(Object*, Runtime_SetGetSize) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(JSSet, holder, 0); |
| @@ -1563,7 +1563,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetGetSize) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_MapInitialize) { |
| +RUNTIME_FUNCTION(Object*, Runtime_MapInitialize) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(JSMap, holder, 0); |
| @@ -1573,7 +1573,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_MapInitialize) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_MapGet) { |
| +RUNTIME_FUNCTION(Object*, Runtime_MapGet) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(JSMap, holder, 0); |
| @@ -1584,7 +1584,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_MapGet) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_MapHas) { |
| +RUNTIME_FUNCTION(Object*, Runtime_MapHas) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(JSMap, holder, 0); |
| @@ -1595,7 +1595,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_MapHas) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_MapDelete) { |
| +RUNTIME_FUNCTION(Object*, Runtime_MapDelete) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(JSMap, holder, 0); |
| @@ -1609,7 +1609,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_MapDelete) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_MapSet) { |
| +RUNTIME_FUNCTION(Object*, Runtime_MapSet) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 3); |
| CONVERT_ARG_HANDLE_CHECKED(JSMap, holder, 0); |
| @@ -1622,7 +1622,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_MapSet) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_MapGetSize) { |
| +RUNTIME_FUNCTION(Object*, Runtime_MapGetSize) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(JSMap, holder, 0); |
| @@ -1641,7 +1641,7 @@ static JSWeakCollection* WeakCollectionInitialize(Isolate* isolate, |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_WeakCollectionInitialize) { |
| +RUNTIME_FUNCTION(Object*, Runtime_WeakCollectionInitialize) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(JSWeakCollection, weak_collection, 0); |
| @@ -1649,7 +1649,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_WeakCollectionInitialize) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_WeakCollectionGet) { |
| +RUNTIME_FUNCTION(Object*, Runtime_WeakCollectionGet) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(JSWeakCollection, weak_collection, 0); |
| @@ -1661,7 +1661,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_WeakCollectionGet) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_WeakCollectionHas) { |
| +RUNTIME_FUNCTION(Object*, Runtime_WeakCollectionHas) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(JSWeakCollection, weak_collection, 0); |
| @@ -1673,7 +1673,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_WeakCollectionHas) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_WeakCollectionDelete) { |
| +RUNTIME_FUNCTION(Object*, Runtime_WeakCollectionDelete) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(JSWeakCollection, weak_collection, 0); |
| @@ -1688,7 +1688,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_WeakCollectionDelete) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_WeakCollectionSet) { |
| +RUNTIME_FUNCTION(Object*, Runtime_WeakCollectionSet) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 3); |
| CONVERT_ARG_HANDLE_CHECKED(JSWeakCollection, weak_collection, 0); |
| @@ -1702,7 +1702,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_WeakCollectionSet) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_ClassOf) { |
| +RUNTIME_FUNCTION(Object*, Runtime_ClassOf) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_CHECKED(Object, obj, 0); |
| @@ -1711,7 +1711,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_ClassOf) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetPrototype) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetPrototype) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(Object, obj, 0); |
| @@ -1745,7 +1745,7 @@ static inline Handle<Object> GetPrototypeSkipHiddenPrototypes( |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_SetPrototype) { |
| +RUNTIME_FUNCTION(Object*, Runtime_SetPrototype) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0); |
| @@ -1777,7 +1777,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetPrototype) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_IsInPrototypeChain) { |
| +RUNTIME_FUNCTION(Object*, Runtime_IsInPrototypeChain) { |
| HandleScope shs(isolate); |
| ASSERT(args.length() == 2); |
| // See ECMA-262, section 15.3.5.3, page 88 (steps 5 - 8). |
| @@ -1981,7 +1981,7 @@ MUST_USE_RESULT static MaybeHandle<Object> GetOwnProperty(Isolate* isolate, |
| // [false, value, Writeable, Enumerable, Configurable] |
| // if args[1] is an accessor on args[0] |
| // [true, GetFunction, SetFunction, Enumerable, Configurable] |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetOwnProperty) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetOwnProperty) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0); |
| @@ -1993,7 +1993,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetOwnProperty) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_PreventExtensions) { |
| +RUNTIME_FUNCTION(Object*, Runtime_PreventExtensions) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0); |
| @@ -2004,7 +2004,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_PreventExtensions) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_IsExtensible) { |
| +RUNTIME_FUNCTION(Object*, Runtime_IsExtensible) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_CHECKED(JSObject, obj, 0); |
| @@ -2018,7 +2018,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_IsExtensible) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_RegExpCompile) { |
| +RUNTIME_FUNCTION(Object*, Runtime_RegExpCompile) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 3); |
| CONVERT_ARG_HANDLE_CHECKED(JSRegExp, re, 0); |
| @@ -2031,7 +2031,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_RegExpCompile) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_CreateApiFunction) { |
| +RUNTIME_FUNCTION(Object*, Runtime_CreateApiFunction) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(FunctionTemplateInfo, data, 0); |
| @@ -2039,7 +2039,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_CreateApiFunction) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_IsTemplate) { |
| +RUNTIME_FUNCTION(Object*, Runtime_IsTemplate) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(Object, arg, 0); |
| @@ -2048,7 +2048,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_IsTemplate) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetTemplateField) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetTemplateField) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_CHECKED(HeapObject, templ, 0); |
| @@ -2067,7 +2067,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetTemplateField) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DisableAccessChecks) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DisableAccessChecks) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(HeapObject, object, 0); |
| @@ -2087,7 +2087,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DisableAccessChecks) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_EnableAccessChecks) { |
| +RUNTIME_FUNCTION(Object*, Runtime_EnableAccessChecks) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(HeapObject, object, 0); |
| @@ -2116,7 +2116,7 @@ static Handle<Object> InstantiateAccessorComponent(Isolate* isolate, |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_SetAccessorProperty) { |
| +RUNTIME_FUNCTION(Object*, Runtime_SetAccessorProperty) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 6); |
| CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0); |
| @@ -2137,7 +2137,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetAccessorProperty) { |
| } |
| -static Failure* ThrowRedeclarationError(Isolate* isolate, Handle<String> name) { |
| +static Object* ThrowRedeclarationError(Isolate* isolate, Handle<String> name) { |
| HandleScope scope(isolate); |
| Handle<Object> args[1] = { name }; |
| Handle<Object> error = isolate->factory()->NewTypeError( |
| @@ -2146,7 +2146,7 @@ static Failure* ThrowRedeclarationError(Isolate* isolate, Handle<String> name) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_DeclareGlobals) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_DeclareGlobals) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 3); |
| Handle<GlobalObject> global = Handle<GlobalObject>( |
| @@ -2242,7 +2242,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_DeclareGlobals) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_DeclareContextSlot) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_DeclareContextSlot) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 4); |
| @@ -2342,7 +2342,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_DeclareContextSlot) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_InitializeVarGlobal) { |
| +RUNTIME_FUNCTION(Object*, Runtime_InitializeVarGlobal) { |
| HandleScope scope(isolate); |
| // args[0] == name |
| // args[1] == language_mode |
| @@ -2402,7 +2402,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_InitializeVarGlobal) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_InitializeConstGlobal) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_InitializeConstGlobal) { |
| SealHandleScope shs(isolate); |
| // All constants are declared with an initial value. The name |
| // of the constant is the first argument and the initial value |
| @@ -2479,7 +2479,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_InitializeConstGlobal) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_InitializeConstContextSlot) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_InitializeConstContextSlot) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 3); |
| @@ -2575,7 +2575,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_InitializeConstContextSlot) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, |
| +RUNTIME_FUNCTION(Object*, |
| Runtime_OptimizeObjectForAddingMultipleProperties) { |
|
Jakob Kummerow
2014/04/17 14:20:12
nit: fits on one line now
|
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -2588,7 +2588,7 @@ RUNTIME_FUNCTION(MaybeObject*, |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_RegExpExec) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_RegExpExec) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 4); |
| CONVERT_ARG_HANDLE_CHECKED(JSRegExp, regexp, 0); |
| @@ -2609,7 +2609,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_RegExpExec) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_RegExpConstructResult) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_RegExpConstructResult) { |
| HandleScope handle_scope(isolate); |
| ASSERT(args.length() == 3); |
| CONVERT_SMI_ARG_CHECKED(size, 0); |
| @@ -2630,7 +2630,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_RegExpConstructResult) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_RegExpInitializeObject) { |
| +RUNTIME_FUNCTION(Object*, Runtime_RegExpInitializeObject) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 5); |
| CONVERT_ARG_HANDLE_CHECKED(JSRegExp, regexp, 0); |
| @@ -2688,7 +2688,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_RegExpInitializeObject) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_FinishArrayPrototypeSetup) { |
| +RUNTIME_FUNCTION(Object*, Runtime_FinishArrayPrototypeSetup) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(JSArray, prototype, 0); |
| @@ -2717,7 +2717,7 @@ static Handle<JSFunction> InstallBuiltin(Isolate* isolate, |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_SpecialArrayFunctions) { |
| +RUNTIME_FUNCTION(Object*, Runtime_SpecialArrayFunctions) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(JSObject, holder, 0); |
| @@ -2734,7 +2734,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SpecialArrayFunctions) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_IsSloppyModeFunction) { |
| +RUNTIME_FUNCTION(Object*, Runtime_IsSloppyModeFunction) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_CHECKED(JSReceiver, callable, 0); |
| @@ -2753,7 +2753,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_IsSloppyModeFunction) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetDefaultReceiver) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetDefaultReceiver) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_CHECKED(JSReceiver, callable, 0); |
| @@ -2782,7 +2782,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetDefaultReceiver) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_MaterializeRegExpLiteral) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_MaterializeRegExpLiteral) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 4); |
| CONVERT_ARG_HANDLE_CHECKED(FixedArray, literals, 0); |
| @@ -2808,7 +2808,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_MaterializeRegExpLiteral) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionGetName) { |
| +RUNTIME_FUNCTION(Object*, Runtime_FunctionGetName) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| @@ -2817,7 +2817,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionGetName) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionSetName) { |
| +RUNTIME_FUNCTION(Object*, Runtime_FunctionSetName) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 2); |
| @@ -2828,7 +2828,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionSetName) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionNameShouldPrintAsAnonymous) { |
| +RUNTIME_FUNCTION(Object*, Runtime_FunctionNameShouldPrintAsAnonymous) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_CHECKED(JSFunction, f, 0); |
| @@ -2837,7 +2837,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionNameShouldPrintAsAnonymous) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionMarkNameShouldPrintAsAnonymous) { |
| +RUNTIME_FUNCTION(Object*, Runtime_FunctionMarkNameShouldPrintAsAnonymous) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_CHECKED(JSFunction, f, 0); |
| @@ -2846,7 +2846,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionMarkNameShouldPrintAsAnonymous) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionIsGenerator) { |
| +RUNTIME_FUNCTION(Object*, Runtime_FunctionIsGenerator) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_CHECKED(JSFunction, f, 0); |
| @@ -2854,7 +2854,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionIsGenerator) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionRemovePrototype) { |
| +RUNTIME_FUNCTION(Object*, Runtime_FunctionRemovePrototype) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| @@ -2865,7 +2865,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionRemovePrototype) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionGetScript) { |
| +RUNTIME_FUNCTION(Object*, Runtime_FunctionGetScript) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| @@ -2877,7 +2877,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionGetScript) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionGetSourceCode) { |
| +RUNTIME_FUNCTION(Object*, Runtime_FunctionGetSourceCode) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| @@ -2887,7 +2887,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionGetSourceCode) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionGetScriptSourcePosition) { |
| +RUNTIME_FUNCTION(Object*, Runtime_FunctionGetScriptSourcePosition) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| @@ -2897,7 +2897,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionGetScriptSourcePosition) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionGetPositionForOffset) { |
| +RUNTIME_FUNCTION(Object*, Runtime_FunctionGetPositionForOffset) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 2); |
| @@ -2911,7 +2911,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionGetPositionForOffset) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionSetInstanceClassName) { |
| +RUNTIME_FUNCTION(Object*, Runtime_FunctionSetInstanceClassName) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 2); |
| @@ -2922,7 +2922,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionSetInstanceClassName) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionSetLength) { |
| +RUNTIME_FUNCTION(Object*, Runtime_FunctionSetLength) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 2); |
| @@ -2933,7 +2933,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionSetLength) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionSetPrototype) { |
| +RUNTIME_FUNCTION(Object*, Runtime_FunctionSetPrototype) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -2945,7 +2945,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionSetPrototype) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionSetReadOnlyPrototype) { |
| +RUNTIME_FUNCTION(Object*, Runtime_FunctionSetReadOnlyPrototype) { |
| HandleScope shs(isolate); |
| RUNTIME_ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); |
| @@ -2988,7 +2988,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionSetReadOnlyPrototype) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionIsAPIFunction) { |
| +RUNTIME_FUNCTION(Object*, Runtime_FunctionIsAPIFunction) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| @@ -2997,7 +2997,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionIsAPIFunction) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionIsBuiltin) { |
| +RUNTIME_FUNCTION(Object*, Runtime_FunctionIsBuiltin) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| @@ -3006,7 +3006,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionIsBuiltin) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_SetCode) { |
| +RUNTIME_FUNCTION(Object*, Runtime_SetCode) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -3020,7 +3020,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetCode) { |
| Handle<SharedFunctionInfo> source_shared(source->shared()); |
| if (!Compiler::EnsureCompiled(source, KEEP_EXCEPTION)) { |
| - return Failure::Exception(); |
| + return isolate->heap()->exception(); |
| } |
| // Mark both, the source and the target, as un-flushable because the |
| @@ -3072,7 +3072,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetCode) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_SetExpectedNumberOfProperties) { |
| +RUNTIME_FUNCTION(Object*, Runtime_SetExpectedNumberOfProperties) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(JSFunction, func, 0); |
| @@ -3095,7 +3095,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetExpectedNumberOfProperties) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_CreateJSGeneratorObject) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_CreateJSGeneratorObject) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 0); |
| @@ -3121,7 +3121,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_CreateJSGeneratorObject) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_SuspendJSGeneratorObject) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_SuspendJSGeneratorObject) { |
| HandleScope handle_scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(JSGeneratorObject, generator_object, 0); |
| @@ -3171,7 +3171,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_SuspendJSGeneratorObject) { |
| // inlined into GeneratorNext and GeneratorThrow. EmitGeneratorResumeResume is |
| // called in any case, as it needs to reconstruct the stack frame and make space |
| // for arguments and operands. |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_ResumeJSGeneratorObject) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_ResumeJSGeneratorObject) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 3); |
| CONVERT_ARG_CHECKED(JSGeneratorObject, generator_object, 0); |
| @@ -3219,7 +3219,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_ResumeJSGeneratorObject) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_ThrowGeneratorStateError) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_ThrowGeneratorStateError) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(JSGeneratorObject, generator, 0); |
| @@ -3232,7 +3232,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_ThrowGeneratorStateError) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_ObjectFreeze) { |
| +RUNTIME_FUNCTION(Object*, Runtime_ObjectFreeze) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0); |
| @@ -3242,7 +3242,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_ObjectFreeze) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_StringCharCodeAt) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_StringCharCodeAt) { |
| HandleScope handle_scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -3262,7 +3262,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_StringCharCodeAt) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_CharFromCode) { |
| +RUNTIME_FUNCTION(Object*, Runtime_CharFromCode) { |
| HandleScope handlescope(isolate); |
| ASSERT(args.length() == 1); |
| if (args[0]->IsNumber()) { |
| @@ -3918,7 +3918,7 @@ void FindStringIndicesDispatch(Isolate* isolate, |
| template<typename ResultSeqString> |
| -MUST_USE_RESULT static MaybeObject* StringReplaceGlobalAtomRegExpWithString( |
| +MUST_USE_RESULT static Object* StringReplaceGlobalAtomRegExpWithString( |
| Isolate* isolate, |
| Handle<String> subject, |
| Handle<JSRegExp> pattern_regexp, |
| @@ -4006,7 +4006,7 @@ MUST_USE_RESULT static MaybeObject* StringReplaceGlobalAtomRegExpWithString( |
| } |
| -MUST_USE_RESULT static MaybeObject* StringReplaceGlobalRegExpWithString( |
| +MUST_USE_RESULT static Object* StringReplaceGlobalRegExpWithString( |
| Isolate* isolate, |
| Handle<String> subject, |
| Handle<JSRegExp> regexp, |
| @@ -4038,11 +4038,11 @@ MUST_USE_RESULT static MaybeObject* StringReplaceGlobalRegExpWithString( |
| } |
| RegExpImpl::GlobalCache global_cache(regexp, subject, true, isolate); |
| - if (global_cache.HasException()) return Failure::Exception(); |
| + if (global_cache.HasException()) return isolate->heap()->exception(); |
| int32_t* current_match = global_cache.FetchNext(); |
| if (current_match == NULL) { |
| - if (global_cache.HasException()) return Failure::Exception(); |
| + if (global_cache.HasException()) return isolate->heap()->exception(); |
| return *subject; |
| } |
| @@ -4084,7 +4084,7 @@ MUST_USE_RESULT static MaybeObject* StringReplaceGlobalRegExpWithString( |
| current_match = global_cache.FetchNext(); |
| } while (current_match != NULL); |
| - if (global_cache.HasException()) return Failure::Exception(); |
| + if (global_cache.HasException()) return isolate->heap()->exception(); |
| if (prev < subject_length) { |
| builder.EnsureCapacity(2); |
| @@ -4103,7 +4103,7 @@ MUST_USE_RESULT static MaybeObject* StringReplaceGlobalRegExpWithString( |
| template <typename ResultSeqString> |
| -MUST_USE_RESULT static MaybeObject* StringReplaceGlobalRegExpWithEmptyString( |
| +MUST_USE_RESULT static Object* StringReplaceGlobalRegExpWithEmptyString( |
| Isolate* isolate, |
| Handle<String> subject, |
| Handle<JSRegExp> regexp, |
| @@ -4123,11 +4123,11 @@ MUST_USE_RESULT static MaybeObject* StringReplaceGlobalRegExpWithEmptyString( |
| } |
| RegExpImpl::GlobalCache global_cache(regexp, subject, true, isolate); |
| - if (global_cache.HasException()) return Failure::Exception(); |
| + if (global_cache.HasException()) return isolate->heap()->exception(); |
| int32_t* current_match = global_cache.FetchNext(); |
| if (current_match == NULL) { |
| - if (global_cache.HasException()) return Failure::Exception(); |
| + if (global_cache.HasException()) return isolate->heap()->exception(); |
| return *subject; |
| } |
| @@ -4164,7 +4164,7 @@ MUST_USE_RESULT static MaybeObject* StringReplaceGlobalRegExpWithEmptyString( |
| current_match = global_cache.FetchNext(); |
| } while (current_match != NULL); |
| - if (global_cache.HasException()) return Failure::Exception(); |
| + if (global_cache.HasException()) return isolate->heap()->exception(); |
| RegExpImpl::SetLastMatchInfo(last_match_info, |
| subject, |
| @@ -4201,7 +4201,7 @@ MUST_USE_RESULT static MaybeObject* StringReplaceGlobalRegExpWithEmptyString( |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_StringReplaceGlobalRegExpWithString) { |
| +RUNTIME_FUNCTION(Object*, Runtime_StringReplaceGlobalRegExpWithString) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 4); |
| @@ -4279,7 +4279,7 @@ MaybeHandle<String> StringReplaceOneCharWithString(Isolate* isolate, |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_StringReplaceOneCharWithString) { |
| +RUNTIME_FUNCTION(Object*, Runtime_StringReplaceOneCharWithString) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 3); |
| CONVERT_ARG_HANDLE_CHECKED(String, subject, 0); |
| @@ -4296,7 +4296,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_StringReplaceOneCharWithString) { |
| .ToHandle(&result)) { |
| return *result; |
| } |
| - if (isolate->has_pending_exception()) return Failure::Exception(); |
| + if (isolate->has_pending_exception()) return isolate->heap()->exception(); |
| subject = String::Flatten(subject); |
| ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
| @@ -4359,7 +4359,7 @@ int Runtime::StringMatch(Isolate* isolate, |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_StringIndexOf) { |
| +RUNTIME_FUNCTION(Object*, Runtime_StringIndexOf) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 3); |
| @@ -4411,7 +4411,7 @@ static int StringMatchBackwards(Vector<const schar> subject, |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_StringLastIndexOf) { |
| +RUNTIME_FUNCTION(Object*, Runtime_StringLastIndexOf) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 3); |
| @@ -4470,7 +4470,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_StringLastIndexOf) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_StringLocaleCompare) { |
| +RUNTIME_FUNCTION(Object*, Runtime_StringLocaleCompare) { |
| HandleScope handle_scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -4514,7 +4514,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_StringLocaleCompare) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_SubString) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_SubString) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 3); |
| @@ -4542,7 +4542,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_SubString) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_StringMatch) { |
| +RUNTIME_FUNCTION(Object*, Runtime_StringMatch) { |
| HandleScope handles(isolate); |
| ASSERT(args.length() == 3); |
| @@ -4551,7 +4551,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_StringMatch) { |
| CONVERT_ARG_HANDLE_CHECKED(JSArray, regexp_info, 2); |
| RegExpImpl::GlobalCache global_cache(regexp, subject, true, isolate); |
| - if (global_cache.HasException()) return Failure::Exception(); |
| + if (global_cache.HasException()) return isolate->heap()->exception(); |
| int capture_count = regexp->CaptureCount(); |
| @@ -4565,7 +4565,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_StringMatch) { |
| offsets.Add(match[1], zone_scope.zone()); // end |
| } |
| - if (global_cache.HasException()) return Failure::Exception(); |
| + if (global_cache.HasException()) return isolate->heap()->exception(); |
| if (offsets.length() == 0) { |
| // Not a single match. |
| @@ -4599,7 +4599,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_StringMatch) { |
| // Only called from Runtime_RegExpExecMultiple so it doesn't need to maintain |
| // separate last match info. See comment on that function. |
| template<bool has_capture> |
| -static MaybeObject* SearchRegExpMultiple( |
| +static Object* SearchRegExpMultiple( |
| Isolate* isolate, |
| Handle<String> subject, |
| Handle<JSRegExp> regexp, |
| @@ -4637,7 +4637,7 @@ static MaybeObject* SearchRegExpMultiple( |
| } |
| RegExpImpl::GlobalCache global_cache(regexp, subject, true, isolate); |
| - if (global_cache.HasException()) return Failure::Exception(); |
| + if (global_cache.HasException()) return isolate->heap()->exception(); |
| Handle<FixedArray> result_elements; |
| if (result_array->HasFastObjectElements()) { |
| @@ -4713,7 +4713,7 @@ static MaybeObject* SearchRegExpMultiple( |
| } |
| } |
| - if (global_cache.HasException()) return Failure::Exception(); |
| + if (global_cache.HasException()) return isolate->heap()->exception(); |
| if (match_start >= 0) { |
| // Finished matching, with at least one match. |
| @@ -4750,7 +4750,7 @@ static MaybeObject* SearchRegExpMultiple( |
| // This is only called for StringReplaceGlobalRegExpWithFunction. This sets |
| // lastMatchInfoOverride to maintain the last match info, so we don't need to |
| // set any other last match array info. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_RegExpExecMultiple) { |
| +RUNTIME_FUNCTION(Object*, Runtime_RegExpExecMultiple) { |
| HandleScope handles(isolate); |
| ASSERT(args.length() == 4); |
| @@ -4772,7 +4772,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_RegExpExecMultiple) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberToRadixString) { |
| +RUNTIME_FUNCTION(Object*, Runtime_NumberToRadixString) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_SMI_ARG_CHECKED(radix, 1); |
| @@ -4807,7 +4807,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberToRadixString) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberToFixed) { |
| +RUNTIME_FUNCTION(Object*, Runtime_NumberToFixed) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -4822,7 +4822,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberToFixed) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberToExponential) { |
| +RUNTIME_FUNCTION(Object*, Runtime_NumberToExponential) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -4837,7 +4837,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberToExponential) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberToPrecision) { |
| +RUNTIME_FUNCTION(Object*, Runtime_NumberToPrecision) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -4852,7 +4852,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberToPrecision) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_IsValidSmi) { |
| +RUNTIME_FUNCTION(Object*, Runtime_IsValidSmi) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| @@ -4960,7 +4960,7 @@ MaybeHandle<Object> Runtime::GetObjectProperty(Isolate* isolate, |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetProperty) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetProperty) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -4975,7 +4975,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetProperty) { |
| // KeyedGetProperty is called from KeyedLoadIC::GenerateGeneric. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_KeyedGetProperty) { |
| +RUNTIME_FUNCTION(Object*, Runtime_KeyedGetProperty) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 2); |
| @@ -5092,7 +5092,7 @@ static bool IsValidAccessor(Handle<Object> obj) { |
| // Steps 9c & 12 - replace an existing data property with an accessor property. |
| // Step 12 - update an existing accessor property with an accessor or generic |
| // descriptor. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DefineOrRedefineAccessorProperty) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DefineOrRedefineAccessorProperty) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 5); |
| CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0); |
| @@ -5120,7 +5120,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DefineOrRedefineAccessorProperty) { |
| // Steps 9b & 12 - replace an existing accessor property with a data property. |
| // Step 12 - update an existing data property with a data or generic |
| // descriptor. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DefineOrRedefineDataProperty) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DefineOrRedefineDataProperty) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 4); |
| CONVERT_ARG_HANDLE_CHECKED(JSObject, js_object, 0); |
| @@ -5194,7 +5194,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DefineOrRedefineDataProperty) { |
| // Return property without being observable by accessors or interceptors. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetDataProperty) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetDataProperty) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0); |
| @@ -5387,7 +5387,7 @@ MaybeHandle<Object> Runtime::DeleteObjectProperty(Isolate* isolate, |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_SetHiddenProperty) { |
| +RUNTIME_FUNCTION(Object*, Runtime_SetHiddenProperty) { |
| HandleScope scope(isolate); |
| RUNTIME_ASSERT(args.length() == 3); |
| @@ -5398,7 +5398,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetHiddenProperty) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_SetProperty) { |
| +RUNTIME_FUNCTION(Object*, Runtime_SetProperty) { |
| HandleScope scope(isolate); |
| RUNTIME_ASSERT(args.length() == 4 || args.length() == 5); |
| @@ -5427,7 +5427,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetProperty) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_TransitionElementsKind) { |
| +RUNTIME_FUNCTION(Object*, Runtime_TransitionElementsKind) { |
| HandleScope scope(isolate); |
| RUNTIME_ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(JSArray, array, 0); |
| @@ -5440,7 +5440,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_TransitionElementsKind) { |
| // Set the native flag on the function. |
| // This is used to decide if we should transform null and undefined |
| // into the global object when doing call and apply. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_SetNativeFlag) { |
| +RUNTIME_FUNCTION(Object*, Runtime_SetNativeFlag) { |
| SealHandleScope shs(isolate); |
| RUNTIME_ASSERT(args.length() == 1); |
| @@ -5454,7 +5454,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetNativeFlag) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_SetInlineBuiltinFlag) { |
| +RUNTIME_FUNCTION(Object*, Runtime_SetInlineBuiltinFlag) { |
| SealHandleScope shs(isolate); |
| RUNTIME_ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(Object, object, 0); |
| @@ -5467,7 +5467,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetInlineBuiltinFlag) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_StoreArrayLiteralElement) { |
| +RUNTIME_FUNCTION(Object*, Runtime_StoreArrayLiteralElement) { |
| HandleScope scope(isolate); |
| RUNTIME_ASSERT(args.length() == 5); |
| CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0); |
| @@ -5526,7 +5526,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_StoreArrayLiteralElement) { |
| // Check whether debugger and is about to step into the callback that is passed |
| // to a built-in function such as Array.forEach. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugCallbackSupportsStepping) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DebugCallbackSupportsStepping) { |
| SealHandleScope shs(isolate); |
| #ifdef ENABLE_DEBUGGER_SUPPORT |
| ASSERT(args.length() == 1); |
| @@ -5545,7 +5545,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugCallbackSupportsStepping) { |
| // Set one shot breakpoints for the callback function that is passed to a |
| // built-in function such as Array.forEach to enable stepping into the callback. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugPrepareStepInIfStepping) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DebugPrepareStepInIfStepping) { |
| SealHandleScope shs(isolate); |
| #ifdef ENABLE_DEBUGGER_SUPPORT |
| ASSERT(args.length() == 1); |
| @@ -5565,7 +5565,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugPrepareStepInIfStepping) { |
| // Set a local property, even if it is READ_ONLY. If the property does not |
| // exist, it will be added with attributes NONE. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_IgnoreAttributesAndSetProperty) { |
| +RUNTIME_FUNCTION(Object*, Runtime_IgnoreAttributesAndSetProperty) { |
| HandleScope scope(isolate); |
| RUNTIME_ASSERT(args.length() == 3 || args.length() == 4); |
| CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0); |
| @@ -5589,7 +5589,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_IgnoreAttributesAndSetProperty) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DeleteProperty) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DeleteProperty) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 3); |
| CONVERT_ARG_HANDLE_CHECKED(JSReceiver, object, 0); |
| @@ -5605,9 +5605,9 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DeleteProperty) { |
| } |
| -static MaybeObject* HasLocalPropertyImplementation(Isolate* isolate, |
| - Handle<JSObject> object, |
| - Handle<Name> key) { |
| +static Object* HasLocalPropertyImplementation(Isolate* isolate, |
| + Handle<JSObject> object, |
| + Handle<Name> key) { |
| if (JSReceiver::HasLocalProperty(object, key)) { |
| return isolate->heap()->true_value(); |
| } |
| @@ -5626,7 +5626,7 @@ static MaybeObject* HasLocalPropertyImplementation(Isolate* isolate, |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_HasLocalProperty) { |
| +RUNTIME_FUNCTION(Object*, Runtime_HasLocalProperty) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(Object, object, 0) |
| @@ -5668,7 +5668,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_HasLocalProperty) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_HasProperty) { |
| +RUNTIME_FUNCTION(Object*, Runtime_HasProperty) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(JSReceiver, receiver, 0); |
| @@ -5676,12 +5676,12 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_HasProperty) { |
| bool result = JSReceiver::HasProperty(receiver, key); |
| RETURN_FAILURE_IF_SCHEDULED_EXCEPTION(isolate); |
| - if (isolate->has_pending_exception()) return Failure::Exception(); |
| + if (isolate->has_pending_exception()) return isolate->heap()->exception(); |
| return isolate->heap()->ToBoolean(result); |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_HasElement) { |
| +RUNTIME_FUNCTION(Object*, Runtime_HasElement) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(JSReceiver, receiver, 0); |
| @@ -5693,7 +5693,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_HasElement) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_IsPropertyEnumerable) { |
| +RUNTIME_FUNCTION(Object*, Runtime_IsPropertyEnumerable) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -5710,7 +5710,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_IsPropertyEnumerable) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetPropertyNames) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetPropertyNames) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(JSReceiver, object, 0); |
| @@ -5730,7 +5730,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetPropertyNames) { |
| // all enumerable properties of the object and its prototypes |
| // have none, the map of the object. This is used to speed up |
| // the check for deletions during a for-in. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetPropertyNamesFast) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetPropertyNamesFast) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| @@ -5770,7 +5770,7 @@ static int LocalPrototypeChainLength(JSObject* obj) { |
| // Return the names of the local named properties. |
| // args[0]: object |
| // args[1]: PropertyAttributes as int |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetLocalPropertyNames) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetLocalPropertyNames) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| if (!args[0]->IsJSObject()) { |
| @@ -5884,7 +5884,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetLocalPropertyNames) { |
| // Return the names of the local indexed properties. |
| // args[0]: object |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetLocalElementNames) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetLocalElementNames) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| if (!args[0]->IsJSObject()) { |
| @@ -5901,7 +5901,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetLocalElementNames) { |
| // Return information on whether an object has a named or indexed interceptor. |
| // args[0]: object |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetInterceptorInfo) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetInterceptorInfo) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| if (!args[0]->IsJSObject()) { |
| @@ -5919,7 +5919,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetInterceptorInfo) { |
| // Return property names from named interceptor. |
| // args[0]: object |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetNamedInterceptorPropertyNames) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetNamedInterceptorPropertyNames) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0); |
| @@ -5936,7 +5936,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetNamedInterceptorPropertyNames) { |
| // Return element names from indexed interceptor. |
| // args[0]: object |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetIndexedInterceptorElementNames) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetIndexedInterceptorElementNames) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0); |
| @@ -5951,7 +5951,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetIndexedInterceptorElementNames) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_LocalKeys) { |
| +RUNTIME_FUNCTION(Object*, Runtime_LocalKeys) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_CHECKED(JSObject, raw_object, 0); |
| @@ -6000,7 +6000,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_LocalKeys) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetArgumentsProperty) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetArgumentsProperty) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(Object, raw_key, 0); |
| @@ -6073,7 +6073,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetArgumentsProperty) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_ToFastProperties) { |
| +RUNTIME_FUNCTION(Object*, Runtime_ToFastProperties) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(Object, object, 0); |
| @@ -6084,7 +6084,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_ToFastProperties) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_ToBool) { |
| +RUNTIME_FUNCTION(Object*, Runtime_ToBool) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_CHECKED(Object, object, 0); |
| @@ -6095,7 +6095,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_ToBool) { |
| // Returns the type string of a value; see ECMA-262, 11.4.3 (p 47). |
| // Possible optimizations: put the type string into the oddballs. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_Typeof) { |
| +RUNTIME_FUNCTION(Object*, Runtime_Typeof) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_CHECKED(Object, obj, 0); |
| @@ -6159,7 +6159,7 @@ static int ParseDecimalInteger(const uint8_t*s, int from, int to) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_StringToNumber) { |
| +RUNTIME_FUNCTION(Object*, Runtime_StringToNumber) { |
| HandleScope handle_scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(String, subject, 0); |
| @@ -6222,7 +6222,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_StringToNumber) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_NewString) { |
| +RUNTIME_FUNCTION(Object*, Runtime_NewString) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_SMI_ARG_CHECKED(length, 0); |
| @@ -6240,7 +6240,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NewString) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_TruncateString) { |
| +RUNTIME_FUNCTION(Object*, Runtime_TruncateString) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(SeqString, string, 0); |
| @@ -6249,7 +6249,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_TruncateString) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_URIEscape) { |
| +RUNTIME_FUNCTION(Object*, Runtime_URIEscape) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(String, source, 0); |
| @@ -6265,7 +6265,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_URIEscape) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_URIUnescape) { |
| +RUNTIME_FUNCTION(Object*, Runtime_URIUnescape) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(String, source, 0); |
| @@ -6281,7 +6281,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_URIUnescape) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_QuoteJSONString) { |
| +RUNTIME_FUNCTION(Object*, Runtime_QuoteJSONString) { |
| HandleScope scope(isolate); |
| CONVERT_ARG_HANDLE_CHECKED(String, string, 0); |
| ASSERT(args.length() == 1); |
| @@ -6292,7 +6292,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_QuoteJSONString) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_BasicJSONStringify) { |
| +RUNTIME_FUNCTION(Object*, Runtime_BasicJSONStringify) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(Object, object, 0); |
| @@ -6304,7 +6304,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_BasicJSONStringify) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_StringParseInt) { |
| +RUNTIME_FUNCTION(Object*, Runtime_StringParseInt) { |
| HandleScope handle_scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(String, subject, 0); |
| @@ -6331,7 +6331,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_StringParseInt) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_StringParseFloat) { |
| +RUNTIME_FUNCTION(Object*, Runtime_StringParseFloat) { |
| HandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(String, subject, 0); |
| @@ -6354,7 +6354,7 @@ static inline bool ToUpperOverflows(uc32 character) { |
| template <class Converter> |
| -MUST_USE_RESULT static MaybeObject* ConvertCaseHelper( |
| +MUST_USE_RESULT static Object* ConvertCaseHelper( |
| Isolate* isolate, |
| String* string, |
| SeqString* result, |
| @@ -6577,7 +6577,7 @@ static bool FastAsciiConvert(char* dst, |
| template <class Converter> |
| -MUST_USE_RESULT static MaybeObject* ConvertCase( |
| +MUST_USE_RESULT static Object* ConvertCase( |
| Handle<String> s, |
| Isolate* isolate, |
| unibrow::Mapping<Converter, 128>* mapping) { |
| @@ -6616,10 +6616,8 @@ MUST_USE_RESULT static MaybeObject* ConvertCase( |
| result = isolate->factory()->NewRawTwoByteString(length).ToHandleChecked(); |
| } |
| - MaybeObject* maybe = ConvertCaseHelper(isolate, *s, *result, length, mapping); |
| - Object* answer; |
| - if (!maybe->ToObject(&answer)) return maybe; |
| - if (answer->IsString()) return answer; |
| + Object* answer = ConvertCaseHelper(isolate, *s, *result, length, mapping); |
| + if (answer->IsException() || answer->IsString()) return answer; |
| ASSERT(answer->IsSmi()); |
| length = Smi::cast(answer)->value(); |
| @@ -6635,7 +6633,7 @@ MUST_USE_RESULT static MaybeObject* ConvertCase( |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_StringToLowerCase) { |
| +RUNTIME_FUNCTION(Object*, Runtime_StringToLowerCase) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(String, s, 0); |
| @@ -6644,7 +6642,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_StringToLowerCase) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_StringToUpperCase) { |
| +RUNTIME_FUNCTION(Object*, Runtime_StringToUpperCase) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(String, s, 0); |
| @@ -6653,7 +6651,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_StringToUpperCase) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_StringTrim) { |
| +RUNTIME_FUNCTION(Object*, Runtime_StringTrim) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 3); |
| @@ -6686,7 +6684,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_StringTrim) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_StringSplit) { |
| +RUNTIME_FUNCTION(Object*, Runtime_StringSplit) { |
| HandleScope handle_scope(isolate); |
| ASSERT(args.length() == 3); |
| CONVERT_ARG_HANDLE_CHECKED(String, subject, 0); |
| @@ -6811,7 +6809,7 @@ static int CopyCachedAsciiCharsToArray(Heap* heap, |
| // Converts a String to JSArray. |
| // For example, "foo" => ["f", "o", "o"]. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_StringToArray) { |
| +RUNTIME_FUNCTION(Object*, Runtime_StringToArray) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(String, s, 0); |
| @@ -6860,7 +6858,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_StringToArray) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_NewStringWrapper) { |
| +RUNTIME_FUNCTION(Object*, Runtime_NewStringWrapper) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(String, value, 0); |
| @@ -6875,7 +6873,7 @@ bool Runtime::IsUpperCaseChar(RuntimeState* runtime_state, uint16_t ch) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_NumberToString) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_NumberToString) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_NUMBER_ARG_HANDLE_CHECKED(number, 0); |
| @@ -6884,7 +6882,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_NumberToString) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_NumberToStringSkipCache) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_NumberToStringSkipCache) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_NUMBER_ARG_HANDLE_CHECKED(number, 0); |
| @@ -6893,7 +6891,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_NumberToStringSkipCache) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberToInteger) { |
| +RUNTIME_FUNCTION(Object*, Runtime_NumberToInteger) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| @@ -6902,7 +6900,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberToInteger) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberToIntegerMapMinusZero) { |
| +RUNTIME_FUNCTION(Object*, Runtime_NumberToIntegerMapMinusZero) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| @@ -6915,7 +6913,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberToIntegerMapMinusZero) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberToJSUint32) { |
| +RUNTIME_FUNCTION(Object*, Runtime_NumberToJSUint32) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| @@ -6924,7 +6922,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberToJSUint32) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberToJSInt32) { |
| +RUNTIME_FUNCTION(Object*, Runtime_NumberToJSInt32) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| @@ -6935,7 +6933,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberToJSInt32) { |
| // Converts a Number to a Smi, if possible. Returns NaN if the number is not |
| // a small integer. |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_NumberToSmi) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_NumberToSmi) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_CHECKED(Object, obj, 0); |
| @@ -6953,14 +6951,14 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_NumberToSmi) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_AllocateHeapNumber) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_AllocateHeapNumber) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 0); |
| return *isolate->factory()->NewHeapNumber(0); |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberAdd) { |
| +RUNTIME_FUNCTION(Object*, Runtime_NumberAdd) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -6970,7 +6968,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberAdd) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberSub) { |
| +RUNTIME_FUNCTION(Object*, Runtime_NumberSub) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -6980,7 +6978,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberSub) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberMul) { |
| +RUNTIME_FUNCTION(Object*, Runtime_NumberMul) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -6990,7 +6988,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberMul) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberUnaryMinus) { |
| +RUNTIME_FUNCTION(Object*, Runtime_NumberUnaryMinus) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| @@ -6999,7 +6997,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberUnaryMinus) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberDiv) { |
| +RUNTIME_FUNCTION(Object*, Runtime_NumberDiv) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -7009,7 +7007,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberDiv) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberMod) { |
| +RUNTIME_FUNCTION(Object*, Runtime_NumberMod) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -7019,7 +7017,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberMod) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberImul) { |
| +RUNTIME_FUNCTION(Object*, Runtime_NumberImul) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -7029,7 +7027,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberImul) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_StringAdd) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_StringAdd) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(String, str1, 0); |
| @@ -7137,7 +7135,7 @@ static inline int StringBuilderConcatLength(int special_length, |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_StringBuilderConcat) { |
| +RUNTIME_FUNCTION(Object*, Runtime_StringBuilderConcat) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 3); |
| CONVERT_ARG_HANDLE_CHECKED(JSArray, array, 0); |
| @@ -7202,7 +7200,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_StringBuilderConcat) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_StringBuilderJoin) { |
| +RUNTIME_FUNCTION(Object*, Runtime_StringBuilderJoin) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 3); |
| CONVERT_ARG_HANDLE_CHECKED(JSArray, array, 0); |
| @@ -7322,7 +7320,7 @@ static void JoinSparseArrayWithSeparator(FixedArray* elements, |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_SparseJoinWithSeparator) { |
| +RUNTIME_FUNCTION(Object*, Runtime_SparseJoinWithSeparator) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 3); |
| CONVERT_ARG_HANDLE_CHECKED(JSArray, elements_array, 0); |
| @@ -7409,7 +7407,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SparseJoinWithSeparator) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberOr) { |
| +RUNTIME_FUNCTION(Object*, Runtime_NumberOr) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -7419,7 +7417,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberOr) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberAnd) { |
| +RUNTIME_FUNCTION(Object*, Runtime_NumberAnd) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -7429,7 +7427,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberAnd) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberXor) { |
| +RUNTIME_FUNCTION(Object*, Runtime_NumberXor) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -7439,7 +7437,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberXor) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberShl) { |
| +RUNTIME_FUNCTION(Object*, Runtime_NumberShl) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -7449,7 +7447,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberShl) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberShr) { |
| +RUNTIME_FUNCTION(Object*, Runtime_NumberShr) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -7459,7 +7457,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberShr) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberSar) { |
| +RUNTIME_FUNCTION(Object*, Runtime_NumberSar) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -7470,7 +7468,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberSar) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberEquals) { |
| +RUNTIME_FUNCTION(Object*, Runtime_NumberEquals) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 2); |
| @@ -7489,7 +7487,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberEquals) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_StringEquals) { |
| +RUNTIME_FUNCTION(Object*, Runtime_StringEquals) { |
| HandleScope handle_scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -7507,7 +7505,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_StringEquals) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberCompare) { |
| +RUNTIME_FUNCTION(Object*, Runtime_NumberCompare) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 3); |
| @@ -7522,7 +7520,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberCompare) { |
| // Compare two Smis as if they were converted to strings and then |
| // compared lexicographically. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_SmiLexicographicCompare) { |
| +RUNTIME_FUNCTION(Object*, Runtime_SmiLexicographicCompare) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_SMI_ARG_CHECKED(x_value, 0); |
| @@ -7597,7 +7595,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SmiLexicographicCompare) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_StringCompare) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_StringCompare) { |
| HandleScope handle_scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -7665,7 +7663,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_StringCompare) { |
| #define RUNTIME_UNARY_MATH(Name, name) \ |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_Math##Name) { \ |
| +RUNTIME_FUNCTION(Object*, Runtime_Math##Name) { \ |
| HandleScope scope(isolate); \ |
| ASSERT(args.length() == 1); \ |
| isolate->counters()->math_##name()->Increment(); \ |
| @@ -7680,7 +7678,7 @@ RUNTIME_UNARY_MATH(Log, log) |
| #undef RUNTIME_UNARY_MATH |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DoubleHi) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DoubleHi) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_DOUBLE_ARG_CHECKED(x, 0); |
| @@ -7690,7 +7688,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DoubleHi) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DoubleLo) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DoubleLo) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_DOUBLE_ARG_CHECKED(x, 0); |
| @@ -7699,7 +7697,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DoubleLo) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_ConstructDouble) { |
| +RUNTIME_FUNCTION(Object*, Runtime_ConstructDouble) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_NUMBER_CHECKED(uint32_t, hi, Uint32, args[0]); |
| @@ -7712,7 +7710,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_ConstructDouble) { |
| static const double kPiDividedBy4 = 0.78539816339744830962; |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_MathAtan2) { |
| +RUNTIME_FUNCTION(Object*, Runtime_MathAtan2) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| isolate->counters()->math_atan2()->Increment(); |
| @@ -7735,7 +7733,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_MathAtan2) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_MathExp) { |
| +RUNTIME_FUNCTION(Object*, Runtime_MathExp) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| isolate->counters()->math_exp()->Increment(); |
| @@ -7746,7 +7744,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_MathExp) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_MathFloor) { |
| +RUNTIME_FUNCTION(Object*, Runtime_MathFloor) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| isolate->counters()->math_floor()->Increment(); |
| @@ -7758,7 +7756,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_MathFloor) { |
| // Slow version of Math.pow. We check for fast paths for special cases. |
| // Used if SSE2/VFP3 is not available. |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_MathPowSlow) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_MathPowSlow) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| isolate->counters()->math_pow()->Increment(); |
| @@ -7781,7 +7779,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_MathPowSlow) { |
| // Fast version of Math.pow if we know that y is not an integer and y is not |
| // -0.5 or 0.5. Used as slow case from full codegen. |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_MathPow) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_MathPow) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| isolate->counters()->math_pow()->Increment(); |
| @@ -7798,7 +7796,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_MathPow) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_RoundNumber) { |
| +RUNTIME_FUNCTION(Object*, Runtime_RoundNumber) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| isolate->counters()->math_round()->Increment(); |
| @@ -7841,7 +7839,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_RoundNumber) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_MathSqrt) { |
| +RUNTIME_FUNCTION(Object*, Runtime_MathSqrt) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| isolate->counters()->math_sqrt()->Increment(); |
| @@ -7851,7 +7849,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_MathSqrt) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_MathFround) { |
| +RUNTIME_FUNCTION(Object*, Runtime_MathFround) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| @@ -7861,7 +7859,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_MathFround) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DateMakeDay) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DateMakeDay) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 2); |
| @@ -7872,7 +7870,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DateMakeDay) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DateSetValue) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DateSetValue) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 3); |
| @@ -7907,7 +7905,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DateSetValue) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_NewArgumentsFast) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_NewArgumentsFast) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 3); |
| @@ -8001,7 +7999,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_NewArgumentsFast) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_NewStrictArgumentsFast) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_NewStrictArgumentsFast) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 3); |
| CONVERT_ARG_HANDLE_CHECKED(JSFunction, callee, 0) |
| @@ -8025,7 +8023,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_NewStrictArgumentsFast) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_NewClosureFromStubFailure) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_NewClosureFromStubFailure) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(SharedFunctionInfo, shared, 0); |
| @@ -8036,7 +8034,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_NewClosureFromStubFailure) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_NewClosure) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_NewClosure) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 3); |
| CONVERT_ARG_HANDLE_CHECKED(Context, context, 0); |
| @@ -8101,7 +8099,7 @@ static SmartArrayPointer<Handle<Object> > GetCallerArguments( |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionBindArguments) { |
| +RUNTIME_FUNCTION(Object*, Runtime_FunctionBindArguments) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 4); |
| CONVERT_ARG_HANDLE_CHECKED(JSFunction, bound_function, 0); |
| @@ -8162,7 +8160,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionBindArguments) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_BoundFunctionGetBindings) { |
| +RUNTIME_FUNCTION(Object*, Runtime_BoundFunctionGetBindings) { |
| HandleScope handles(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(JSReceiver, callable, 0); |
| @@ -8178,7 +8176,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_BoundFunctionGetBindings) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_NewObjectFromBound) { |
| +RUNTIME_FUNCTION(Object*, Runtime_NewObjectFromBound) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| // First argument is a function to use as a constructor. |
| @@ -8220,7 +8218,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NewObjectFromBound) { |
| } |
| -static MaybeObject* Runtime_NewObjectHelper(Isolate* isolate, |
| +static Object* Runtime_NewObjectHelper(Isolate* isolate, |
| Handle<Object> constructor, |
| Handle<AllocationSite> site) { |
| // If the constructor isn't a proper function we throw a type error. |
| @@ -8294,7 +8292,7 @@ static MaybeObject* Runtime_NewObjectHelper(Isolate* isolate, |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_NewObject) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_NewObject) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(Object, constructor, 0); |
| @@ -8304,7 +8302,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_NewObject) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_NewObjectWithAllocationSite) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_NewObjectWithAllocationSite) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(Object, constructor, 1); |
| @@ -8318,7 +8316,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_NewObjectWithAllocationSite) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_FinalizeInstanceSize) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_FinalizeInstanceSize) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| @@ -8329,7 +8327,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_FinalizeInstanceSize) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_CompileUnoptimized) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_CompileUnoptimized) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); |
| @@ -8357,7 +8355,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_CompileUnoptimized) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_CompileOptimized) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_CompileOptimized) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); |
| @@ -8420,7 +8418,7 @@ class ActivationsFinder : public ThreadVisitor { |
| }; |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_NotifyStubFailure) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_NotifyStubFailure) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 0); |
| Deoptimizer* deoptimizer = Deoptimizer::Grab(isolate); |
| @@ -8430,7 +8428,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_NotifyStubFailure) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_NotifyDeoptimized) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_NotifyDeoptimized) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_SMI_ARG_CHECKED(type_arg, 0); |
| @@ -8489,7 +8487,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_NotifyDeoptimized) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DeoptimizeFunction) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DeoptimizeFunction) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); |
| @@ -8501,7 +8499,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DeoptimizeFunction) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_ClearFunctionTypeFeedback) { |
| +RUNTIME_FUNCTION(Object*, Runtime_ClearFunctionTypeFeedback) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); |
| @@ -8514,7 +8512,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_ClearFunctionTypeFeedback) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_RunningInSimulator) { |
| +RUNTIME_FUNCTION(Object*, Runtime_RunningInSimulator) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 0); |
| #if defined(USE_SIMULATOR) |
| @@ -8525,14 +8523,14 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_RunningInSimulator) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_IsConcurrentRecompilationSupported) { |
| +RUNTIME_FUNCTION(Object*, Runtime_IsConcurrentRecompilationSupported) { |
| SealHandleScope shs(isolate); |
| return isolate->heap()->ToBoolean( |
| isolate->concurrent_recompilation_enabled()); |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_OptimizeFunctionOnNextCall) { |
| +RUNTIME_FUNCTION(Object*, Runtime_OptimizeFunctionOnNextCall) { |
| HandleScope scope(isolate); |
| RUNTIME_ASSERT(args.length() == 1 || args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); |
| @@ -8567,7 +8565,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_OptimizeFunctionOnNextCall) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_NeverOptimizeFunction) { |
| +RUNTIME_FUNCTION(Object*, Runtime_NeverOptimizeFunction) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_CHECKED(JSFunction, function, 0); |
| @@ -8576,7 +8574,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NeverOptimizeFunction) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetOptimizationStatus) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetOptimizationStatus) { |
| HandleScope scope(isolate); |
| RUNTIME_ASSERT(args.length() == 1 || args.length() == 2); |
| if (!isolate->use_crankshaft()) { |
| @@ -8611,7 +8609,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetOptimizationStatus) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_UnblockConcurrentRecompilation) { |
| +RUNTIME_FUNCTION(Object*, Runtime_UnblockConcurrentRecompilation) { |
| ASSERT(args.length() == 0); |
| RUNTIME_ASSERT(FLAG_block_concurrent_recompilation); |
| RUNTIME_ASSERT(isolate->concurrent_recompilation_enabled()); |
| @@ -8620,7 +8618,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_UnblockConcurrentRecompilation) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetOptimizationCount) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetOptimizationCount) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); |
| @@ -8647,7 +8645,7 @@ static bool IsSuitableForOnStackReplacement(Isolate* isolate, |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_CompileForOnStackReplacement) { |
| +RUNTIME_FUNCTION(Object*, Runtime_CompileForOnStackReplacement) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); |
| @@ -8760,7 +8758,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_CompileForOnStackReplacement) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_SetAllocationTimeout) { |
| +RUNTIME_FUNCTION(Object*, Runtime_SetAllocationTimeout) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 2 || args.length() == 3); |
| #ifdef DEBUG |
| @@ -8782,7 +8780,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetAllocationTimeout) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_CheckIsBootstrapping) { |
| +RUNTIME_FUNCTION(Object*, Runtime_CheckIsBootstrapping) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 0); |
| RUNTIME_ASSERT(isolate->bootstrapper()->IsActive()); |
| @@ -8790,7 +8788,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_CheckIsBootstrapping) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetRootNaN) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetRootNaN) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 0); |
| RUNTIME_ASSERT(isolate->bootstrapper()->IsActive()); |
| @@ -8798,7 +8796,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetRootNaN) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_Call) { |
| +RUNTIME_FUNCTION(Object*, Runtime_Call) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() >= 2); |
| int argc = args.length() - 2; |
| @@ -8830,7 +8828,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_Call) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_Apply) { |
| +RUNTIME_FUNCTION(Object*, Runtime_Apply) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 5); |
| CONVERT_ARG_HANDLE_CHECKED(JSReceiver, fun, 0); |
| @@ -8866,7 +8864,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_Apply) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetFunctionDelegate) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetFunctionDelegate) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(Object, object, 0); |
| @@ -8875,7 +8873,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetFunctionDelegate) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetConstructorDelegate) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetConstructorDelegate) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(Object, object, 0); |
| @@ -8884,7 +8882,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetConstructorDelegate) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_NewGlobalContext) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_NewGlobalContext) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -8900,7 +8898,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_NewGlobalContext) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_NewFunctionContext) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_NewFunctionContext) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| @@ -8910,7 +8908,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_NewFunctionContext) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_PushWithContext) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_PushWithContext) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| Handle<JSReceiver> extension_object; |
| @@ -8947,7 +8945,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_PushWithContext) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_PushCatchContext) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_PushCatchContext) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 3); |
| CONVERT_ARG_HANDLE_CHECKED(String, name, 0); |
| @@ -8969,7 +8967,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_PushCatchContext) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_PushBlockContext) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_PushBlockContext) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(ScopeInfo, scope_info, 0); |
| @@ -8990,7 +8988,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_PushBlockContext) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_IsJSModule) { |
| +RUNTIME_FUNCTION(Object*, Runtime_IsJSModule) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_CHECKED(Object, obj, 0); |
| @@ -8998,7 +8996,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_IsJSModule) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_PushModuleContext) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_PushModuleContext) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_SMI_ARG_CHECKED(index, 0); |
| @@ -9033,7 +9031,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_PushModuleContext) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_DeclareModules) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_DeclareModules) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(FixedArray, descriptions, 0); |
| @@ -9087,7 +9085,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_DeclareModules) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_DeleteContextSlot) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_DeleteContextSlot) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -9136,12 +9134,12 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_DeleteContextSlot) { |
| // allocated by the caller, and passed as a pointer in a hidden first parameter. |
| #ifdef V8_HOST_ARCH_64_BIT |
| struct ObjectPair { |
| - MaybeObject* x; |
| - MaybeObject* y; |
| + Object* x; |
| + Object* y; |
| }; |
| -static inline ObjectPair MakePair(MaybeObject* x, MaybeObject* y) { |
| +static inline ObjectPair MakePair(Object* x, Object* y) { |
| ObjectPair result = {x, y}; |
| // Pointers x and y returned in rax and rdx, in AMD-x64-abi. |
| // In Win64 they are assigned to a hidden first argument. |
| @@ -9149,7 +9147,7 @@ static inline ObjectPair MakePair(MaybeObject* x, MaybeObject* y) { |
| } |
| #else |
| typedef uint64_t ObjectPair; |
| -static inline ObjectPair MakePair(MaybeObject* x, MaybeObject* y) { |
| +static inline ObjectPair MakePair(Object* x, Object* y) { |
| #if defined(V8_TARGET_LITTLE_ENDIAN) |
| return reinterpret_cast<uint32_t>(x) | |
| (reinterpret_cast<ObjectPair>(y) << 32); |
| @@ -9205,7 +9203,7 @@ static ObjectPair LoadContextSlotHelper(Arguments args, |
| &attributes, |
| &binding_flags); |
| if (isolate->has_pending_exception()) { |
| - return MakePair(Failure::Exception(), NULL); |
| + return MakePair(isolate->heap()->exception(), NULL); |
| } |
| // If the index is non-negative, the slot has been found in a context. |
| @@ -9263,7 +9261,7 @@ static ObjectPair LoadContextSlotHelper(Arguments args, |
| ASSIGN_RETURN_ON_EXCEPTION_VALUE( |
| isolate, value, |
| Object::GetProperty(object, name), |
| - MakePair(Failure::Exception(), NULL)); |
| + MakePair(isolate->heap()->exception(), NULL)); |
| return MakePair(*value, *receiver_handle); |
| } |
| @@ -9291,7 +9289,7 @@ RUNTIME_FUNCTION(ObjectPair, RuntimeHidden_LoadContextSlotNoReferenceError) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_StoreContextSlot) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_StoreContextSlot) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 4); |
| @@ -9309,7 +9307,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_StoreContextSlot) { |
| &index, |
| &attributes, |
| &binding_flags); |
| - if (isolate->has_pending_exception()) return Failure::Exception(); |
| + if (isolate->has_pending_exception()) return isolate->heap()->exception(); |
| if (index >= 0) { |
| // The property was found in a context slot. |
| @@ -9376,7 +9374,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_StoreContextSlot) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_Throw) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_Throw) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| @@ -9384,7 +9382,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_Throw) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_ReThrow) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_ReThrow) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| @@ -9392,14 +9390,14 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_ReThrow) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_PromoteScheduledException) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_PromoteScheduledException) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 0); |
| return isolate->PromoteScheduledException(); |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_ThrowReferenceError) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_ThrowReferenceError) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(Object, name, 0); |
| @@ -9410,7 +9408,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_ThrowReferenceError) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_ThrowNotDateError) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_ThrowNotDateError) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 0); |
| return isolate->Throw(*isolate->factory()->NewTypeError( |
| @@ -9418,7 +9416,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_ThrowNotDateError) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_ThrowMessage) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_ThrowMessage) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_SMI_ARG_CHECKED(message_id, 0); |
| @@ -9430,7 +9428,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_ThrowMessage) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_StackGuard) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_StackGuard) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 0); |
| @@ -9443,7 +9441,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_StackGuard) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_TryInstallOptimizedCode) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_TryInstallOptimizedCode) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); |
| @@ -9460,7 +9458,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_TryInstallOptimizedCode) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_Interrupt) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_Interrupt) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 0); |
| return Execution::HandleStackGuardInterrupt(isolate); |
| @@ -9496,7 +9494,7 @@ static void PrintTransition(Isolate* isolate, Object* result) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_TraceEnter) { |
| +RUNTIME_FUNCTION(Object*, Runtime_TraceEnter) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 0); |
| PrintTransition(isolate, NULL); |
| @@ -9504,7 +9502,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_TraceEnter) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_TraceExit) { |
| +RUNTIME_FUNCTION(Object*, Runtime_TraceExit) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_CHECKED(Object, obj, 0); |
| @@ -9513,7 +9511,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_TraceExit) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugPrint) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DebugPrint) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| @@ -9544,7 +9542,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugPrint) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugTrace) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DebugTrace) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 0); |
| isolate->PrintStack(stdout); |
| @@ -9552,7 +9550,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugTrace) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DateCurrentTime) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DateCurrentTime) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 0); |
| @@ -9565,7 +9563,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DateCurrentTime) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DateParseString) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DateParseString) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(String, str, 0); |
| @@ -9600,7 +9598,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DateParseString) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DateLocalTimezone) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DateLocalTimezone) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| @@ -9613,7 +9611,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DateLocalTimezone) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DateToUTC) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DateToUTC) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| @@ -9624,7 +9622,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DateToUTC) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DateCacheVersion) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DateCacheVersion) { |
| HandleScope hs(isolate); |
| ASSERT(args.length() == 0); |
| if (!isolate->eternal_handles()->Exists(EternalHandles::DATE_CACHE_VERSION)) { |
| @@ -9645,7 +9643,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DateCacheVersion) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GlobalReceiver) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GlobalReceiver) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_CHECKED(Object, global, 0); |
| @@ -9654,7 +9652,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GlobalReceiver) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_IsAttachedGlobal) { |
| +RUNTIME_FUNCTION(Object*, Runtime_IsAttachedGlobal) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_CHECKED(Object, global, 0); |
| @@ -9664,7 +9662,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_IsAttachedGlobal) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_ParseJson) { |
| +RUNTIME_FUNCTION(Object*, Runtime_ParseJson) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(String, source, 0); |
| @@ -9697,7 +9695,7 @@ bool CodeGenerationFromStringsAllowed(Isolate* isolate, |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_CompileString) { |
| +RUNTIME_FUNCTION(Object*, Runtime_CompileString) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(String, source, 0); |
| @@ -9744,7 +9742,7 @@ static ObjectPair CompileGlobalEval(Isolate* isolate, |
| native_context->ErrorMessageForCodeGenerationFromStrings(); |
| isolate->Throw(*isolate->factory()->NewEvalError( |
| "code_gen_from_strings", HandleVector<Object>(&error_message, 1))); |
| - return MakePair(Failure::Exception(), NULL); |
| + return MakePair(isolate->heap()->exception(), NULL); |
| } |
| // Deal with a normal eval call with a string argument. Compile it |
| @@ -9755,7 +9753,7 @@ static ObjectPair CompileGlobalEval(Isolate* isolate, |
| isolate, compiled, |
| Compiler::GetFunctionFromEval( |
| source, context, strict_mode, restriction, scope_position), |
| - MakePair(Failure::Exception(), NULL)); |
| + MakePair(isolate->heap()->exception(), NULL)); |
| return MakePair(*compiled, *receiver); |
| } |
| @@ -9788,7 +9786,7 @@ RUNTIME_FUNCTION(ObjectPair, RuntimeHidden_ResolvePossiblyDirectEval) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_AllocateInNewSpace) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_AllocateInNewSpace) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_SMI_ARG_CHECKED(size, 0); |
| @@ -9799,7 +9797,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_AllocateInNewSpace) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_AllocateInTargetSpace) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_AllocateInTargetSpace) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_SMI_ARG_CHECKED(size, 0); |
| @@ -9816,7 +9814,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_AllocateInTargetSpace) { |
| // Push an object unto an array of objects if it is not already in the |
| // array. Returns true if the element was pushed on the stack and |
| // false otherwise. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_PushIfAbsent) { |
| +RUNTIME_FUNCTION(Object*, Runtime_PushIfAbsent) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(JSArray, array, 0); |
| @@ -10324,7 +10322,7 @@ static bool IterateElements(Isolate* isolate, |
| * TODO(581): Fix non-compliance for very large concatenations and update to |
| * following the ECMAScript 5 specification. |
| */ |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_ArrayConcat) { |
| +RUNTIME_FUNCTION(Object*, Runtime_ArrayConcat) { |
| HandleScope handle_scope(isolate); |
| ASSERT(args.length() == 1); |
| @@ -10480,7 +10478,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_ArrayConcat) { |
| if (obj->IsJSArray()) { |
| Handle<JSArray> array = Handle<JSArray>::cast(obj); |
| if (!IterateElements(isolate, array, &visitor)) { |
| - return Failure::Exception(); |
| + return isolate->heap()->exception(); |
| } |
| } else { |
| visitor.visit(0, obj); |
| @@ -10499,7 +10497,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_ArrayConcat) { |
| // This will not allocate (flatten the string), but it may run |
| // very slowly for very deeply nested ConsStrings. For debugging use only. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GlobalPrint) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GlobalPrint) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| @@ -10520,7 +10518,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GlobalPrint) { |
| // property. |
| // Returns the number of non-undefined elements collected. |
| // Returns -1 if hole removal is not supported by this method. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_RemoveArrayHoles) { |
| +RUNTIME_FUNCTION(Object*, Runtime_RemoveArrayHoles) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0); |
| @@ -10530,7 +10528,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_RemoveArrayHoles) { |
| // Move contents of argument 0 (an array) to argument 1 (an array) |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_MoveArrayContents) { |
| +RUNTIME_FUNCTION(Object*, Runtime_MoveArrayContents) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(JSArray, from, 0); |
| @@ -10553,7 +10551,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_MoveArrayContents) { |
| // How many elements does this object/array have? |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_EstimateNumberOfElements) { |
| +RUNTIME_FUNCTION(Object*, Runtime_EstimateNumberOfElements) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_CHECKED(JSObject, object, 0); |
| @@ -10574,7 +10572,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_EstimateNumberOfElements) { |
| // or undefined) or a number representing the positive length of an interval |
| // starting at index 0. |
| // Intervals can span over some keys that are not in the object. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetArrayKeys) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetArrayKeys) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(JSObject, array, 0); |
| @@ -10613,7 +10611,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetArrayKeys) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_LookupAccessor) { |
| +RUNTIME_FUNCTION(Object*, Runtime_LookupAccessor) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 3); |
| CONVERT_ARG_HANDLE_CHECKED(JSReceiver, receiver, 0); |
| @@ -10630,7 +10628,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_LookupAccessor) { |
| #ifdef ENABLE_DEBUGGER_SUPPORT |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugBreak) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DebugBreak) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 0); |
| return Execution::DebugBreakHelper(isolate); |
| @@ -10653,7 +10651,7 @@ static StackFrame::Id UnwrapFrameId(int wrapped) { |
| // args[0]: debug event listener function to set or null or undefined for |
| // clearing the event listener function |
| // args[1]: object supplied during callback |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_SetDebugEventListener) { |
| +RUNTIME_FUNCTION(Object*, Runtime_SetDebugEventListener) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 2); |
| RUNTIME_ASSERT(args[0]->IsJSFunction() || |
| @@ -10667,7 +10665,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetDebugEventListener) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_Break) { |
| +RUNTIME_FUNCTION(Object*, Runtime_Break) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 0); |
| isolate->stack_guard()->DebugBreak(); |
| @@ -10733,7 +10731,7 @@ static Handle<Object> DebugLookupResultValue(Isolate* isolate, |
| // 4: Setter function if defined |
| // Items 2-4 are only filled if the property has either a getter or a setter |
| // defined through __defineGetter__ and/or __defineSetter__. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugGetPropertyDetails) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DebugGetPropertyDetails) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -10823,7 +10821,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugGetPropertyDetails) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugGetProperty) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DebugGetProperty) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -10839,7 +10837,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugGetProperty) { |
| // Return the property type calculated from the property details. |
| // args[0]: smi with property details. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugPropertyTypeFromDetails) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DebugPropertyTypeFromDetails) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_PROPERTY_DETAILS_CHECKED(details, 0); |
| @@ -10849,7 +10847,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugPropertyTypeFromDetails) { |
| // Return the property attribute calculated from the property details. |
| // args[0]: smi with property details. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugPropertyAttributesFromDetails) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DebugPropertyAttributesFromDetails) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_PROPERTY_DETAILS_CHECKED(details, 0); |
| @@ -10859,7 +10857,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugPropertyAttributesFromDetails) { |
| // Return the property insertion index calculated from the property details. |
| // args[0]: smi with property details. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugPropertyIndexFromDetails) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DebugPropertyIndexFromDetails) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_PROPERTY_DETAILS_CHECKED(details, 0); |
| @@ -10871,7 +10869,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugPropertyIndexFromDetails) { |
| // Return property value from named interceptor. |
| // args[0]: object |
| // args[1]: property name |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugNamedInterceptorPropertyValue) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DebugNamedInterceptorPropertyValue) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0); |
| @@ -10890,7 +10888,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugNamedInterceptorPropertyValue) { |
| // Return element value from indexed interceptor. |
| // args[0]: object |
| // args[1]: index |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugIndexedInterceptorElementValue) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DebugIndexedInterceptorElementValue) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0); |
| @@ -10909,7 +10907,7 @@ static bool CheckExecutionState(Isolate* isolate, int break_id) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_CheckExecutionState) { |
| +RUNTIME_FUNCTION(Object*, Runtime_CheckExecutionState) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_NUMBER_CHECKED(int, break_id, Int32, args[0]); |
| @@ -10918,7 +10916,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_CheckExecutionState) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetFrameCount) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetFrameCount) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_NUMBER_CHECKED(int, break_id, Int32, args[0]); |
| @@ -11056,7 +11054,7 @@ static SaveContext* FindSavedContextForFrame(Isolate* isolate, |
| // Arguments name, value |
| // Locals name, value |
| // Return value if any |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetFrameDetails) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetFrameDetails) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_NUMBER_CHECKED(int, break_id, Int32, args[0]); |
| @@ -12082,7 +12080,7 @@ class ScopeIterator { |
| }; |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetScopeCount) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetScopeCount) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_NUMBER_CHECKED(int, break_id, Int32, args[0]); |
| @@ -12110,7 +12108,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetScopeCount) { |
| // Returns the list of step-in positions (text offset) in a function of the |
| // stack frame in a range from the current debug break position to the end |
| // of the corresponding statement. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetStepInPositions) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetStepInPositions) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_NUMBER_CHECKED(int, break_id, Int32, args[0]); |
| @@ -12217,7 +12215,7 @@ MUST_USE_RESULT static MaybeHandle<JSObject> MaterializeScopeDetails( |
| // The array returned contains the following information: |
| // 0: Scope type |
| // 1: Scope object |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetScopeDetails) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetScopeDetails) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 4); |
| CONVERT_NUMBER_CHECKED(int, break_id, Int32, args[0]); |
| @@ -12257,7 +12255,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetScopeDetails) { |
| // The array returned contains arrays with the following information: |
| // 0: Scope type |
| // 1: Scope object |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetAllScopesDetails) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetAllScopesDetails) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 3 || args.length() == 4); |
| CONVERT_NUMBER_CHECKED(int, break_id, Int32, args[0]); |
| @@ -12294,7 +12292,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetAllScopesDetails) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetFunctionScopeCount) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetFunctionScopeCount) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| @@ -12311,7 +12309,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetFunctionScopeCount) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetFunctionScopeDetails) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetFunctionScopeDetails) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -12358,7 +12356,7 @@ static bool SetScopeVariableValue(ScopeIterator* it, int index, |
| // args[5]: object: new value |
| // |
| // Return true if success and false otherwise |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_SetScopeVariableValue) { |
| +RUNTIME_FUNCTION(Object*, Runtime_SetScopeVariableValue) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 6); |
| @@ -12392,7 +12390,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetScopeVariableValue) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugPrintScopes) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DebugPrintScopes) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 0); |
| @@ -12410,7 +12408,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugPrintScopes) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetThreadCount) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetThreadCount) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_NUMBER_CHECKED(int, break_id, Int32, args[0]); |
| @@ -12441,7 +12439,7 @@ static const int kThreadDetailsSize = 2; |
| // The array returned contains the following information: |
| // 0: Is current thread? |
| // 1: Thread id |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetThreadDetails) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetThreadDetails) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_NUMBER_CHECKED(int, break_id, Int32, args[0]); |
| @@ -12487,7 +12485,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetThreadDetails) { |
| // Sets the disable break state |
| // args[0]: disable break state |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_SetDisableBreak) { |
| +RUNTIME_FUNCTION(Object*, Runtime_SetDisableBreak) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_BOOLEAN_ARG_CHECKED(disable_break, 0); |
| @@ -12501,7 +12499,7 @@ static bool IsPositionAlignmentCodeCorrect(int alignment) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetBreakLocations) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetBreakLocations) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -12529,7 +12527,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetBreakLocations) { |
| // args[0]: function |
| // args[1]: number: break source position (within the function source) |
| // args[2]: number: break point object |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_SetFunctionBreakPoint) { |
| +RUNTIME_FUNCTION(Object*, Runtime_SetFunctionBreakPoint) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 3); |
| CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); |
| @@ -12552,7 +12550,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetFunctionBreakPoint) { |
| // args[1]: number: break source position (within the script source) |
| // args[2]: number, breakpoint position alignment |
| // args[3]: number: break point object |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_SetScriptBreakPoint) { |
| +RUNTIME_FUNCTION(Object*, Runtime_SetScriptBreakPoint) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 4); |
| CONVERT_ARG_HANDLE_CHECKED(JSValue, wrapper, 0); |
| @@ -12584,7 +12582,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetScriptBreakPoint) { |
| // Clear a break point |
| // args[0]: number: break point object |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_ClearBreakPoint) { |
| +RUNTIME_FUNCTION(Object*, Runtime_ClearBreakPoint) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(Object, break_point_object_arg, 0); |
| @@ -12599,7 +12597,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_ClearBreakPoint) { |
| // Change the state of break on exceptions. |
| // args[0]: Enum value indicating whether to affect caught/uncaught exceptions. |
| // args[1]: Boolean indicating on/off. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_ChangeBreakOnException) { |
| +RUNTIME_FUNCTION(Object*, Runtime_ChangeBreakOnException) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_NUMBER_CHECKED(uint32_t, type_arg, Uint32, args[0]); |
| @@ -12616,7 +12614,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_ChangeBreakOnException) { |
| // Returns the state of break on exceptions |
| // args[0]: boolean indicating uncaught exceptions |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_IsBreakOnException) { |
| +RUNTIME_FUNCTION(Object*, Runtime_IsBreakOnException) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_NUMBER_CHECKED(uint32_t, type_arg, Uint32, args[0]); |
| @@ -12632,7 +12630,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_IsBreakOnException) { |
| // args[1]: step action from the enumeration StepAction |
| // args[2]: number of times to perform the step, for step out it is the number |
| // of frames to step down. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_PrepareStep) { |
| +RUNTIME_FUNCTION(Object*, Runtime_PrepareStep) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 4); |
| CONVERT_NUMBER_CHECKED(int, break_id, Int32, args[0]); |
| @@ -12684,7 +12682,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_PrepareStep) { |
| // Clear all stepping set by PrepareStep. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_ClearStepping) { |
| +RUNTIME_FUNCTION(Object*, Runtime_ClearStepping) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 0); |
| isolate->debug()->ClearStepping(); |
| @@ -12764,7 +12762,7 @@ static MaybeHandle<Object> DebugEvaluate(Isolate* isolate, |
| // - Parameters and stack-allocated locals need to be materialized. Altered |
| // values need to be written back to the stack afterwards. |
| // - The arguments object needs to materialized. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugEvaluate) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DebugEvaluate) { |
| HandleScope scope(isolate); |
| // Check the execution state and decode arguments frame and source to be |
| @@ -12830,7 +12828,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugEvaluate) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugEvaluateGlobal) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DebugEvaluateGlobal) { |
| HandleScope scope(isolate); |
| // Check the execution state and decode arguments frame and source to be |
| @@ -12868,7 +12866,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugEvaluateGlobal) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugGetLoadedScripts) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DebugGetLoadedScripts) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 0); |
| @@ -12970,7 +12968,7 @@ static int DebugReferencedBy(HeapIterator* iterator, |
| // args[0]: the object to find references to |
| // args[1]: constructor function for instances to exclude (Mirror) |
| // args[2]: the the maximum number of objects to return |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugReferencedBy) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DebugReferencedBy) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 3); |
| @@ -13060,7 +13058,7 @@ static int DebugConstructedBy(HeapIterator* iterator, |
| // Scan the heap for objects constructed by a specific function. |
| // args[0]: the constructor to find instances of |
| // args[1]: the the maximum number of objects to return |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugConstructedBy) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DebugConstructedBy) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -13105,7 +13103,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugConstructedBy) { |
| // Find the effective prototype object as returned by __proto__. |
| // args[0]: the object to find the prototype for. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugGetPrototype) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DebugGetPrototype) { |
| HandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0); |
| @@ -13114,7 +13112,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugGetPrototype) { |
| // Patches script source (should be called upon BeforeCompile event). |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugSetScriptSource) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DebugSetScriptSource) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -13132,7 +13130,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugSetScriptSource) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_SystemBreak) { |
| +RUNTIME_FUNCTION(Object*, Runtime_SystemBreak) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 0); |
| OS::DebugBreak(); |
| @@ -13140,14 +13138,14 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SystemBreak) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugDisassembleFunction) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DebugDisassembleFunction) { |
| HandleScope scope(isolate); |
| #ifdef DEBUG |
| ASSERT(args.length() == 1); |
| // Get the function and make sure it is compiled. |
| CONVERT_ARG_HANDLE_CHECKED(JSFunction, func, 0); |
| if (!Compiler::EnsureCompiled(func, KEEP_EXCEPTION)) { |
| - return Failure::Exception(); |
| + return isolate->heap()->exception(); |
| } |
| func->code()->PrintLn(); |
| #endif // DEBUG |
| @@ -13155,14 +13153,14 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugDisassembleFunction) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugDisassembleConstructor) { |
| +RUNTIME_FUNCTION(Object*, Runtime_DebugDisassembleConstructor) { |
| HandleScope scope(isolate); |
| #ifdef DEBUG |
| ASSERT(args.length() == 1); |
| // Get the function and make sure it is compiled. |
| CONVERT_ARG_HANDLE_CHECKED(JSFunction, func, 0); |
| if (!Compiler::EnsureCompiled(func, KEEP_EXCEPTION)) { |
| - return Failure::Exception(); |
| + return isolate->heap()->exception(); |
| } |
| func->shared()->construct_stub()->PrintLn(); |
| #endif // DEBUG |
| @@ -13170,7 +13168,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugDisassembleConstructor) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionGetInferredName) { |
| +RUNTIME_FUNCTION(Object*, Runtime_FunctionGetInferredName) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| @@ -13208,8 +13206,7 @@ static int FindSharedFunctionInfosForScript(HeapIterator* iterator, |
| // For a script finds all SharedFunctionInfo's in the heap that points |
| // to this script. Returns JSArray of SharedFunctionInfo wrapped |
| // in OpaqueReferences. |
| -RUNTIME_FUNCTION(MaybeObject*, |
| - Runtime_LiveEditFindSharedFunctionInfosForScript) { |
| +RUNTIME_FUNCTION(Object*, Runtime_LiveEditFindSharedFunctionInfosForScript) { |
| HandleScope scope(isolate); |
| CHECK(isolate->debugger()->live_edit_enabled()); |
| ASSERT(args.length() == 1); |
| @@ -13258,7 +13255,7 @@ RUNTIME_FUNCTION(MaybeObject*, |
| // Returns a JSArray of compilation infos. The array is ordered so that |
| // each function with all its descendant is always stored in a continues range |
| // with the function itself going first. The root function is a script function. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_LiveEditGatherCompileInfo) { |
| +RUNTIME_FUNCTION(Object*, Runtime_LiveEditGatherCompileInfo) { |
| HandleScope scope(isolate); |
| CHECK(isolate->debugger()->live_edit_enabled()); |
| ASSERT(args.length() == 2); |
| @@ -13278,7 +13275,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_LiveEditGatherCompileInfo) { |
| // Changes the source of the script to a new_source. |
| // If old_script_name is provided (i.e. is a String), also creates a copy of |
| // the script with its original source and sends notification to debugger. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_LiveEditReplaceScript) { |
| +RUNTIME_FUNCTION(Object*, Runtime_LiveEditReplaceScript) { |
| HandleScope scope(isolate); |
| CHECK(isolate->debugger()->live_edit_enabled()); |
| ASSERT(args.length() == 3); |
| @@ -13301,7 +13298,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_LiveEditReplaceScript) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_LiveEditFunctionSourceUpdated) { |
| +RUNTIME_FUNCTION(Object*, Runtime_LiveEditFunctionSourceUpdated) { |
| HandleScope scope(isolate); |
| CHECK(isolate->debugger()->live_edit_enabled()); |
| ASSERT(args.length() == 1); |
| @@ -13314,7 +13311,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_LiveEditFunctionSourceUpdated) { |
| // Replaces code of SharedFunctionInfo with a new one. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_LiveEditReplaceFunctionCode) { |
| +RUNTIME_FUNCTION(Object*, Runtime_LiveEditReplaceFunctionCode) { |
| HandleScope scope(isolate); |
| CHECK(isolate->debugger()->live_edit_enabled()); |
| ASSERT(args.length() == 2); |
| @@ -13328,7 +13325,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_LiveEditReplaceFunctionCode) { |
| // Connects SharedFunctionInfo to another script. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_LiveEditFunctionSetScript) { |
| +RUNTIME_FUNCTION(Object*, Runtime_LiveEditFunctionSetScript) { |
| HandleScope scope(isolate); |
| CHECK(isolate->debugger()->live_edit_enabled()); |
| ASSERT(args.length() == 2); |
| @@ -13355,7 +13352,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_LiveEditFunctionSetScript) { |
| // In a code of a parent function replaces original function as embedded object |
| // with a substitution one. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_LiveEditReplaceRefToNestedFunction) { |
| +RUNTIME_FUNCTION(Object*, Runtime_LiveEditReplaceRefToNestedFunction) { |
| HandleScope scope(isolate); |
| CHECK(isolate->debugger()->live_edit_enabled()); |
| ASSERT(args.length() == 3); |
| @@ -13375,7 +13372,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_LiveEditReplaceRefToNestedFunction) { |
| // array of groups of 3 numbers: |
| // (change_begin, change_end, change_end_new_position). |
| // Each group describes a change in text; groups are sorted by change_begin. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_LiveEditPatchFunctionPositions) { |
| +RUNTIME_FUNCTION(Object*, Runtime_LiveEditPatchFunctionPositions) { |
| HandleScope scope(isolate); |
| CHECK(isolate->debugger()->live_edit_enabled()); |
| ASSERT(args.length() == 2); |
| @@ -13392,7 +13389,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_LiveEditPatchFunctionPositions) { |
| // checks that none of them have activations on stacks (of any thread). |
| // Returns array of the same length with corresponding results of |
| // LiveEdit::FunctionPatchabilityStatus type. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_LiveEditCheckAndDropActivations) { |
| +RUNTIME_FUNCTION(Object*, Runtime_LiveEditCheckAndDropActivations) { |
| HandleScope scope(isolate); |
| CHECK(isolate->debugger()->live_edit_enabled()); |
| ASSERT(args.length() == 2); |
| @@ -13406,7 +13403,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_LiveEditCheckAndDropActivations) { |
| // Compares 2 strings line-by-line, then token-wise and returns diff in form |
| // of JSArray of triplets (pos1, pos1_end, pos2_end) describing list |
| // of diff chunks. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_LiveEditCompareStrings) { |
| +RUNTIME_FUNCTION(Object*, Runtime_LiveEditCompareStrings) { |
| HandleScope scope(isolate); |
| CHECK(isolate->debugger()->live_edit_enabled()); |
| ASSERT(args.length() == 2); |
| @@ -13419,7 +13416,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_LiveEditCompareStrings) { |
| // Restarts a call frame and completely drops all frames above. |
| // Returns true if successful. Otherwise returns undefined or an error message. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_LiveEditRestartFrame) { |
| +RUNTIME_FUNCTION(Object*, Runtime_LiveEditRestartFrame) { |
| HandleScope scope(isolate); |
| CHECK(isolate->debugger()->live_edit_enabled()); |
| ASSERT(args.length() == 2); |
| @@ -13454,7 +13451,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_LiveEditRestartFrame) { |
| // A testing entry. Returns statement position which is the closest to |
| // source_position. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetFunctionCodePositionFromSource) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetFunctionCodePositionFromSource) { |
| HandleScope scope(isolate); |
| CHECK(isolate->debugger()->live_edit_enabled()); |
| ASSERT(args.length() == 2); |
| @@ -13492,7 +13489,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetFunctionCodePositionFromSource) { |
| // Calls specified function with or without entering the debugger. |
| // This is used in unit tests to run code as if debugger is entered or simply |
| // to have a stack with C++ frame in the middle. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_ExecuteInDebugContext) { |
| +RUNTIME_FUNCTION(Object*, Runtime_ExecuteInDebugContext) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); |
| @@ -13520,7 +13517,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_ExecuteInDebugContext) { |
| // Sets a v8 flag. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_SetFlags) { |
| +RUNTIME_FUNCTION(Object*, Runtime_SetFlags) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_CHECKED(String, arg, 0); |
| @@ -13533,7 +13530,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetFlags) { |
| // Performs a GC. |
| // Presently, it only does a full GC. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_CollectGarbage) { |
| +RUNTIME_FUNCTION(Object*, Runtime_CollectGarbage) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, "%CollectGarbage"); |
| @@ -13542,7 +13539,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_CollectGarbage) { |
| // Gets the current heap usage. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetHeapUsage) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetHeapUsage) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 0); |
| int usage = static_cast<int>(isolate->heap()->SizeOfObjects()); |
| @@ -13556,7 +13553,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetHeapUsage) { |
| #ifdef V8_I18N_SUPPORT |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_CanonicalizeLanguageTag) { |
| +RUNTIME_FUNCTION(Object*, Runtime_CanonicalizeLanguageTag) { |
| HandleScope scope(isolate); |
| Factory* factory = isolate->factory(); |
| @@ -13591,7 +13588,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_CanonicalizeLanguageTag) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_AvailableLocalesOf) { |
| +RUNTIME_FUNCTION(Object*, Runtime_AvailableLocalesOf) { |
| HandleScope scope(isolate); |
| Factory* factory = isolate->factory(); |
| @@ -13639,7 +13636,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_AvailableLocalesOf) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetDefaultICULocale) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetDefaultICULocale) { |
| HandleScope scope(isolate); |
| Factory* factory = isolate->factory(); |
| @@ -13660,7 +13657,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetDefaultICULocale) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetLanguageTagVariants) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetLanguageTagVariants) { |
| HandleScope scope(isolate); |
| Factory* factory = isolate->factory(); |
| @@ -13750,7 +13747,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetLanguageTagVariants) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_IsInitializedIntlObject) { |
| +RUNTIME_FUNCTION(Object*, Runtime_IsInitializedIntlObject) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| @@ -13766,7 +13763,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_IsInitializedIntlObject) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_IsInitializedIntlObjectOfType) { |
| +RUNTIME_FUNCTION(Object*, Runtime_IsInitializedIntlObjectOfType) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -13784,7 +13781,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_IsInitializedIntlObjectOfType) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_MarkAsInitializedIntlObjectOfType) { |
| +RUNTIME_FUNCTION(Object*, Runtime_MarkAsInitializedIntlObjectOfType) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 3); |
| @@ -13803,7 +13800,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_MarkAsInitializedIntlObjectOfType) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetImplFromInitializedIntlObject) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetImplFromInitializedIntlObject) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| @@ -13831,7 +13828,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetImplFromInitializedIntlObject) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_CreateDateTimeFormat) { |
| +RUNTIME_FUNCTION(Object*, Runtime_CreateDateTimeFormat) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 3); |
| @@ -13873,7 +13870,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_CreateDateTimeFormat) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_InternalDateFormat) { |
| +RUNTIME_FUNCTION(Object*, Runtime_InternalDateFormat) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -13903,7 +13900,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_InternalDateFormat) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_InternalDateParse) { |
| +RUNTIME_FUNCTION(Object*, Runtime_InternalDateParse) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -13930,7 +13927,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_InternalDateParse) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_CreateNumberFormat) { |
| +RUNTIME_FUNCTION(Object*, Runtime_CreateNumberFormat) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 3); |
| @@ -13971,7 +13968,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_CreateNumberFormat) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_InternalNumberFormat) { |
| +RUNTIME_FUNCTION(Object*, Runtime_InternalNumberFormat) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -14001,7 +13998,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_InternalNumberFormat) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_InternalNumberParse) { |
| +RUNTIME_FUNCTION(Object*, Runtime_InternalNumberParse) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -14040,7 +14037,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_InternalNumberParse) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_CreateCollator) { |
| +RUNTIME_FUNCTION(Object*, Runtime_CreateCollator) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 3); |
| @@ -14079,7 +14076,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_CreateCollator) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_InternalCompare) { |
| +RUNTIME_FUNCTION(Object*, Runtime_InternalCompare) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 3); |
| @@ -14107,7 +14104,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_InternalCompare) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_StringNormalize) { |
| +RUNTIME_FUNCTION(Object*, Runtime_StringNormalize) { |
| HandleScope scope(isolate); |
| static const UNormalizationMode normalizationForms[] = |
| { UNORM_NFC, UNORM_NFD, UNORM_NFKC, UNORM_NFKD }; |
| @@ -14140,7 +14137,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_StringNormalize) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_CreateBreakIterator) { |
| +RUNTIME_FUNCTION(Object*, Runtime_CreateBreakIterator) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 3); |
| @@ -14185,7 +14182,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_CreateBreakIterator) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_BreakIteratorAdoptText) { |
| +RUNTIME_FUNCTION(Object*, Runtime_BreakIteratorAdoptText) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| @@ -14212,7 +14209,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_BreakIteratorAdoptText) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_BreakIteratorFirst) { |
| +RUNTIME_FUNCTION(Object*, Runtime_BreakIteratorFirst) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| @@ -14227,7 +14224,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_BreakIteratorFirst) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_BreakIteratorNext) { |
| +RUNTIME_FUNCTION(Object*, Runtime_BreakIteratorNext) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| @@ -14242,7 +14239,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_BreakIteratorNext) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_BreakIteratorCurrent) { |
| +RUNTIME_FUNCTION(Object*, Runtime_BreakIteratorCurrent) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| @@ -14257,7 +14254,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_BreakIteratorCurrent) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_BreakIteratorBreakType) { |
| +RUNTIME_FUNCTION(Object*, Runtime_BreakIteratorBreakType) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| @@ -14329,7 +14326,7 @@ static Handle<Object> Runtime_GetScriptFromScriptName( |
| // Get the script object from script data. NOTE: Regarding performance |
| // see the NOTE for GetScriptFromScriptData. |
| // args[0]: script data for the script to find the source for |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetScript) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetScript) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| @@ -14346,7 +14343,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetScript) { |
| // Collect the raw data for a stack trace. Returns an array of 4 |
| // element segments each containing a receiver, function, code and |
| // native code offset. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_CollectStackTrace) { |
| +RUNTIME_FUNCTION(Object*, Runtime_CollectStackTrace) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 3); |
| CONVERT_ARG_HANDLE_CHECKED(JSObject, error_object, 0); |
| @@ -14362,7 +14359,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_CollectStackTrace) { |
| // Retrieve the stack trace. This is the raw stack trace that yet has to |
| // be formatted. Since we only need this once, clear it afterwards. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetAndClearOverflowedStackTrace) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetAndClearOverflowedStackTrace) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(JSObject, error_object, 0); |
| @@ -14376,7 +14373,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetAndClearOverflowedStackTrace) { |
| // Returns V8 version as a string. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetV8Version) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetV8Version) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 0); |
| @@ -14386,7 +14383,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetV8Version) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_Abort) { |
| +RUNTIME_FUNCTION(Object*, Runtime_Abort) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_SMI_ARG_CHECKED(message_id, 0); |
| @@ -14400,7 +14397,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_Abort) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_AbortJS) { |
| +RUNTIME_FUNCTION(Object*, Runtime_AbortJS) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(String, message, 0); |
| @@ -14412,7 +14409,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_AbortJS) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_FlattenString) { |
| +RUNTIME_FUNCTION(Object*, Runtime_FlattenString) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(String, str, 0); |
| @@ -14420,7 +14417,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_FlattenString) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_NotifyContextDisposed) { |
| +RUNTIME_FUNCTION(Object*, Runtime_NotifyContextDisposed) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 0); |
| isolate->heap()->NotifyContextDisposed(); |
| @@ -14428,7 +14425,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NotifyContextDisposed) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_LoadMutableDouble) { |
| +RUNTIME_FUNCTION(Object*, Runtime_LoadMutableDouble) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0); |
| @@ -14441,7 +14438,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_LoadMutableDouble) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_TryMigrateInstance) { |
| +RUNTIME_FUNCTION(Object*, Runtime_TryMigrateInstance) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(Object, object, 0); |
| @@ -14458,7 +14455,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_TryMigrateInstance) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_GetFromCache) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_GetFromCache) { |
| SealHandleScope shs(isolate); |
| // This is only called from codegen, so checks might be more lax. |
| CONVERT_ARG_CHECKED(JSFunctionResultCache, cache, 0); |
| @@ -14556,7 +14553,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_GetFromCache) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_MessageGetStartPosition) { |
| +RUNTIME_FUNCTION(Object*, Runtime_MessageGetStartPosition) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_CHECKED(JSMessageObject, message, 0); |
| @@ -14564,7 +14561,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_MessageGetStartPosition) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_MessageGetScript) { |
| +RUNTIME_FUNCTION(Object*, Runtime_MessageGetScript) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_CHECKED(JSMessageObject, message, 0); |
| @@ -14575,7 +14572,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_MessageGetScript) { |
| #ifdef DEBUG |
| // ListNatives is ONLY used by the fuzz-natives.js in debug mode |
| // Exclude the code in release mode. |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_ListNatives) { |
| +RUNTIME_FUNCTION(Object*, Runtime_ListNatives) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 0); |
| #define COUNT_ENTRY(Name, argc, ressize) + 1 |
| @@ -14618,7 +14615,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_ListNatives) { |
| #endif |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_Log) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_Log) { |
| HandleScope handle_scope(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_HANDLE_CHECKED(String, format, 0); |
| @@ -14631,15 +14628,15 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_Log) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_IS_VAR) { |
| +RUNTIME_FUNCTION(Object*, Runtime_IS_VAR) { |
| UNREACHABLE(); // implemented as macro in the parser |
| return NULL; |
| } |
| #define ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(Name) \ |
| - RUNTIME_FUNCTION(MaybeObject*, Runtime_Has##Name) { \ |
| - CONVERT_ARG_CHECKED(JSObject, obj, 0); \ |
| + RUNTIME_FUNCTION(Object*, Runtime_Has##Name) { \ |
| + CONVERT_ARG_CHECKED(JSObject, obj, 0); \ |
| return isolate->heap()->ToBoolean(obj->Has##Name()); \ |
| } |
| @@ -14658,7 +14655,7 @@ ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(FastProperties) |
| #define TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION(Type, type, TYPE, ctype, size) \ |
| - RUNTIME_FUNCTION(MaybeObject*, Runtime_HasExternal##Type##Elements) { \ |
| + RUNTIME_FUNCTION(Object*, Runtime_HasExternal##Type##Elements) { \ |
| CONVERT_ARG_CHECKED(JSObject, obj, 0); \ |
| return isolate->heap()->ToBoolean(obj->HasExternal##Type##Elements()); \ |
| } |
| @@ -14669,7 +14666,7 @@ TYPED_ARRAYS(TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION) |
| #define FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION(Type, type, TYPE, ctype, s) \ |
| - RUNTIME_FUNCTION(MaybeObject*, Runtime_HasFixed##Type##Elements) { \ |
| + RUNTIME_FUNCTION(Object*, Runtime_HasFixed##Type##Elements) { \ |
| CONVERT_ARG_CHECKED(JSObject, obj, 0); \ |
| return isolate->heap()->ToBoolean(obj->HasFixed##Type##Elements()); \ |
| } |
| @@ -14679,7 +14676,7 @@ TYPED_ARRAYS(FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION) |
| #undef FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_HaveSameMap) { |
| +RUNTIME_FUNCTION(Object*, Runtime_HaveSameMap) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 2); |
| CONVERT_ARG_CHECKED(JSObject, obj1, 0); |
| @@ -14688,7 +14685,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_HaveSameMap) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_IsAccessCheckNeeded) { |
| +RUNTIME_FUNCTION(Object*, Runtime_IsAccessCheckNeeded) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_CHECKED(HeapObject, obj, 0); |
| @@ -14696,7 +14693,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_IsAccessCheckNeeded) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_IsObserved) { |
| +RUNTIME_FUNCTION(Object*, Runtime_IsObserved) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| @@ -14712,7 +14709,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_IsObserved) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_SetIsObserved) { |
| +RUNTIME_FUNCTION(Object*, Runtime_SetIsObserved) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_ARG_HANDLE_CHECKED(JSReceiver, obj, 0); |
| @@ -14731,7 +14728,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetIsObserved) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_SetMicrotaskPending) { |
| +RUNTIME_FUNCTION(Object*, Runtime_SetMicrotaskPending) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 1); |
| CONVERT_BOOLEAN_ARG_CHECKED(new_state, 0); |
| @@ -14741,7 +14738,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetMicrotaskPending) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_RunMicrotasks) { |
| +RUNTIME_FUNCTION(Object*, Runtime_RunMicrotasks) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 0); |
| if (isolate->microtask_pending()) Execution::RunMicrotasks(isolate); |
| @@ -14749,21 +14746,21 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_RunMicrotasks) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetMicrotaskState) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetMicrotaskState) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 0); |
| return isolate->heap()->microtask_state(); |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_GetObservationState) { |
| +RUNTIME_FUNCTION(Object*, Runtime_GetObservationState) { |
| SealHandleScope shs(isolate); |
| ASSERT(args.length() == 0); |
| return isolate->heap()->observation_state(); |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_ObservationWeakMapCreate) { |
| +RUNTIME_FUNCTION(Object*, Runtime_ObservationWeakMapCreate) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 0); |
| // TODO(adamk): Currently this runtime function is only called three times per |
| @@ -14777,7 +14774,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_ObservationWeakMapCreate) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_IsAccessAllowedForObserver) { |
| +RUNTIME_FUNCTION(Object*, Runtime_IsAccessAllowedForObserver) { |
| HandleScope scope(isolate); |
| ASSERT(args.length() == 3); |
| CONVERT_ARG_HANDLE_CHECKED(JSFunction, observer, 0); |
| @@ -14806,7 +14803,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_IsAccessAllowedForObserver) { |
| } |
| -static MaybeObject* ArrayConstructorCommon(Isolate* isolate, |
| +static Object* ArrayConstructorCommon(Isolate* isolate, |
| Handle<JSFunction> constructor, |
| Handle<AllocationSite> site, |
| Arguments* caller_args) { |
| @@ -14885,7 +14882,7 @@ static MaybeObject* ArrayConstructorCommon(Isolate* isolate, |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_ArrayConstructor) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_ArrayConstructor) { |
| HandleScope scope(isolate); |
| // If we get 2 arguments then they are the stub parameters (constructor, type |
| // info). If we get 4, then the first one is a pointer to the arguments |
| @@ -14922,7 +14919,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_ArrayConstructor) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_InternalArrayConstructor) { |
| +RUNTIME_FUNCTION(Object*, RuntimeHidden_InternalArrayConstructor) { |
| HandleScope scope(isolate); |
| Arguments empty_args(0, NULL); |
| bool no_caller_args = args.length() == 1; |
| @@ -14945,7 +14942,7 @@ RUNTIME_FUNCTION(MaybeObject*, RuntimeHidden_InternalArrayConstructor) { |
| } |
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_MaxSmi) { |
| +RUNTIME_FUNCTION(Object*, Runtime_MaxSmi) { |
| ASSERT(args.length() == 0); |
| return Smi::FromInt(Smi::kMaxValue); |
| } |
| @@ -15021,31 +15018,4 @@ const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { |
| return &(kIntrinsicFunctions[static_cast<int>(id)]); |
| } |
| - |
| -void Runtime::PerformGC(Object* result, Isolate* isolate) { |
| - Failure* failure = Failure::cast(result); |
| - if (failure->IsRetryAfterGC()) { |
| - if (isolate->heap()->new_space()->AddFreshPage()) { |
| - return; |
| - } |
| - |
| - // Try to do a garbage collection; ignore it if it fails. The C |
| - // entry stub will throw an out-of-memory exception in that case. |
| - isolate->heap()->CollectGarbage(failure->allocation_space(), |
| - "Runtime::PerformGC"); |
| - } else { |
| - // Handle last resort GC and make sure to allow future allocations |
| - // to grow the heap without causing GCs (if possible). |
| - isolate->counters()->gc_last_resort_from_js()->Increment(); |
| - isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, |
| - "Runtime::PerformGC"); |
| - } |
| -} |
| - |
| - |
| -void Runtime::OutOfMemory() { |
| - Heap::FatalProcessOutOfMemory("CALL_AND_RETRY_LAST", true); |
| - UNREACHABLE(); |
| -} |
| - |
| } } // namespace v8::internal |