Index: src/runtime/runtime-object.cc |
diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc |
index f871ead87b68e2d84388aa3becf971c388f7cbef..7846cbbf381224ead5e8549eebcddc1f877b9c08 100644 |
--- a/src/runtime/runtime-object.cc |
+++ b/src/runtime/runtime-object.cc |
@@ -1611,5 +1611,22 @@ RUNTIME_FUNCTION(Runtime_IsAccessCheckNeeded) { |
} |
+RUNTIME_FUNCTION(Runtime_ObjectDefineProperty) { |
+ HandleScope scope(isolate); |
+ DCHECK(args.length() == 3); |
+ CONVERT_ARG_HANDLE_CHECKED(Object, o, 0); |
+ CONVERT_ARG_HANDLE_CHECKED(Object, name, 1); |
+ CONVERT_ARG_HANDLE_CHECKED(Object, attributes, 2); |
+ return JSReceiver::DefineProperty(isolate, o, name, attributes); |
+} |
+ |
+ |
+RUNTIME_FUNCTION(Runtime_ObjectDefineProperties) { |
+ HandleScope scope(isolate); |
+ DCHECK(args.length() == 2); |
+ CONVERT_ARG_HANDLE_CHECKED(Object, o, 0); |
+ CONVERT_ARG_HANDLE_CHECKED(Object, properties, 1); |
+ return JSReceiver::DefineProperties(isolate, o, properties); |
+} |
} // namespace internal |
} // namespace v8 |