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