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 "src/api.h" | 5 #include "src/api.h" |
6 #include "src/base/utils/random-number-generator.h" | 6 #include "src/base/utils/random-number-generator.h" |
7 #include "src/builtins/builtins-promise.h" | 7 #include "src/builtins/builtins-promise-gen.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/code-stub-assembler.h" | 9 #include "src/code-stub-assembler.h" |
10 #include "src/compiler/node.h" | 10 #include "src/compiler/node.h" |
11 #include "src/debug/debug.h" | 11 #include "src/debug/debug.h" |
12 #include "src/isolate.h" | 12 #include "src/isolate.h" |
13 #include "src/objects-inl.h" | 13 #include "src/objects-inl.h" |
14 #include "test/cctest/compiler/code-assembler-tester.h" | 14 #include "test/cctest/compiler/code-assembler-tester.h" |
15 #include "test/cctest/compiler/function-tester.h" | 15 #include "test/cctest/compiler/function-tester.h" |
16 | 16 |
17 namespace v8 { | 17 namespace v8 { |
(...skipping 2438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2456 m.Return(m.SmiConstant(0)); | 2456 m.Return(m.SmiConstant(0)); |
2457 | 2457 |
2458 Handle<Code> code = data.GenerateCode(); | 2458 Handle<Code> code = data.GenerateCode(); |
2459 CHECK(!code.is_null()); | 2459 CHECK(!code.is_null()); |
2460 FunctionTester ft(code, kNumParams); | 2460 FunctionTester ft(code, kNumParams); |
2461 CHECK_EQ(1, Handle<Smi>::cast(ft.Call().ToHandleChecked())->value()); | 2461 CHECK_EQ(1, Handle<Smi>::cast(ft.Call().ToHandleChecked())->value()); |
2462 } | 2462 } |
2463 | 2463 |
2464 } // namespace internal | 2464 } // namespace internal |
2465 } // namespace v8 | 2465 } // namespace v8 |
OLD | NEW |