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

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

Issue 1232803003: Revert of 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/ia32/code-stubs-ia32.cc ('k') | src/mips64/code-stubs-mips64.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 3143 matching lines...) Expand 10 before | Expand all | Expand 10 after
3154 // StringCharFromCodeGenerator 3154 // StringCharFromCodeGenerator
3155 3155
3156 void StringCharFromCodeGenerator::GenerateFast(MacroAssembler* masm) { 3156 void StringCharFromCodeGenerator::GenerateFast(MacroAssembler* masm) {
3157 // Fast case of Heap::LookupSingleCharacterStringFromCode. 3157 // Fast case of Heap::LookupSingleCharacterStringFromCode.
3158 3158
3159 DCHECK(!t0.is(result_)); 3159 DCHECK(!t0.is(result_));
3160 DCHECK(!t0.is(code_)); 3160 DCHECK(!t0.is(code_));
3161 3161
3162 STATIC_ASSERT(kSmiTag == 0); 3162 STATIC_ASSERT(kSmiTag == 0);
3163 STATIC_ASSERT(kSmiShiftSize == 0); 3163 STATIC_ASSERT(kSmiShiftSize == 0);
3164 DCHECK(base::bits::IsPowerOfTwo32(String::kMaxOneByteCharCodeU + 1)); 3164 DCHECK(base::bits::IsPowerOfTwo32(String::kMaxOneByteCharCode + 1));
3165 __ And(t0, code_, Operand(kSmiTagMask | 3165 __ And(t0,
3166 ((~String::kMaxOneByteCharCodeU) << kSmiTagSize))); 3166 code_,
3167 Operand(kSmiTagMask |
3168 ((~String::kMaxOneByteCharCode) << kSmiTagSize)));
3167 __ Branch(&slow_case_, ne, t0, Operand(zero_reg)); 3169 __ Branch(&slow_case_, ne, t0, Operand(zero_reg));
3168 3170
3169 __ LoadRoot(result_, Heap::kSingleCharacterStringCacheRootIndex); 3171 __ LoadRoot(result_, Heap::kSingleCharacterStringCacheRootIndex);
3170 // At this point code register contains smi tagged one-byte char code. 3172 // At this point code register contains smi tagged one-byte char code.
3171 STATIC_ASSERT(kSmiTag == 0); 3173 STATIC_ASSERT(kSmiTag == 0);
3172 __ sll(t0, code_, kPointerSizeLog2 - kSmiTagSize); 3174 __ sll(t0, code_, kPointerSizeLog2 - kSmiTagSize);
3173 __ Addu(result_, result_, t0); 3175 __ Addu(result_, result_, t0);
3174 __ lw(result_, FieldMemOperand(result_, FixedArray::kHeaderSize)); 3176 __ lw(result_, FieldMemOperand(result_, FixedArray::kHeaderSize));
3175 __ LoadRoot(t0, Heap::kUndefinedValueRootIndex); 3177 __ LoadRoot(t0, Heap::kUndefinedValueRootIndex);
3176 __ Branch(&slow_case_, eq, result_, Operand(t0)); 3178 __ Branch(&slow_case_, eq, result_, Operand(t0));
(...skipping 2395 matching lines...) Expand 10 before | Expand all | Expand 10 after
5572 MemOperand(fp, 6 * kPointerSize), NULL); 5574 MemOperand(fp, 6 * kPointerSize), NULL);
5573 } 5575 }
5574 5576
5575 5577
5576 #undef __ 5578 #undef __
5577 5579
5578 } // namespace internal 5580 } // namespace internal
5579 } // namespace v8 5581 } // namespace v8
5580 5582
5581 #endif // V8_TARGET_ARCH_MIPS 5583 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/mips64/code-stubs-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698