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

Side by Side Diff: src/mips/macro-assembler-mips.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, 7 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/math.js ('k') | src/mips64/macro-assembler-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 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 516
517 // hash = hash * 2057; 517 // hash = hash * 2057;
518 sll(scratch, reg0, 11); 518 sll(scratch, reg0, 11);
519 sll(at, reg0, 3); 519 sll(at, reg0, 3);
520 addu(reg0, reg0, at); 520 addu(reg0, reg0, at);
521 addu(reg0, reg0, scratch); 521 addu(reg0, reg0, scratch);
522 522
523 // hash = hash ^ (hash >> 16); 523 // hash = hash ^ (hash >> 16);
524 srl(at, reg0, 16); 524 srl(at, reg0, 16);
525 xor_(reg0, reg0, at); 525 xor_(reg0, reg0, at);
526 And(reg0, reg0, Operand(0x3fffffff));
526 } 527 }
527 528
528 529
529 void MacroAssembler::LoadFromNumberDictionary(Label* miss, 530 void MacroAssembler::LoadFromNumberDictionary(Label* miss,
530 Register elements, 531 Register elements,
531 Register key, 532 Register key,
532 Register result, 533 Register result,
533 Register reg0, 534 Register reg0,
534 Register reg1, 535 Register reg1,
535 Register reg2) { 536 Register reg2) {
(...skipping 5588 matching lines...) Expand 10 before | Expand all | Expand 10 after
6124 } 6125 }
6125 if (mag.shift > 0) sra(result, result, mag.shift); 6126 if (mag.shift > 0) sra(result, result, mag.shift);
6126 srl(at, dividend, 31); 6127 srl(at, dividend, 31);
6127 Addu(result, result, Operand(at)); 6128 Addu(result, result, Operand(at));
6128 } 6129 }
6129 6130
6130 6131
6131 } } // namespace v8::internal 6132 } } // namespace v8::internal
6132 6133
6133 #endif // V8_TARGET_ARCH_MIPS 6134 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/math.js ('k') | src/mips64/macro-assembler-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698