| OLD | NEW | 
|   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  Loading... | 
|  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 | 
| OLD | NEW |