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

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

Issue 2622503002: include fixing: api.h shouldn't include objects-inl.h (Closed)
Patch Set: static type check Created 3 years, 11 months 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
« no previous file with comments | « test/fuzzer/parser.cc ('k') | test/unittests/compiler/bytecode-analysis-unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "test/unittests/compiler-dispatcher/compiler-dispatcher-helper.h" 5 #include "test/unittests/compiler-dispatcher/compiler-dispatcher-helper.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "include/v8.h" 9 #include "include/v8.h"
10 #include "src/api.h" 10 #include "src/api.h"
11 #include "src/objects-inl.h"
11 12
12 namespace v8 { 13 namespace v8 {
13 namespace internal { 14 namespace internal {
14 15
15 Handle<Object> RunJS(v8::Isolate* isolate, const char* script) { 16 Handle<Object> RunJS(v8::Isolate* isolate, const char* script) {
16 return Utils::OpenHandle( 17 return Utils::OpenHandle(
17 *v8::Script::Compile( 18 *v8::Script::Compile(
18 isolate->GetCurrentContext(), 19 isolate->GetCurrentContext(),
19 v8::String::NewFromUtf8(isolate, script, v8::NewStringType::kNormal) 20 v8::String::NewFromUtf8(isolate, script, v8::NewStringType::kNormal)
20 .ToLocalChecked()) 21 .ToLocalChecked())
21 .ToLocalChecked() 22 .ToLocalChecked()
22 ->Run(isolate->GetCurrentContext()) 23 ->Run(isolate->GetCurrentContext())
23 .ToLocalChecked()); 24 .ToLocalChecked());
24 } 25 }
25 26
26 } // namespace internal 27 } // namespace internal
27 } // namespace v8 28 } // namespace v8
OLDNEW
« no previous file with comments | « test/fuzzer/parser.cc ('k') | test/unittests/compiler/bytecode-analysis-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698