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

Side by Side Diff: src/mips64/macro-assembler-mips64.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, 3 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/mips64/macro-assembler-mips64.h ('k') | src/x64/code-stubs-x64.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_MIPS64 9 #if V8_TARGET_ARCH_MIPS64
10 10
(...skipping 3474 matching lines...) Expand 10 before | Expand all | Expand 10 after
3485 Register scratch2, 3485 Register scratch2,
3486 Label* gc_required) { 3486 Label* gc_required) {
3487 Allocate(SlicedString::kSize, result, scratch1, scratch2, gc_required, 3487 Allocate(SlicedString::kSize, result, scratch1, scratch2, gc_required,
3488 TAG_OBJECT); 3488 TAG_OBJECT);
3489 3489
3490 InitializeNewString(result, length, Heap::kSlicedOneByteStringMapRootIndex, 3490 InitializeNewString(result, length, Heap::kSlicedOneByteStringMapRootIndex,
3491 scratch1, scratch2); 3491 scratch1, scratch2);
3492 } 3492 }
3493 3493
3494 3494
3495 void MacroAssembler::JumpIfNotUniqueName(Register reg, 3495 void MacroAssembler::JumpIfNotUniqueNameInstanceType(Register reg,
3496 Label* not_unique_name) { 3496 Label* not_unique_name) {
3497 STATIC_ASSERT(kInternalizedTag == 0 && kStringTag == 0); 3497 STATIC_ASSERT(kInternalizedTag == 0 && kStringTag == 0);
3498 Label succeed; 3498 Label succeed;
3499 And(at, reg, Operand(kIsNotStringMask | kIsNotInternalizedMask)); 3499 And(at, reg, Operand(kIsNotStringMask | kIsNotInternalizedMask));
3500 Branch(&succeed, eq, at, Operand(zero_reg)); 3500 Branch(&succeed, eq, at, Operand(zero_reg));
3501 Branch(not_unique_name, ne, reg, Operand(SYMBOL_TYPE)); 3501 Branch(not_unique_name, ne, reg, Operand(SYMBOL_TYPE));
3502 3502
3503 bind(&succeed); 3503 bind(&succeed);
3504 } 3504 }
3505 3505
3506 3506
(...skipping 2573 matching lines...) Expand 10 before | Expand all | Expand 10 after
6080 } 6080 }
6081 if (mag.shift > 0) sra(result, result, mag.shift); 6081 if (mag.shift > 0) sra(result, result, mag.shift);
6082 srl(at, dividend, 31); 6082 srl(at, dividend, 31);
6083 Addu(result, result, Operand(at)); 6083 Addu(result, result, Operand(at));
6084 } 6084 }
6085 6085
6086 6086
6087 } } // namespace v8::internal 6087 } } // namespace v8::internal
6088 6088
6089 #endif // V8_TARGET_ARCH_MIPS64 6089 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips64/macro-assembler-mips64.h ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698