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

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

Issue 659053002: Fix clang compilation error. (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 2769 matching lines...) Expand 10 before | Expand all | Expand 10 after
2780 2780
2781 // Move result to edi and exit the internal frame. 2781 // Move result to edi and exit the internal frame.
2782 __ mov(r1, r0); 2782 __ mov(r1, r0);
2783 } 2783 }
2784 } 2784 }
2785 2785
2786 2786
2787 // StringCharCodeAtGenerator 2787 // StringCharCodeAtGenerator
2788 void StringCharCodeAtGenerator::GenerateFast(MacroAssembler* masm) { 2788 void StringCharCodeAtGenerator::GenerateFast(MacroAssembler* masm) {
2789 // If the receiver is a smi trigger the non-string case. 2789 // If the receiver is a smi trigger the non-string case.
2790 __ JumpIfSmi(object_, receiver_not_string_); 2790 if (check_mode_ == RECEIVER_IS_UNKNOWN) {
2791 __ JumpIfSmi(object_, receiver_not_string_);
2791 2792
2792 // Fetch the instance type of the receiver into result register. 2793 // Fetch the instance type of the receiver into result register.
2793 __ ldr(result_, FieldMemOperand(object_, HeapObject::kMapOffset)); 2794 __ ldr(result_, FieldMemOperand(object_, HeapObject::kMapOffset));
2794 __ ldrb(result_, FieldMemOperand(result_, Map::kInstanceTypeOffset)); 2795 __ ldrb(result_, FieldMemOperand(result_, Map::kInstanceTypeOffset));
2795 // If the receiver is not a string trigger the non-string case. 2796 // If the receiver is not a string trigger the non-string case.
2796 __ tst(result_, Operand(kIsNotStringMask)); 2797 __ tst(result_, Operand(kIsNotStringMask));
2797 __ b(ne, receiver_not_string_); 2798 __ b(ne, receiver_not_string_);
2799 }
2798 2800
2799 // If the index is non-smi trigger the non-smi case. 2801 // If the index is non-smi trigger the non-smi case.
2800 __ JumpIfNotSmi(index_, &index_not_smi_); 2802 __ JumpIfNotSmi(index_, &index_not_smi_);
2801 __ bind(&got_smi_index_); 2803 __ bind(&got_smi_index_);
2802 2804
2803 // Check for index out of range. 2805 // Check for index out of range.
2804 __ ldr(ip, FieldMemOperand(object_, String::kLengthOffset)); 2806 __ ldr(ip, FieldMemOperand(object_, String::kLengthOffset));
2805 __ cmp(ip, Operand(index_)); 2807 __ cmp(ip, Operand(index_));
2806 __ b(ls, index_out_of_range_); 2808 __ b(ls, index_out_of_range_);
2807 2809
(...skipping 1898 matching lines...) Expand 10 before | Expand all | Expand 10 after
4706 MemOperand(fp, 6 * kPointerSize), 4708 MemOperand(fp, 6 * kPointerSize),
4707 NULL); 4709 NULL);
4708 } 4710 }
4709 4711
4710 4712
4711 #undef __ 4713 #undef __
4712 4714
4713 } } // namespace v8::internal 4715 } } // namespace v8::internal
4714 4716
4715 #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