| Index: src/runtime/runtime-strings.cc
|
| diff --git a/src/runtime/runtime-strings.cc b/src/runtime/runtime-strings.cc
|
| index 0f19bf35726535c3a22a2614c3530e5e22a37967..ff8f4108aabb94c4b82dd3362ebc8b307f78c64f 100644
|
| --- a/src/runtime/runtime-strings.cc
|
| +++ b/src/runtime/runtime-strings.cc
|
| @@ -1124,34 +1124,6 @@ RUNTIME_FUNCTION(Runtime_StringTrim) {
|
| }
|
|
|
|
|
| -RUNTIME_FUNCTION(Runtime_TruncateString) {
|
| - HandleScope scope(isolate);
|
| - DCHECK(args.length() == 2);
|
| - CONVERT_ARG_HANDLE_CHECKED(SeqString, string, 0);
|
| - CONVERT_INT32_ARG_CHECKED(new_length, 1);
|
| - RUNTIME_ASSERT(new_length >= 0);
|
| - return *SeqString::Truncate(string, new_length);
|
| -}
|
| -
|
| -
|
| -RUNTIME_FUNCTION(Runtime_NewString) {
|
| - HandleScope scope(isolate);
|
| - DCHECK(args.length() == 2);
|
| - CONVERT_INT32_ARG_CHECKED(length, 0);
|
| - CONVERT_BOOLEAN_ARG_CHECKED(is_one_byte, 1);
|
| - if (length == 0) return isolate->heap()->empty_string();
|
| - Handle<String> result;
|
| - if (is_one_byte) {
|
| - ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
|
| - isolate, result, isolate->factory()->NewRawOneByteString(length));
|
| - } else {
|
| - ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
|
| - isolate, result, isolate->factory()->NewRawTwoByteString(length));
|
| - }
|
| - return *result;
|
| -}
|
| -
|
| -
|
| RUNTIME_FUNCTION(Runtime_StringLessThan) {
|
| HandleScope handle_scope(isolate);
|
| DCHECK_EQ(2, args.length());
|
| @@ -1279,46 +1251,6 @@ RUNTIME_FUNCTION(Runtime_ExternalStringGetChar) {
|
| return Smi::FromInt(string->Get(index));
|
| }
|
|
|
| -RUNTIME_FUNCTION(Runtime_OneByteSeqStringGetChar) {
|
| - SealHandleScope shs(isolate);
|
| - DCHECK(args.length() == 2);
|
| - CONVERT_ARG_CHECKED(SeqOneByteString, string, 0);
|
| - CONVERT_INT32_ARG_CHECKED(index, 1);
|
| - return Smi::FromInt(string->SeqOneByteStringGet(index));
|
| -}
|
| -
|
| -
|
| -RUNTIME_FUNCTION(Runtime_OneByteSeqStringSetChar) {
|
| - SealHandleScope shs(isolate);
|
| - DCHECK(args.length() == 3);
|
| - CONVERT_INT32_ARG_CHECKED(index, 0);
|
| - CONVERT_INT32_ARG_CHECKED(value, 1);
|
| - CONVERT_ARG_CHECKED(SeqOneByteString, string, 2);
|
| - string->SeqOneByteStringSet(index, value);
|
| - return string;
|
| -}
|
| -
|
| -
|
| -RUNTIME_FUNCTION(Runtime_TwoByteSeqStringGetChar) {
|
| - SealHandleScope shs(isolate);
|
| - DCHECK(args.length() == 2);
|
| - CONVERT_ARG_CHECKED(SeqTwoByteString, string, 0);
|
| - CONVERT_INT32_ARG_CHECKED(index, 1);
|
| - return Smi::FromInt(string->SeqTwoByteStringGet(index));
|
| -}
|
| -
|
| -
|
| -RUNTIME_FUNCTION(Runtime_TwoByteSeqStringSetChar) {
|
| - SealHandleScope shs(isolate);
|
| - DCHECK(args.length() == 3);
|
| - CONVERT_INT32_ARG_CHECKED(index, 0);
|
| - CONVERT_INT32_ARG_CHECKED(value, 1);
|
| - CONVERT_ARG_CHECKED(SeqTwoByteString, string, 2);
|
| - string->SeqTwoByteStringSet(index, value);
|
| - return string;
|
| -}
|
| -
|
| -
|
| RUNTIME_FUNCTION(Runtime_StringCharCodeAt) {
|
| SealHandleScope shs(isolate);
|
| DCHECK(args.length() == 2);
|
|
|