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

Side by Side Diff: src/ia32/code-stubs-ia32.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/arm/code-stubs-arm.cc ('k') | src/mips/code-stubs-mips.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_IA32 7 #if V8_TARGET_ARCH_IA32
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 3008 matching lines...) Expand 10 before | Expand all | Expand 10 after
3019 } 3019 }
3020 3020
3021 3021
3022 // ------------------------------------------------------------------------- 3022 // -------------------------------------------------------------------------
3023 // StringCharFromCodeGenerator 3023 // StringCharFromCodeGenerator
3024 3024
3025 void StringCharFromCodeGenerator::GenerateFast(MacroAssembler* masm) { 3025 void StringCharFromCodeGenerator::GenerateFast(MacroAssembler* masm) {
3026 // Fast case of Heap::LookupSingleCharacterStringFromCode. 3026 // Fast case of Heap::LookupSingleCharacterStringFromCode.
3027 STATIC_ASSERT(kSmiTag == 0); 3027 STATIC_ASSERT(kSmiTag == 0);
3028 STATIC_ASSERT(kSmiShiftSize == 0); 3028 STATIC_ASSERT(kSmiShiftSize == 0);
3029 DCHECK(base::bits::IsPowerOfTwo32(String::kMaxOneByteCharCodeU + 1)); 3029 DCHECK(base::bits::IsPowerOfTwo32(String::kMaxOneByteCharCode + 1));
3030 __ test(code_, Immediate(kSmiTagMask | 3030 __ test(code_,
3031 ((~String::kMaxOneByteCharCodeU) << kSmiTagSize))); 3031 Immediate(kSmiTagMask |
3032 ((~String::kMaxOneByteCharCode) << kSmiTagSize)));
3032 __ j(not_zero, &slow_case_); 3033 __ j(not_zero, &slow_case_);
3033 3034
3034 Factory* factory = masm->isolate()->factory(); 3035 Factory* factory = masm->isolate()->factory();
3035 __ Move(result_, Immediate(factory->single_character_string_cache())); 3036 __ Move(result_, Immediate(factory->single_character_string_cache()));
3036 STATIC_ASSERT(kSmiTag == 0); 3037 STATIC_ASSERT(kSmiTag == 0);
3037 STATIC_ASSERT(kSmiTagSize == 1); 3038 STATIC_ASSERT(kSmiTagSize == 1);
3038 STATIC_ASSERT(kSmiShiftSize == 0); 3039 STATIC_ASSERT(kSmiShiftSize == 0);
3039 // At this point code register contains smi tagged one byte char code. 3040 // At this point code register contains smi tagged one byte char code.
3040 __ mov(result_, FieldOperand(result_, 3041 __ mov(result_, FieldOperand(result_,
3041 code_, times_half_pointer_size, 3042 code_, times_half_pointer_size,
(...skipping 2432 matching lines...) Expand 10 before | Expand all | Expand 10 after
5474 Operand(ebp, 7 * kPointerSize), NULL); 5475 Operand(ebp, 7 * kPointerSize), NULL);
5475 } 5476 }
5476 5477
5477 5478
5478 #undef __ 5479 #undef __
5479 5480
5480 } // namespace internal 5481 } // namespace internal
5481 } // namespace v8 5482 } // namespace v8
5482 5483
5483 #endif // V8_TARGET_ARCH_IA32 5484 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698