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 // TODO(jochen): Remove this after the setting is turned on globally. | |
6 #define V8_IMMINENT_DEPRECATION_WARNINGS | |
7 | |
8 #include "src/frames-inl.h" | 5 #include "src/frames-inl.h" |
9 #include "test/cctest/cctest.h" | 6 #include "test/cctest/cctest.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 static void IsOptimized(const v8::FunctionCallbackInfo<v8::Value>& args) { | 13 static void IsOptimized(const v8::FunctionCallbackInfo<v8::Value>& args) { |
17 JavaScriptFrameIterator it(CcTest::i_isolate()); | 14 JavaScriptFrameIterator it(CcTest::i_isolate()); |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 " %DeoptimizeFunction(foo);" | 112 " %DeoptimizeFunction(foo);" |
116 " return 1;" | 113 " return 1;" |
117 "})"); | 114 "})"); |
118 | 115 |
119 T.CheckCall(T.Val(1)); | 116 T.CheckCall(T.Val(1)); |
120 } | 117 } |
121 | 118 |
122 } // namespace compiler | 119 } // namespace compiler |
123 } // namespace internal | 120 } // namespace internal |
124 } // namespace v8 | 121 } // namespace v8 |
OLD | NEW |