| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 "v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "function-tester.h" | 7 #include "test/cctest/compiler/function-tester.h" |
| 8 | 8 |
| 9 using namespace v8::internal; | 9 using namespace v8::internal; |
| 10 using namespace v8::internal::compiler; | 10 using namespace v8::internal::compiler; |
| 11 | 11 |
| 12 | 12 |
| 13 TEST(TurboSimpleDeopt) { | 13 TEST(TurboSimpleDeopt) { |
| 14 FLAG_allow_natives_syntax = true; | 14 FLAG_allow_natives_syntax = true; |
| 15 FLAG_turbo_deoptimization = true; | 15 FLAG_turbo_deoptimization = true; |
| 16 | 16 |
| 17 FunctionTester T( | 17 FunctionTester T( |
| (...skipping 12 matching lines...) Expand all Loading... |
| 30 FLAG_allow_natives_syntax = true; | 30 FLAG_allow_natives_syntax = true; |
| 31 FLAG_turbo_deoptimization = true; | 31 FLAG_turbo_deoptimization = true; |
| 32 | 32 |
| 33 FunctionTester T( | 33 FunctionTester T( |
| 34 "(function foo() {" | 34 "(function foo() {" |
| 35 "%DeoptimizeFunction(foo);" | 35 "%DeoptimizeFunction(foo);" |
| 36 "return 1; })"); | 36 "return 1; })"); |
| 37 | 37 |
| 38 T.CheckCall(T.Val(1)); | 38 T.CheckCall(T.Val(1)); |
| 39 } | 39 } |
| OLD | NEW |