| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index 213166a92d48f212d89ad23589505efd7e6a1eea..b5a108159ad81bac2a1ef8a7e28a287751e712c0 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -9449,6 +9449,17 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_ThrowNotDateError) {
|
| }
|
|
|
|
|
| +RUNTIME_FUNCTION(MaybeObject*, Runtime_ThrowMessage) {
|
| + HandleScope scope(isolate);
|
| + ASSERT(args.length() == 1);
|
| + CONVERT_SMI_ARG_CHECKED(message_id, 0);
|
| + const char* message = GetBailoutReason(
|
| + static_cast<BailoutReason>(message_id));
|
| + Handle<Name> message_handle =
|
| + isolate->factory()->NewStringFromAscii(CStrVector(message));
|
| + return isolate->Throw(*message_handle);
|
| +}
|
| +
|
|
|
| RUNTIME_FUNCTION(MaybeObject*, Runtime_StackGuard) {
|
| SealHandleScope shs(isolate);
|
|
|