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

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

Issue 1149863005: Move hash code from hidden string to a private symbol (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix merge Created 5 years, 6 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/macro-assembler-mips.cc ('k') | src/object-observe.js » ('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 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 521
522 // hash = hash * 2057; 522 // hash = hash * 2057;
523 sll(scratch, reg0, 11); 523 sll(scratch, reg0, 11);
524 sll(at, reg0, 3); 524 sll(at, reg0, 3);
525 addu(reg0, reg0, at); 525 addu(reg0, reg0, at);
526 addu(reg0, reg0, scratch); 526 addu(reg0, reg0, scratch);
527 527
528 // hash = hash ^ (hash >> 16); 528 // hash = hash ^ (hash >> 16);
529 srl(at, reg0, 16); 529 srl(at, reg0, 16);
530 xor_(reg0, reg0, at); 530 xor_(reg0, reg0, at);
531 And(reg0, reg0, Operand(0x3fffffff));
531 } 532 }
532 533
533 534
534 void MacroAssembler::LoadFromNumberDictionary(Label* miss, 535 void MacroAssembler::LoadFromNumberDictionary(Label* miss,
535 Register elements, 536 Register elements,
536 Register key, 537 Register key,
537 Register result, 538 Register result,
538 Register reg0, 539 Register reg0,
539 Register reg1, 540 Register reg1,
540 Register reg2) { 541 Register reg2) {
(...skipping 5653 matching lines...) Expand 10 before | Expand all | Expand 10 after
6194 } 6195 }
6195 if (mag.shift > 0) sra(result, result, mag.shift); 6196 if (mag.shift > 0) sra(result, result, mag.shift);
6196 srl(at, dividend, 31); 6197 srl(at, dividend, 31);
6197 Addu(result, result, Operand(at)); 6198 Addu(result, result, Operand(at));
6198 } 6199 }
6199 6200
6200 6201
6201 } } // namespace v8::internal 6202 } } // namespace v8::internal
6202 6203
6203 #endif // V8_TARGET_ARCH_MIPS64 6204 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/macro-assembler-mips.cc ('k') | src/object-observe.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698