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

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

Issue 767623003: MIPS: Use weak cells in map checks in polymorphic ICs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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') | no next file » | 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 3982 matching lines...) Expand 10 before | Expand all | Expand 10 after
3993 li(match, Operand(cell)); 3993 li(match, Operand(cell));
3994 ld(match, FieldMemOperand(match, WeakCell::kValueOffset)); 3994 ld(match, FieldMemOperand(match, WeakCell::kValueOffset));
3995 Dsubu(match, value, match); 3995 Dsubu(match, value, match);
3996 } 3996 }
3997 3997
3998 3998
3999 void MacroAssembler::LoadWeakValue(Register value, Handle<WeakCell> cell, 3999 void MacroAssembler::LoadWeakValue(Register value, Handle<WeakCell> cell,
4000 Label* miss) { 4000 Label* miss) {
4001 li(value, Operand(cell)); 4001 li(value, Operand(cell));
4002 ld(value, FieldMemOperand(value, WeakCell::kValueOffset)); 4002 ld(value, FieldMemOperand(value, WeakCell::kValueOffset));
4003 JumpIfNotSmi(value, miss); 4003 JumpIfSmi(value, miss);
4004 } 4004 }
4005 4005
4006 4006
4007 void MacroAssembler::MovFromFloatResult(const DoubleRegister dst) { 4007 void MacroAssembler::MovFromFloatResult(const DoubleRegister dst) {
4008 if (IsMipsSoftFloatABI) { 4008 if (IsMipsSoftFloatABI) {
4009 Move(dst, v0, v1); 4009 Move(dst, v0, v1);
4010 } else { 4010 } else {
4011 Move(dst, f0); // Reg f0 is o32 ABI FP return value. 4011 Move(dst, f0); // Reg f0 is o32 ABI FP return value.
4012 } 4012 }
4013 } 4013 }
(...skipping 2311 matching lines...) Expand 10 before | Expand all | Expand 10 after
6325 } 6325 }
6326 if (mag.shift > 0) sra(result, result, mag.shift); 6326 if (mag.shift > 0) sra(result, result, mag.shift);
6327 srl(at, dividend, 31); 6327 srl(at, dividend, 31);
6328 Addu(result, result, Operand(at)); 6328 Addu(result, result, Operand(at));
6329 } 6329 }
6330 6330
6331 6331
6332 } } // namespace v8::internal 6332 } } // namespace v8::internal
6333 6333
6334 #endif // V8_TARGET_ARCH_MIPS64 6334 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/macro-assembler-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698