| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
| 8 | 8 |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
| (...skipping 3316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3327 // Just jump to runtime to create the sub string. | 3327 // Just jump to runtime to create the sub string. |
| 3328 __ bind(&runtime); | 3328 __ bind(&runtime); |
| 3329 __ TailCallRuntime(Runtime::kSubString, 3, 1); | 3329 __ TailCallRuntime(Runtime::kSubString, 3, 1); |
| 3330 | 3330 |
| 3331 __ bind(&single_char); | 3331 __ bind(&single_char); |
| 3332 // v0: original string | 3332 // v0: original string |
| 3333 // a1: instance type | 3333 // a1: instance type |
| 3334 // a2: length | 3334 // a2: length |
| 3335 // a3: from index (untagged) | 3335 // a3: from index (untagged) |
| 3336 __ SmiTag(a3, a3); | 3336 __ SmiTag(a3, a3); |
| 3337 StringCharAtGenerator generator( | 3337 StringCharAtGenerator generator(v0, a3, a2, v0, &runtime, &runtime, &runtime, |
| 3338 v0, a3, a2, v0, &runtime, &runtime, &runtime, STRING_INDEX_IS_NUMBER); | 3338 STRING_INDEX_IS_NUMBER, RECEIVER_IS_STRING); |
| 3339 generator.GenerateFast(masm); | 3339 generator.GenerateFast(masm); |
| 3340 __ DropAndRet(3); | 3340 __ DropAndRet(3); |
| 3341 generator.SkipSlow(masm, &runtime); | 3341 generator.SkipSlow(masm, &runtime); |
| 3342 } | 3342 } |
| 3343 | 3343 |
| 3344 | 3344 |
| 3345 void StringHelper::GenerateFlatOneByteStringEquals( | 3345 void StringHelper::GenerateFlatOneByteStringEquals( |
| 3346 MacroAssembler* masm, Register left, Register right, Register scratch1, | 3346 MacroAssembler* masm, Register left, Register right, Register scratch1, |
| 3347 Register scratch2, Register scratch3) { | 3347 Register scratch2, Register scratch3) { |
| 3348 Register length = scratch1; | 3348 Register length = scratch1; |
| (...skipping 1578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4927 MemOperand(fp, 6 * kPointerSize), | 4927 MemOperand(fp, 6 * kPointerSize), |
| 4928 NULL); | 4928 NULL); |
| 4929 } | 4929 } |
| 4930 | 4930 |
| 4931 | 4931 |
| 4932 #undef __ | 4932 #undef __ |
| 4933 | 4933 |
| 4934 } } // namespace v8::internal | 4934 } } // namespace v8::internal |
| 4935 | 4935 |
| 4936 #endif // V8_TARGET_ARCH_MIPS | 4936 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |