Index: src/runtime/runtime-object.cc |
diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc |
index f389b41acb3f693295e023678087a7416a2f8b55..aa077c57464d046e7b5f98bb7dad4d3ab3bb01c2 100644 |
--- a/src/runtime/runtime-object.cc |
+++ b/src/runtime/runtime-object.cc |
@@ -291,26 +291,6 @@ RUNTIME_FUNCTION(Runtime_GetOwnProperty) { |
} |
-RUNTIME_FUNCTION(Runtime_PreventExtensions) { |
- HandleScope scope(isolate); |
- DCHECK(args.length() == 1); |
- CONVERT_ARG_HANDLE_CHECKED(JSReceiver, obj, 0); |
- MAYBE_RETURN(JSReceiver::PreventExtensions(obj, Object::THROW_ON_ERROR), |
- isolate->heap()->exception()); |
- return *obj; |
-} |
- |
- |
-RUNTIME_FUNCTION(Runtime_IsExtensible) { |
- HandleScope scope(isolate); |
- DCHECK(args.length() == 1); |
- CONVERT_ARG_HANDLE_CHECKED(JSReceiver, obj, 0); |
- Maybe<bool> result = JSReceiver::IsExtensible(obj); |
- MAYBE_RETURN(result, isolate->heap()->exception()); |
- return isolate->heap()->ToBoolean(result.FromJust()); |
-} |
- |
- |
RUNTIME_FUNCTION(Runtime_OptimizeObjectForAddingMultipleProperties) { |
HandleScope scope(isolate); |
DCHECK(args.length() == 2); |
@@ -326,52 +306,6 @@ RUNTIME_FUNCTION(Runtime_OptimizeObjectForAddingMultipleProperties) { |
} |
-RUNTIME_FUNCTION(Runtime_ObjectFreeze) { |
- HandleScope scope(isolate); |
- DCHECK(args.length() == 1); |
- CONVERT_ARG_HANDLE_CHECKED(JSReceiver, object, 0); |
- |
- MAYBE_RETURN( |
- JSReceiver::SetIntegrityLevel(object, FROZEN, Object::THROW_ON_ERROR), |
- isolate->heap()->exception()); |
- return *object; |
-} |
- |
- |
-RUNTIME_FUNCTION(Runtime_ObjectIsFrozen) { |
- HandleScope scope(isolate); |
- DCHECK(args.length() == 1); |
- CONVERT_ARG_HANDLE_CHECKED(JSReceiver, object, 0); |
- |
- Maybe<bool> result = JSReceiver::TestIntegrityLevel(object, FROZEN); |
- MAYBE_RETURN(result, isolate->heap()->exception()); |
- return isolate->heap()->ToBoolean(result.FromJust()); |
-} |
- |
- |
-RUNTIME_FUNCTION(Runtime_ObjectSeal) { |
- HandleScope scope(isolate); |
- DCHECK(args.length() == 1); |
- CONVERT_ARG_HANDLE_CHECKED(JSReceiver, object, 0); |
- |
- MAYBE_RETURN( |
- JSReceiver::SetIntegrityLevel(object, SEALED, Object::THROW_ON_ERROR), |
- isolate->heap()->exception()); |
- return *object; |
-} |
- |
- |
-RUNTIME_FUNCTION(Runtime_ObjectIsSealed) { |
- HandleScope scope(isolate); |
- DCHECK(args.length() == 1); |
- CONVERT_ARG_HANDLE_CHECKED(JSReceiver, object, 0); |
- |
- Maybe<bool> result = JSReceiver::TestIntegrityLevel(object, SEALED); |
- MAYBE_RETURN(result, isolate->heap()->exception()); |
- return isolate->heap()->ToBoolean(result.FromJust()); |
-} |
- |
- |
RUNTIME_FUNCTION(Runtime_LoadGlobalViaContext) { |
HandleScope scope(isolate); |
DCHECK_EQ(1, args.length()); |