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

Side by Side Diff: test/cctest/interpreter/interpreter-tester.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
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/cctest/interpreter/interpreter-tester.h" 5 #include "test/cctest/interpreter/interpreter-tester.h"
6 6
7 #include "src/objects-inl.h"
8
7 namespace v8 { 9 namespace v8 {
8 namespace internal { 10 namespace internal {
9 namespace interpreter { 11 namespace interpreter {
10 12
11 MaybeHandle<Object> CallInterpreter(Isolate* isolate, 13 MaybeHandle<Object> CallInterpreter(Isolate* isolate,
12 Handle<JSFunction> function) { 14 Handle<JSFunction> function) {
13 return Execution::Call(isolate, function, 15 return Execution::Call(isolate, function,
14 isolate->factory()->undefined_value(), 0, nullptr); 16 isolate->factory()->undefined_value(), 0, nullptr);
15 } 17 }
16 18
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 return "function " + function_name() + "() {\n" + std::string(body) + "\n}"; 64 return "function " + function_name() + "() {\n" + std::string(body) + "\n}";
63 } 65 }
64 66
65 std::string InterpreterTester::function_name() { 67 std::string InterpreterTester::function_name() {
66 return std::string(kFunctionName); 68 return std::string(kFunctionName);
67 } 69 }
68 70
69 } // namespace interpreter 71 } // namespace interpreter
70 } // namespace internal 72 } // namespace internal
71 } // namespace v8 73 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/heap/test-array-buffer-tracker.cc ('k') | test/cctest/interpreter/test-bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698