| 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 // TODO(jochen): Remove this after the setting is turned on globally. | 5 // TODO(jochen): Remove this after the setting is turned on globally. |
| 6 #define V8_IMMINENT_DEPRECATION_WARNINGS | 6 #define V8_IMMINENT_DEPRECATION_WARNINGS |
| 7 | 7 |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "src/v8.h" | |
| 11 | |
| 12 #include "src/compiler/pipeline.h" | 10 #include "src/compiler/pipeline.h" |
| 13 #include "src/execution.h" | 11 #include "src/execution.h" |
| 14 #include "src/handles.h" | 12 #include "src/handles.h" |
| 15 #include "src/interpreter/bytecode-array-builder.h" | 13 #include "src/interpreter/bytecode-array-builder.h" |
| 16 #include "src/interpreter/interpreter.h" | 14 #include "src/interpreter/interpreter.h" |
| 17 #include "src/parser.h" | 15 #include "src/parser.h" |
| 18 #include "test/cctest/cctest.h" | 16 #include "test/cctest/cctest.h" |
| 19 | 17 |
| 20 namespace v8 { | 18 namespace v8 { |
| 21 namespace internal { | 19 namespace internal { |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 snippets[i].code_snippet, kFunctionName); | 253 snippets[i].code_snippet, kFunctionName); |
| 256 | 254 |
| 257 BytecodeGraphTester tester(isolate, zone, script.start()); | 255 BytecodeGraphTester tester(isolate, zone, script.start()); |
| 258 auto callable = tester.GetCallable<Handle<Object>, Handle<Object>>(); | 256 auto callable = tester.GetCallable<Handle<Object>, Handle<Object>>(); |
| 259 Handle<Object> return_value = | 257 Handle<Object> return_value = |
| 260 callable(snippets[i].parameter(0), snippets[i].parameter(1)) | 258 callable(snippets[i].parameter(0), snippets[i].parameter(1)) |
| 261 .ToHandleChecked(); | 259 .ToHandleChecked(); |
| 262 CHECK(return_value->SameValue(*snippets[i].return_value())); | 260 CHECK(return_value->SameValue(*snippets[i].return_value())); |
| 263 } | 261 } |
| 264 } | 262 } |
| OLD | NEW |