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

Side by Side Diff: src/arm/code-stubs-arm.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 | « no previous file | src/arm64/code-stubs-arm64.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_ARM 7 #if V8_TARGET_ARCH_ARM
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 3149 matching lines...) Expand 10 before | Expand all | Expand 10 after
3160 // Just jump to runtime to create the sub string. 3160 // Just jump to runtime to create the sub string.
3161 __ bind(&runtime); 3161 __ bind(&runtime);
3162 __ TailCallRuntime(Runtime::kSubString, 3, 1); 3162 __ TailCallRuntime(Runtime::kSubString, 3, 1);
3163 3163
3164 __ bind(&single_char); 3164 __ bind(&single_char);
3165 // r0: original string 3165 // r0: original string
3166 // r1: instance type 3166 // r1: instance type
3167 // r2: length 3167 // r2: length
3168 // r3: from index (untagged) 3168 // r3: from index (untagged)
3169 __ SmiTag(r3, r3); 3169 __ SmiTag(r3, r3);
3170 StringCharAtGenerator generator( 3170 StringCharAtGenerator generator(r0, r3, r2, r0, &runtime, &runtime, &runtime,
3171 r0, r3, r2, r0, &runtime, &runtime, &runtime, STRING_INDEX_IS_NUMBER); 3171 STRING_INDEX_IS_NUMBER, RECEIVER_IS_STRING);
3172 generator.GenerateFast(masm); 3172 generator.GenerateFast(masm);
3173 __ Drop(3); 3173 __ Drop(3);
3174 __ Ret(); 3174 __ Ret();
3175 generator.SkipSlow(masm, &runtime); 3175 generator.SkipSlow(masm, &runtime);
3176 } 3176 }
3177 3177
3178 3178
3179 void StringHelper::GenerateFlatOneByteStringEquals( 3179 void StringHelper::GenerateFlatOneByteStringEquals(
3180 MacroAssembler* masm, Register left, Register right, Register scratch1, 3180 MacroAssembler* masm, Register left, Register right, Register scratch1,
3181 Register scratch2, Register scratch3) { 3181 Register scratch2, Register scratch3) {
(...skipping 1526 matching lines...) Expand 10 before | Expand all | Expand 10 after
4708 MemOperand(fp, 6 * kPointerSize), 4708 MemOperand(fp, 6 * kPointerSize),
4709 NULL); 4709 NULL);
4710 } 4710 }
4711 4711
4712 4712
4713 #undef __ 4713 #undef __
4714 4714
4715 } } // namespace v8::internal 4715 } } // namespace v8::internal
4716 4716
4717 #endif // V8_TARGET_ARCH_ARM 4717 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm64/code-stubs-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698