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

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

Issue 762483004: MIPS: Use weak cells to embed maps in store handler. (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.h ('k') | src/mips64/macro-assembler-mips64.h » ('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 5790 matching lines...) Expand 10 before | Expand all | Expand 10 after
5801 int mask, 5801 int mask,
5802 Condition cc, 5802 Condition cc,
5803 Label* condition_met) { 5803 Label* condition_met) {
5804 And(scratch, object, Operand(~Page::kPageAlignmentMask)); 5804 And(scratch, object, Operand(~Page::kPageAlignmentMask));
5805 lw(scratch, MemOperand(scratch, MemoryChunk::kFlagsOffset)); 5805 lw(scratch, MemOperand(scratch, MemoryChunk::kFlagsOffset));
5806 And(scratch, scratch, Operand(mask)); 5806 And(scratch, scratch, Operand(mask));
5807 Branch(condition_met, cc, scratch, Operand(zero_reg)); 5807 Branch(condition_met, cc, scratch, Operand(zero_reg));
5808 } 5808 }
5809 5809
5810 5810
5811 void MacroAssembler::CheckMapDeprecated(Handle<Map> map,
5812 Register scratch,
5813 Label* if_deprecated) {
5814 if (map->CanBeDeprecated()) {
5815 li(scratch, Operand(map));
5816 lw(scratch, FieldMemOperand(scratch, Map::kBitField3Offset));
5817 And(scratch, scratch, Operand(Map::Deprecated::kMask));
5818 Branch(if_deprecated, ne, scratch, Operand(zero_reg));
5819 }
5820 }
5821
5822
5823 void MacroAssembler::JumpIfBlack(Register object, 5811 void MacroAssembler::JumpIfBlack(Register object,
5824 Register scratch0, 5812 Register scratch0,
5825 Register scratch1, 5813 Register scratch1,
5826 Label* on_black) { 5814 Label* on_black) {
5827 HasColor(object, scratch0, scratch1, on_black, 1, 0); // kBlackBitPattern. 5815 HasColor(object, scratch0, scratch1, on_black, 1, 0); // kBlackBitPattern.
5828 DCHECK(strcmp(Marking::kBlackBitPattern, "10") == 0); 5816 DCHECK(strcmp(Marking::kBlackBitPattern, "10") == 0);
5829 } 5817 }
5830 5818
5831 5819
5832 void MacroAssembler::HasColor(Register object, 5820 void MacroAssembler::HasColor(Register object,
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
6285 } 6273 }
6286 if (mag.shift > 0) sra(result, result, mag.shift); 6274 if (mag.shift > 0) sra(result, result, mag.shift);
6287 srl(at, dividend, 31); 6275 srl(at, dividend, 31);
6288 Addu(result, result, Operand(at)); 6276 Addu(result, result, Operand(at));
6289 } 6277 }
6290 6278
6291 6279
6292 } } // namespace v8::internal 6280 } } // namespace v8::internal
6293 6281
6294 #endif // V8_TARGET_ARCH_MIPS 6282 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/macro-assembler-mips.h ('k') | src/mips64/macro-assembler-mips64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698