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 <tuple> | 5 #include <tuple> |
6 | 6 |
7 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #include "src/execution.h" | 9 #include "src/execution.h" |
10 #include "src/handles.h" | 10 #include "src/handles.h" |
11 #include "src/interpreter/bytecode-array-builder.h" | 11 #include "src/interpreter/bytecode-array-builder.h" |
12 #include "src/interpreter/bytecode-array-iterator.h" | 12 #include "src/interpreter/bytecode-array-iterator.h" |
13 #include "src/interpreter/bytecode-label.h" | 13 #include "src/interpreter/bytecode-label.h" |
14 #include "src/interpreter/interpreter.h" | 14 #include "src/interpreter/interpreter.h" |
| 15 #include "src/unicode-cache.h" |
15 #include "test/cctest/cctest.h" | 16 #include "test/cctest/cctest.h" |
16 #include "test/cctest/interpreter/interpreter-tester.h" | 17 #include "test/cctest/interpreter/interpreter-tester.h" |
17 #include "test/cctest/test-feedback-vector.h" | 18 #include "test/cctest/test-feedback-vector.h" |
18 | 19 |
19 namespace v8 { | 20 namespace v8 { |
20 namespace internal { | 21 namespace internal { |
21 namespace interpreter { | 22 namespace interpreter { |
22 | 23 |
23 | 24 |
24 TEST(InterpreterReturn) { | 25 TEST(InterpreterReturn) { |
(...skipping 4802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4827 auto callable = tester.GetCallable<>(); | 4828 auto callable = tester.GetCallable<>(); |
4828 | 4829 |
4829 Handle<i::Object> return_value = callable().ToHandleChecked(); | 4830 Handle<i::Object> return_value = callable().ToHandleChecked(); |
4830 CHECK(return_value->SameValue(*tests[i].second)); | 4831 CHECK(return_value->SameValue(*tests[i].second)); |
4831 } | 4832 } |
4832 } | 4833 } |
4833 | 4834 |
4834 } // namespace interpreter | 4835 } // namespace interpreter |
4835 } // namespace internal | 4836 } // namespace internal |
4836 } // namespace v8 | 4837 } // namespace v8 |
OLD | NEW |