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

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

Issue 1237793003: Reland Update V8 DEPS. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/x87/code-stubs-x87.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_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 3180 matching lines...) Expand 10 before | Expand all | Expand 10 after
3191 // ------------------------------------------------------------------------- 3191 // -------------------------------------------------------------------------
3192 // StringCharFromCodeGenerator 3192 // StringCharFromCodeGenerator
3193 3193
3194 void StringCharFromCodeGenerator::GenerateFast(MacroAssembler* masm) { 3194 void StringCharFromCodeGenerator::GenerateFast(MacroAssembler* masm) {
3195 // Fast case of Heap::LookupSingleCharacterStringFromCode. 3195 // Fast case of Heap::LookupSingleCharacterStringFromCode.
3196 3196
3197 DCHECK(!a4.is(result_)); 3197 DCHECK(!a4.is(result_));
3198 DCHECK(!a4.is(code_)); 3198 DCHECK(!a4.is(code_));
3199 3199
3200 STATIC_ASSERT(kSmiTag == 0); 3200 STATIC_ASSERT(kSmiTag == 0);
3201 DCHECK(base::bits::IsPowerOfTwo32(String::kMaxOneByteCharCode + 1)); 3201 DCHECK(base::bits::IsPowerOfTwo32(String::kMaxOneByteCharCodeU + 1));
3202 __ And(a4, 3202 __ And(a4, code_, Operand(kSmiTagMask |
3203 code_, 3203 ((~String::kMaxOneByteCharCodeU) << kSmiTagSize)));
3204 Operand(kSmiTagMask |
3205 ((~String::kMaxOneByteCharCode) << kSmiTagSize)));
3206 __ Branch(&slow_case_, ne, a4, Operand(zero_reg)); 3204 __ Branch(&slow_case_, ne, a4, Operand(zero_reg));
3207 3205
3208 3206
3209 __ LoadRoot(result_, Heap::kSingleCharacterStringCacheRootIndex); 3207 __ LoadRoot(result_, Heap::kSingleCharacterStringCacheRootIndex);
3210 // At this point code register contains smi tagged one_byte char code. 3208 // At this point code register contains smi tagged one_byte char code.
3211 STATIC_ASSERT(kSmiTag == 0); 3209 STATIC_ASSERT(kSmiTag == 0);
3212 __ SmiScale(a4, code_, kPointerSizeLog2); 3210 __ SmiScale(a4, code_, kPointerSizeLog2);
3213 __ Daddu(result_, result_, a4); 3211 __ Daddu(result_, result_, a4);
3214 __ ld(result_, FieldMemOperand(result_, FixedArray::kHeaderSize)); 3212 __ ld(result_, FieldMemOperand(result_, FixedArray::kHeaderSize));
3215 __ LoadRoot(a4, Heap::kUndefinedValueRootIndex); 3213 __ LoadRoot(a4, Heap::kUndefinedValueRootIndex);
(...skipping 2399 matching lines...) Expand 10 before | Expand all | Expand 10 after
5615 MemOperand(fp, 6 * kPointerSize), NULL); 5613 MemOperand(fp, 6 * kPointerSize), NULL);
5616 } 5614 }
5617 5615
5618 5616
5619 #undef __ 5617 #undef __
5620 5618
5621 } // namespace internal 5619 } // namespace internal
5622 } // namespace v8 5620 } // namespace v8
5623 5621
5624 #endif // V8_TARGET_ARCH_MIPS64 5622 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/x87/code-stubs-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698