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

Unified Diff: test/cctest/compiler/test-run-intrinsics.cc

Issue 1041723002: Added %_NewConsString intrinsic. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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/runtime/runtime-strings.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 411d63da2de6d8cac14b0eb947889b8fbe11c4e8..7fc5cc9758a773abd14da9690d7e225635aab9be 100644
--- a/test/cctest/compiler/test-run-intrinsics.cc
+++ b/test/cctest/compiler/test-run-intrinsics.cc
@@ -63,7 +63,7 @@ TEST(IncrementStatsCounter) {
reinterpret_cast<v8::Isolate*>(CcTest::InitIsolateOnce())
->SetCounterFunction(LookupCounter);
FunctionTester T(
- "(function() { %_IncrementStatsCounter(\"" COUNTER_NAME "\"); })", flags);
+ "(function() { %_IncrementStatsCounter('" COUNTER_NAME "'); })", flags);
StatsCounter counter(T.main_isolate(), COUNTER_NAME);
if (!counter.Enabled()) return;
@@ -235,6 +235,18 @@ TEST(OneByteSeqStringSetChar) {
}
+TEST(NewConsString) {
+ FLAG_turbo_deoptimization = true;
+ FunctionTester T(
+ "(function() { "
+ " return %_NewConsString(14, true, 'abcdefghi', 'jklmn');"
+ " })",
+ flags);
+
+ T.CheckCall(T.Val("abcdefghijklmn"));
+}
+
+
TEST(SetValueOf) {
FLAG_turbo_deoptimization = true;
FunctionTester T("(function(a,b) { return %_SetValueOf(a,b); })", flags);
« no previous file with comments | « src/runtime/runtime-strings.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698