Index: src/x64/code-stubs-x64.cc |
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc |
index dd79a4e1a2dda437504dfc48a61ca6180c0d7366..cc9271452262c1a203fd61e9c4c322be56ff5073 100644 |
--- a/src/x64/code-stubs-x64.cc |
+++ b/src/x64/code-stubs-x64.cc |
@@ -4636,30 +4636,8 @@ |
__ bind(&no_info); |
GenerateDispatchToArrayStub(masm, DISABLE_ALLOCATION_SITES); |
- // Subclassing |
__ bind(&subclassing); |
- __ Pop(rcx); // return address. |
- __ Push(rdi); |
- __ Push(rdx); |
- |
- // Adjust argc. |
- switch (argument_count()) { |
- case ANY: |
- case MORE_THAN_ONE: |
- __ addp(rax, Immediate(2)); |
- break; |
- case NONE: |
- __ movp(rax, Immediate(2)); |
- break; |
- case ONE: |
- __ movp(rax, Immediate(3)); |
- break; |
- } |
- |
- __ Push(rcx); |
- __ JumpToExternalReference( |
- ExternalReference(Runtime::kArrayConstructorWithSubclassing, isolate()), |
- 1); |
+ __ TailCallRuntime(Runtime::kThrowArrayNotSubclassableError, 0, 1); |
} |