| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index 48c4ef0385274bee20524378547ce03ffc508113..05392caefcc3cadcb11f026eb854a62d0ff1ef77 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -14275,9 +14275,11 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetV8Version) {
|
|
|
| RUNTIME_FUNCTION(MaybeObject*, Runtime_Abort) {
|
| SealHandleScope shs(isolate);
|
| - ASSERT(args.length() == 2);
|
| - OS::PrintError("abort: %s\n",
|
| - reinterpret_cast<char*>(args[0]) + args.smi_at(1));
|
| + ASSERT(args.length() == 1);
|
| + CONVERT_SMI_ARG_CHECKED(message_id, 0);
|
| + const char* message = GetBailoutReason(
|
| + static_cast<BailoutReason>(message_id));
|
| + OS::PrintError("abort: %s\n", message);
|
| isolate->PrintStack(stderr);
|
| OS::Abort();
|
| UNREACHABLE();
|
|
|