Index: test/cctest/compiler/test-run-jscalls.cc |
diff --git a/test/cctest/compiler/test-run-jscalls.cc b/test/cctest/compiler/test-run-jscalls.cc |
index 474453da7d1b0e3099d9276b916bcd2a8f50a520..70d1b658d3def242e833a6927fac478dde9846cf 100644 |
--- a/test/cctest/compiler/test-run-jscalls.cc |
+++ b/test/cctest/compiler/test-run-jscalls.cc |
@@ -21,37 +21,36 @@ TEST(SimpleCall) { |
TEST(SimpleCall2) { |
FunctionTester T("(function(foo,a) { return foo(a); })"); |
- Handle<JSFunction> foo = T.NewFunction("(function(a) { return a; })"); |
- T.Compile(foo); |
+ FunctionTester U("(function(a) { return a; })"); |
- T.CheckCall(T.Val(3), foo, T.Val(3)); |
- T.CheckCall(T.Val(3.1), foo, T.Val(3.1)); |
- T.CheckCall(foo, foo, foo); |
- T.CheckCall(T.Val("Abba"), foo, T.Val("Abba")); |
+ T.CheckCall(T.Val(3), U.function, T.Val(3)); |
+ T.CheckCall(T.Val(3.1), U.function, T.Val(3.1)); |
+ T.CheckCall(U.function, U.function, U.function); |
+ T.CheckCall(T.Val("Abba"), U.function, T.Val("Abba")); |
} |
TEST(ConstCall) { |
FunctionTester T("(function(foo,a) { return foo(a,3); })"); |
- Handle<JSFunction> foo = T.NewFunction("(function(a,b) { return a + b; })"); |
- T.Compile(foo); |
+ FunctionTester U("(function(a,b) { return a + b; })"); |
- T.CheckCall(T.Val(6), foo, T.Val(3)); |
- T.CheckCall(T.Val(6.1), foo, T.Val(3.1)); |
- T.CheckCall(T.Val("function (a,b) { return a + b; }3"), foo, foo); |
- T.CheckCall(T.Val("Abba3"), foo, T.Val("Abba")); |
+ T.CheckCall(T.Val(6), U.function, T.Val(3)); |
+ T.CheckCall(T.Val(6.1), U.function, T.Val(3.1)); |
+ T.CheckCall(T.Val("function (a,b) { return a + b; }3"), U.function, |
+ U.function); |
+ T.CheckCall(T.Val("Abba3"), U.function, T.Val("Abba")); |
} |
TEST(ConstCall2) { |
FunctionTester T("(function(foo,a) { return foo(a,\"3\"); })"); |
- Handle<JSFunction> foo = T.NewFunction("(function(a,b) { return a + b; })"); |
- T.Compile(foo); |
+ FunctionTester U("(function(a,b) { return a + b; })"); |
- T.CheckCall(T.Val("33"), foo, T.Val(3)); |
- T.CheckCall(T.Val("3.13"), foo, T.Val(3.1)); |
- T.CheckCall(T.Val("function (a,b) { return a + b; }3"), foo, foo); |
- T.CheckCall(T.Val("Abba3"), foo, T.Val("Abba")); |
+ T.CheckCall(T.Val("33"), U.function, T.Val(3)); |
+ T.CheckCall(T.Val("3.13"), U.function, T.Val(3.1)); |
+ T.CheckCall(T.Val("function (a,b) { return a + b; }3"), U.function, |
+ U.function); |
+ T.CheckCall(T.Val("Abba3"), U.function, T.Val("Abba")); |
} |