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

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

Issue 306513002: Convert ElementsKind into a BitField (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/objects.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 "v8.h" 7 #include "v8.h"
8 8
9 #if V8_TARGET_ARCH_MIPS 9 #if V8_TARGET_ARCH_MIPS
10 10
(...skipping 5609 matching lines...) Expand 10 before | Expand all | Expand 10 after
5620 Register current = scratch0; 5620 Register current = scratch0;
5621 Label loop_again; 5621 Label loop_again;
5622 5622
5623 // Scratch contained elements pointer. 5623 // Scratch contained elements pointer.
5624 Move(current, object); 5624 Move(current, object);
5625 5625
5626 // Loop based on the map going up the prototype chain. 5626 // Loop based on the map going up the prototype chain.
5627 bind(&loop_again); 5627 bind(&loop_again);
5628 lw(current, FieldMemOperand(current, HeapObject::kMapOffset)); 5628 lw(current, FieldMemOperand(current, HeapObject::kMapOffset));
5629 lb(scratch1, FieldMemOperand(current, Map::kBitField2Offset)); 5629 lb(scratch1, FieldMemOperand(current, Map::kBitField2Offset));
5630 Ext(scratch1, scratch1, Map::kElementsKindShift, Map::kElementsKindBitCount); 5630 DecodeField<Map::ElementsKindBits>(scratch1);
5631 Branch(found, eq, scratch1, Operand(DICTIONARY_ELEMENTS)); 5631 Branch(found, eq, scratch1, Operand(DICTIONARY_ELEMENTS));
5632 lw(current, FieldMemOperand(current, Map::kPrototypeOffset)); 5632 lw(current, FieldMemOperand(current, Map::kPrototypeOffset));
5633 Branch(&loop_again, ne, current, Operand(factory->null_value())); 5633 Branch(&loop_again, ne, current, Operand(factory->null_value()));
5634 } 5634 }
5635 5635
5636 5636
5637 bool AreAliased(Register r1, Register r2, Register r3, Register r4) { 5637 bool AreAliased(Register r1, Register r2, Register r3, Register r4) {
5638 if (r1.is(r2)) return true; 5638 if (r1.is(r2)) return true;
5639 if (r1.is(r3)) return true; 5639 if (r1.is(r3)) return true;
5640 if (r1.is(r4)) return true; 5640 if (r1.is(r4)) return true;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
5721 } 5721 }
5722 if (ms.shift() > 0) sra(result, result, ms.shift()); 5722 if (ms.shift() > 0) sra(result, result, ms.shift());
5723 srl(at, dividend, 31); 5723 srl(at, dividend, 31);
5724 Addu(result, result, Operand(at)); 5724 Addu(result, result, Operand(at));
5725 } 5725 }
5726 5726
5727 5727
5728 } } // namespace v8::internal 5728 } } // namespace v8::internal
5729 5729
5730 #endif // V8_TARGET_ARCH_MIPS 5730 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698