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

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

Issue 275973002: MIPS: Reland and fix r21225 and r21226. (Closed) Base URL: https://github.com/v8/v8.git@gbl
Patch Set: Created 6 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/mips/macro-assembler-mips.h ('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 "v8.h" 7 #include "v8.h"
8 8
9 #if V8_TARGET_ARCH_MIPS 9 #if V8_TARGET_ARCH_MIPS
10 10
(...skipping 5218 matching lines...) Expand 10 before | Expand all | Expand 10 after
5229 Branch(condition_met, cc, scratch, Operand(zero_reg)); 5229 Branch(condition_met, cc, scratch, Operand(zero_reg));
5230 } 5230 }
5231 5231
5232 5232
5233 void MacroAssembler::CheckMapDeprecated(Handle<Map> map, 5233 void MacroAssembler::CheckMapDeprecated(Handle<Map> map,
5234 Register scratch, 5234 Register scratch,
5235 Label* if_deprecated) { 5235 Label* if_deprecated) {
5236 if (map->CanBeDeprecated()) { 5236 if (map->CanBeDeprecated()) {
5237 li(scratch, Operand(map)); 5237 li(scratch, Operand(map));
5238 lw(scratch, FieldMemOperand(scratch, Map::kBitField3Offset)); 5238 lw(scratch, FieldMemOperand(scratch, Map::kBitField3Offset));
5239 And(scratch, scratch, Operand(Smi::FromInt(Map::Deprecated::kMask))); 5239 And(scratch, scratch, Operand(Map::Deprecated::kMask));
5240 Branch(if_deprecated, ne, scratch, Operand(zero_reg)); 5240 Branch(if_deprecated, ne, scratch, Operand(zero_reg));
5241 } 5241 }
5242 } 5242 }
5243 5243
5244 5244
5245 void MacroAssembler::JumpIfBlack(Register object, 5245 void MacroAssembler::JumpIfBlack(Register object,
5246 Register scratch0, 5246 Register scratch0,
5247 Register scratch1, 5247 Register scratch1,
5248 Label* on_black) { 5248 Label* on_black) {
5249 HasColor(object, scratch0, scratch1, on_black, 1, 0); // kBlackBitPattern. 5249 HasColor(object, scratch0, scratch1, on_black, 1, 0); // kBlackBitPattern.
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
5486 5486
5487 void MacroAssembler::NumberOfOwnDescriptors(Register dst, Register map) { 5487 void MacroAssembler::NumberOfOwnDescriptors(Register dst, Register map) {
5488 lw(dst, FieldMemOperand(map, Map::kBitField3Offset)); 5488 lw(dst, FieldMemOperand(map, Map::kBitField3Offset));
5489 DecodeField<Map::NumberOfOwnDescriptorsBits>(dst); 5489 DecodeField<Map::NumberOfOwnDescriptorsBits>(dst);
5490 } 5490 }
5491 5491
5492 5492
5493 void MacroAssembler::EnumLength(Register dst, Register map) { 5493 void MacroAssembler::EnumLength(Register dst, Register map) {
5494 STATIC_ASSERT(Map::EnumLengthBits::kShift == 0); 5494 STATIC_ASSERT(Map::EnumLengthBits::kShift == 0);
5495 lw(dst, FieldMemOperand(map, Map::kBitField3Offset)); 5495 lw(dst, FieldMemOperand(map, Map::kBitField3Offset));
5496 And(dst, dst, Operand(Smi::FromInt(Map::EnumLengthBits::kMask))); 5496 And(dst, dst, Operand(Map::EnumLengthBits::kMask));
5497 SmiTag(dst);
5497 } 5498 }
5498 5499
5499 5500
5500 void MacroAssembler::CheckEnumCache(Register null_value, Label* call_runtime) { 5501 void MacroAssembler::CheckEnumCache(Register null_value, Label* call_runtime) {
5501 Register empty_fixed_array_value = t2; 5502 Register empty_fixed_array_value = t2;
5502 LoadRoot(empty_fixed_array_value, Heap::kEmptyFixedArrayRootIndex); 5503 LoadRoot(empty_fixed_array_value, Heap::kEmptyFixedArrayRootIndex);
5503 Label next, start; 5504 Label next, start;
5504 mov(a2, a0); 5505 mov(a2, a0);
5505 5506
5506 // Check if the enum length field is properly initialized, indicating that 5507 // Check if the enum length field is properly initialized, indicating that
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
5740 } 5741 }
5741 if (ms.shift() > 0) sra(result, result, ms.shift()); 5742 if (ms.shift() > 0) sra(result, result, ms.shift());
5742 srl(at, dividend, 31); 5743 srl(at, dividend, 31);
5743 Addu(result, result, Operand(at)); 5744 Addu(result, result, Operand(at));
5744 } 5745 }
5745 5746
5746 5747
5747 } } // namespace v8::internal 5748 } } // namespace v8::internal
5748 5749
5749 #endif // V8_TARGET_ARCH_MIPS 5750 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/macro-assembler-mips.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698