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. |
| 6 #define V8_IMMINENT_DEPRECATION_WARNINGS |
| 7 |
5 #include "src/interface-descriptors.h" | 8 #include "src/interface-descriptors.h" |
6 #include "src/isolate.h" | 9 #include "src/isolate.h" |
7 #include "test/cctest/compiler/function-tester.h" | 10 #include "test/cctest/compiler/function-tester.h" |
8 | 11 |
9 namespace v8 { | 12 namespace v8 { |
10 namespace internal { | 13 namespace internal { |
11 namespace compiler { | 14 namespace compiler { |
12 | 15 |
13 | 16 |
14 class CodeStubAssemblerTester : public CodeStubAssembler { | 17 class CodeStubAssemblerTester : public CodeStubAssembler { |
(...skipping 101 matching lines...) Loading... |
116 m.TailCallRuntime(Runtime::kMathPow, context, a, b); | 119 m.TailCallRuntime(Runtime::kMathPow, context, a, b); |
117 Handle<Code> code = m.GenerateCode(); | 120 Handle<Code> code = m.GenerateCode(); |
118 FunctionTester ft(descriptor, code); | 121 FunctionTester ft(descriptor, code); |
119 MaybeHandle<Object> result = ft.Call(); | 122 MaybeHandle<Object> result = ft.Call(); |
120 CHECK_EQ(16, Handle<Smi>::cast(result.ToHandleChecked())->value()); | 123 CHECK_EQ(16, Handle<Smi>::cast(result.ToHandleChecked())->value()); |
121 } | 124 } |
122 | 125 |
123 } // namespace compiler | 126 } // namespace compiler |
124 } // namespace internal | 127 } // namespace internal |
125 } // namespace v8 | 128 } // namespace v8 |
OLD | NEW |