Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Unified Diff: test/cctest/interpreter/test-interpreter-intrinsics.cc

Issue 2642303003: [ignition] Remove obsolete %_ValueOf intrinsic. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/interpreter/interpreter-intrinsics.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/interpreter/test-interpreter-intrinsics.cc
diff --git a/test/cctest/interpreter/test-interpreter-intrinsics.cc b/test/cctest/interpreter/test-interpreter-intrinsics.cc
index 70051253cca22fc04d4752559da6bfe25bae8ae3..e2cd675b746466ad995569c1bb61b3fd669a1602 100644
--- a/test/cctest/interpreter/test-interpreter-intrinsics.cc
+++ b/test/cctest/interpreter/test-interpreter-intrinsics.cc
@@ -225,27 +225,6 @@ TEST(IntrinsicAsStubCall) {
->SameValue(*sub_string_helper.NewObject("'bar'")));
}
-TEST(ValueOf) {
- HandleAndZoneScope handles;
- Isolate* isolate = handles.main_isolate();
- Factory* factory = isolate->factory();
- InvokeIntrinsicHelper helper(handles.main_isolate(), handles.main_zone(),
- Runtime::kInlineValueOf);
-
- CHECK_EQ(Smi::FromInt(1234), *helper.Invoke(helper.NewObject("1234")));
- CHECK_EQ(Smi::FromInt(5678),
- *helper.Invoke(helper.NewObject("new Object(5678)")));
-
- CHECK_EQ(*factory->true_value(), *helper.Invoke(helper.NewObject("true")));
- CHECK_EQ(*factory->false_value(),
- *helper.Invoke(helper.NewObject("new Object(false)")));
-
- CHECK(helper.Invoke(helper.NewObject("'foobar'"))
- ->SameValue(*helper.NewObject("'foobar'")));
- CHECK(helper.Invoke(helper.NewObject("new Object('foobar')"))
- ->SameValue(*helper.NewObject("'foobar'")));
-}
-
TEST(ClassOf) {
HandleAndZoneScope handles;
Isolate* isolate = handles.main_isolate();
« no previous file with comments | « src/interpreter/interpreter-intrinsics.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698