| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index 07987e2e39e271da31ce4b88346de252736167f3..5a7490db78e28a086477ca7ca39e64da41e38514 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -5521,6 +5521,18 @@ RUNTIME_FUNCTION(Runtime_SetInlineBuiltinFlag) {
|
| }
|
|
|
|
|
| +RUNTIME_FUNCTION(Runtime_DisableOptimisticOptimizations) {
|
| + SealHandleScope shs(isolate);
|
| + RUNTIME_ASSERT(args.length() == 1);
|
| + CONVERT_ARG_HANDLE_CHECKED(Object, object, 0);
|
| +
|
| + if (object->IsSharedFunctionInfo()) {
|
| + SharedFunctionInfo::cast(*object)->disable_optimistic_optimizations();
|
| + }
|
| + return isolate->heap()->undefined_value();
|
| +}
|
| +
|
| +
|
| RUNTIME_FUNCTION(Runtime_StoreArrayLiteralElement) {
|
| HandleScope scope(isolate);
|
| RUNTIME_ASSERT(args.length() == 5);
|
|
|