| Index: src/runtime/runtime-classes.cc
|
| diff --git a/src/runtime/runtime-classes.cc b/src/runtime/runtime-classes.cc
|
| index 323604ffdec47047d31e14cd4600fa9e0f78e068..aafd7779870f74cbd9bc2e5380b79f4842e8638b 100644
|
| --- a/src/runtime/runtime-classes.cc
|
| +++ b/src/runtime/runtime-classes.cc
|
| @@ -51,31 +51,13 @@ RUNTIME_FUNCTION(Runtime_ThrowArrayNotSubclassableError) {
|
| isolate, NewTypeError(MessageTemplate::kArrayNotSubclassable));
|
| }
|
|
|
| -
|
| -static Object* ThrowStaticPrototypeError(Isolate* isolate) {
|
| - THROW_NEW_ERROR_RETURN_FAILURE(
|
| - isolate, NewTypeError(MessageTemplate::kStaticPrototype));
|
| -}
|
| -
|
| -
|
| RUNTIME_FUNCTION(Runtime_ThrowStaticPrototypeError) {
|
| HandleScope scope(isolate);
|
| DCHECK(args.length() == 0);
|
| - return ThrowStaticPrototypeError(isolate);
|
| -}
|
| -
|
| -
|
| -RUNTIME_FUNCTION(Runtime_ThrowIfStaticPrototype) {
|
| - HandleScope scope(isolate);
|
| - DCHECK(args.length() == 1);
|
| - CONVERT_ARG_HANDLE_CHECKED(Name, name, 0);
|
| - if (Name::Equals(name, isolate->factory()->prototype_string())) {
|
| - return ThrowStaticPrototypeError(isolate);
|
| - }
|
| - return *name;
|
| + THROW_NEW_ERROR_RETURN_FAILURE(
|
| + isolate, NewTypeError(MessageTemplate::kStaticPrototype));
|
| }
|
|
|
| -
|
| RUNTIME_FUNCTION(Runtime_HomeObjectSymbol) {
|
| DCHECK(args.length() == 0);
|
| return isolate->heap()->home_object_symbol();
|
|
|