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 #ifndef V8_CCTEST_COMPILER_FUNCTION_TESTER_H_ | 5 #ifndef V8_CCTEST_COMPILER_FUNCTION_TESTER_H_ |
6 #define V8_CCTEST_COMPILER_FUNCTION_TESTER_H_ | 6 #define V8_CCTEST_COMPILER_FUNCTION_TESTER_H_ |
7 | 7 |
8 #include "src/handles.h" | 8 #include "src/handles.h" |
9 #include "test/cctest/cctest.h" | 9 #include "test/cctest/cctest.h" |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 Handle<JSFunction> function; | 33 Handle<JSFunction> function; |
34 | 34 |
35 MaybeHandle<Object> Call(); | 35 MaybeHandle<Object> Call(); |
36 MaybeHandle<Object> Call(Handle<Object> a); | 36 MaybeHandle<Object> Call(Handle<Object> a); |
37 MaybeHandle<Object> Call(Handle<Object> a, Handle<Object> b); | 37 MaybeHandle<Object> Call(Handle<Object> a, Handle<Object> b); |
38 MaybeHandle<Object> Call(Handle<Object> a, Handle<Object> b, | 38 MaybeHandle<Object> Call(Handle<Object> a, Handle<Object> b, |
39 Handle<Object> c); | 39 Handle<Object> c); |
40 MaybeHandle<Object> Call(Handle<Object> a, Handle<Object> b, Handle<Object> c, | 40 MaybeHandle<Object> Call(Handle<Object> a, Handle<Object> b, Handle<Object> c, |
41 Handle<Object> d); | 41 Handle<Object> d); |
42 | 42 |
| 43 void CheckThrows(Handle<Object> a); |
43 void CheckThrows(Handle<Object> a, Handle<Object> b); | 44 void CheckThrows(Handle<Object> a, Handle<Object> b); |
44 v8::Local<v8::Message> CheckThrowsReturnMessage(Handle<Object> a, | 45 v8::Local<v8::Message> CheckThrowsReturnMessage(Handle<Object> a, |
45 Handle<Object> b); | 46 Handle<Object> b); |
46 void CheckCall(Handle<Object> expected, Handle<Object> a, Handle<Object> b, | 47 void CheckCall(Handle<Object> expected, Handle<Object> a, Handle<Object> b, |
47 Handle<Object> c, Handle<Object> d); | 48 Handle<Object> c, Handle<Object> d); |
48 | 49 |
49 void CheckCall(Handle<Object> expected, Handle<Object> a, Handle<Object> b, | 50 void CheckCall(Handle<Object> expected, Handle<Object> a, Handle<Object> b, |
50 Handle<Object> c) { | 51 Handle<Object> c) { |
51 return CheckCall(expected, a, b, c, undefined()); | 52 return CheckCall(expected, a, b, c, undefined()); |
52 } | 53 } |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 129 |
129 // Compile the given machine graph instead of the source of the function | 130 // Compile the given machine graph instead of the source of the function |
130 // and replace the JSFunction's code with the result. | 131 // and replace the JSFunction's code with the result. |
131 Handle<JSFunction> CompileGraph(Graph* graph); | 132 Handle<JSFunction> CompileGraph(Graph* graph); |
132 }; | 133 }; |
133 } // namespace compiler | 134 } // namespace compiler |
134 } // namespace internal | 135 } // namespace internal |
135 } // namespace v8 | 136 } // namespace v8 |
136 | 137 |
137 #endif // V8_CCTEST_COMPILER_FUNCTION_TESTER_H_ | 138 #endif // V8_CCTEST_COMPILER_FUNCTION_TESTER_H_ |
OLD | NEW |