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

Side by Side Diff: src/mips/code-stubs-mips.cc

Issue 657313005: ReceiverCheckMode needs to be utilized further. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698