| Index: src/d8.cc
|
| diff --git a/src/d8.cc b/src/d8.cc
|
| index 614b16ea81896eab841d72e242b7722fc56eddaa..6eb7248b0e8fa0d84b802f59132cf29c1931d0c6 100644
|
| --- a/src/d8.cc
|
| +++ b/src/d8.cc
|
| @@ -49,6 +49,7 @@
|
| #endif // !V8_SHARED
|
|
|
| #ifdef V8_SHARED
|
| +#include "../include/v8-defaults.h"
|
| #include "../include/v8-testing.h"
|
| #endif // V8_SHARED
|
|
|
| @@ -66,6 +67,7 @@
|
| #include "natives.h"
|
| #include "platform.h"
|
| #include "v8.h"
|
| +#include "v8-defaults.h"
|
| #endif // V8_SHARED
|
|
|
| #if !defined(_WIN32) && !defined(_WIN64)
|
| @@ -1526,7 +1528,7 @@ int Shell::RunMain(Isolate* isolate, int argc, char* argv[]) {
|
| // Start preemption if threads have been created and preemption is enabled.
|
| if (threads.length() > 0
|
| && options.use_preemption) {
|
| - Locker::StartPreemption(options.preemption_interval);
|
| + Locker::StartPreemption(isolate, options.preemption_interval);
|
| }
|
| #endif // V8_SHARED
|
| }
|
| @@ -1544,7 +1546,7 @@ int Shell::RunMain(Isolate* isolate, int argc, char* argv[]) {
|
|
|
| if (threads.length() > 0 && options.use_preemption) {
|
| Locker lock(isolate);
|
| - Locker::StopPreemption();
|
| + Locker::StopPreemption(isolate);
|
| }
|
| #endif // V8_SHARED
|
| return 0;
|
| @@ -1649,6 +1651,7 @@ int Shell::Main(int argc, char* argv[]) {
|
| #else
|
| SetStandaloneFlagsViaCommandLine();
|
| #endif
|
| + v8::SetDefaultResourceConstraintsForCurrentPlatform();
|
| ShellArrayBufferAllocator array_buffer_allocator;
|
| v8::V8::SetArrayBufferAllocator(&array_buffer_allocator);
|
| int result = 0;
|
|
|