Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Side by Side Diff: test/unittests/compiler-dispatcher/compiler-dispatcher-helper.cc

Issue 2558293004: Add a basic compiler dispatcher (Closed)
Patch Set: play it safe Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "test/unittests/compiler-dispatcher/compiler-dispatcher-helper.h"
6
7 #include <memory>
8
9 #include "include/v8.h"
10 #include "src/api.h"
11
12 namespace v8 {
13 namespace internal {
14
15 Handle<Object> RunJS(v8::Isolate* isolate, const char* script) {
16 return Utils::OpenHandle(
17 *v8::Script::Compile(
18 isolate->GetCurrentContext(),
19 v8::String::NewFromUtf8(isolate, script, v8::NewStringType::kNormal)
20 .ToLocalChecked())
21 .ToLocalChecked()
22 ->Run(isolate->GetCurrentContext())
23 .ToLocalChecked());
24 }
25
26 } // namespace internal
27 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698