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

Side by Side Diff: src/mips/macro-assembler-mips.cc

Issue 592113002: Fix method dispatch in Keyed/StoreIC, and JumpIfNotUniqueName usage (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 | « src/mips/macro-assembler-mips.h ('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 <limits.h> // For LONG_MIN, LONG_MAX. 5 #include <limits.h> // For LONG_MIN, LONG_MAX.
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #if V8_TARGET_ARCH_MIPS 9 #if V8_TARGET_ARCH_MIPS
10 10
(...skipping 3564 matching lines...) Expand 10 before | Expand all | Expand 10 after
3575 Register scratch2, 3575 Register scratch2,
3576 Label* gc_required) { 3576 Label* gc_required) {
3577 Allocate(SlicedString::kSize, result, scratch1, scratch2, gc_required, 3577 Allocate(SlicedString::kSize, result, scratch1, scratch2, gc_required,
3578 TAG_OBJECT); 3578 TAG_OBJECT);
3579 3579
3580 InitializeNewString(result, length, Heap::kSlicedOneByteStringMapRootIndex, 3580 InitializeNewString(result, length, Heap::kSlicedOneByteStringMapRootIndex,
3581 scratch1, scratch2); 3581 scratch1, scratch2);
3582 } 3582 }
3583 3583
3584 3584
3585 void MacroAssembler::JumpIfNotUniqueName(Register reg, 3585 void MacroAssembler::JumpIfNotUniqueNameInstanceType(Register reg,
3586 Label* not_unique_name) { 3586 Label* not_unique_name) {
3587 STATIC_ASSERT(kInternalizedTag == 0 && kStringTag == 0); 3587 STATIC_ASSERT(kInternalizedTag == 0 && kStringTag == 0);
3588 Label succeed; 3588 Label succeed;
3589 And(at, reg, Operand(kIsNotStringMask | kIsNotInternalizedMask)); 3589 And(at, reg, Operand(kIsNotStringMask | kIsNotInternalizedMask));
3590 Branch(&succeed, eq, at, Operand(zero_reg)); 3590 Branch(&succeed, eq, at, Operand(zero_reg));
3591 Branch(not_unique_name, ne, reg, Operand(SYMBOL_TYPE)); 3591 Branch(not_unique_name, ne, reg, Operand(SYMBOL_TYPE));
3592 3592
3593 bind(&succeed); 3593 bind(&succeed);
3594 } 3594 }
3595 3595
3596 3596
(...skipping 2499 matching lines...) Expand 10 before | Expand all | Expand 10 after
6096 } 6096 }
6097 if (mag.shift > 0) sra(result, result, mag.shift); 6097 if (mag.shift > 0) sra(result, result, mag.shift);
6098 srl(at, dividend, 31); 6098 srl(at, dividend, 31);
6099 Addu(result, result, Operand(at)); 6099 Addu(result, result, Operand(at));
6100 } 6100 }
6101 6101
6102 6102
6103 } } // namespace v8::internal 6103 } } // namespace v8::internal
6104 6104
6105 #endif // V8_TARGET_ARCH_MIPS 6105 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/macro-assembler-mips.h ('k') | src/mips64/code-stubs-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698