| Index: src/runtime/runtime-test.cc
|
| diff --git a/src/runtime/runtime-test.cc b/src/runtime/runtime-test.cc
|
| index ff3bb051333c0edeee8e4a3d2f1b2e02d434fab0..c4b58cf1a5dfd74c686f6fbc7d05a1fa3d59bad7 100644
|
| --- a/src/runtime/runtime-test.cc
|
| +++ b/src/runtime/runtime-test.cc
|
| @@ -71,6 +71,20 @@ RUNTIME_FUNCTION(Runtime_ConstructDouble) {
|
| return *isolate->factory()->NewNumber(uint64_to_double(result));
|
| }
|
|
|
| +RUNTIME_FUNCTION(Runtime_ConstructConsString) {
|
| + HandleScope scope(isolate);
|
| + DCHECK_EQ(2, args.length());
|
| + CONVERT_ARG_HANDLE_CHECKED(String, left, 0);
|
| + CONVERT_ARG_HANDLE_CHECKED(String, right, 1);
|
| +
|
| + CHECK(left->IsOneByteRepresentation());
|
| + CHECK(right->IsOneByteRepresentation());
|
| +
|
| + const bool kIsOneByte = true;
|
| + const int length = left->length() + right->length();
|
| + return *isolate->factory()->NewConsString(left, right, length, kIsOneByte);
|
| +}
|
| +
|
| RUNTIME_FUNCTION(Runtime_DeoptimizeFunction) {
|
| HandleScope scope(isolate);
|
| DCHECK_EQ(1, args.length());
|
|
|