ArrayBuffer::Allocator* Shell::array_buffer_allocator;
ShellOptions Shell::options;
const char* Shell::kPrompt = "d8> ";
-base::OnceType Shell::quit_once_ = V8_ONCE_INIT;
#ifndef V8_SHARED
bool CounterMap::Match(void* key1, void* key2) {
#endif // !V8_SHARED
-void Shell::QuitOnce(v8::FunctionCallbackInfo<v8::Value>* args) {
- int exit_code = (*args)[0]->Int32Value();
+void Shell::Quit(const v8::FunctionCallbackInfo<v8::Value>& args) {
+ int exit_code = args[0]->Int32Value();
#ifndef V8_SHARED
CleanupWorkers();
#endif // !V8_SHARED
- OnExit(args->GetIsolate());
+ OnExit(args.GetIsolate());
exit(exit_code);
}
-void Shell::Quit(const v8::FunctionCallbackInfo<v8::Value>& args) {
- base::CallOnce(&quit_once_, &QuitOnce,
- const_cast<v8::FunctionCallbackInfo<v8::Value>*>(&args));
-}
-
-
void Shell::Version(const v8::FunctionCallbackInfo<v8::Value>& args) {
args.GetReturnValue().Set(
String::NewFromUtf8(args.GetIsolate(), V8::GetVersion()));
#include "src/base/compiler-specific.h"
#endif // !V8_SHARED
-#include "src/base/once.h"
-
-
namespace v8 {
static void Print(const v8::FunctionCallbackInfo<v8::Value>& args);
static void Write(const v8::FunctionCallbackInfo<v8::Value>& args);
- static void QuitOnce(v8::FunctionCallbackInfo<v8::Value>* args);
static void Quit(const v8::FunctionCallbackInfo<v8::Value>& args);
static void Version(const v8::FunctionCallbackInfo<v8::Value>& args);
static void Read(const v8::FunctionCallbackInfo<v8::Value>& args);
private:
static Persistent<Context> evaluation_context_;
- static base::OnceType quit_once_;
#ifndef V8_SHARED
static Persistent<Context> utility_context_;
static CounterMap* counter_map_;
# BUG(chromium:508074). Remove this once the issue is fixed.
'harmony/arrow-rest-params': [PASS, NO_VARIANTS],
'harmony/rest-params': [PASS, ['no_snap == True', NO_VARIANTS]],
+
+ # BUG(v8:4279).
+ 'regress/regress-4279': [PASS, ['isolates', SKIP]],
}], # ALWAYS
['novfp3 == True', {