Index: test/cctest/compiler/test-run-intrinsics.cc |
diff --git a/test/cctest/compiler/test-run-intrinsics.cc b/test/cctest/compiler/test-run-intrinsics.cc |
index 681891c91f522e4d9525ebf9f99f641cc60e863a..0ea611bade79a9f1e7f2d438aaec6cb610170e85 100644 |
--- a/test/cctest/compiler/test-run-intrinsics.cc |
+++ b/test/cctest/compiler/test-run-intrinsics.cc |
@@ -156,6 +156,16 @@ |
T.CheckCall(T.Val("aaa"), T.Val("aaa"), T.Val(0.0)); |
} |
+ |
+TEST(ValueOf) { |
+ FunctionTester T("(function(a) { return %_ValueOf(a); })", flags); |
+ |
+ T.CheckCall(T.Val("a"), T.Val("a")); |
+ T.CheckCall(T.Val("b"), T.NewObject("(new String('b'))")); |
+ T.CheckCall(T.Val(123), T.Val(123)); |
+ T.CheckCall(T.Val(456), T.NewObject("(new Number(456))")); |
+} |
+ |
} // namespace compiler |
} // namespace internal |
} // namespace v8 |