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

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

Issue 6966041: Add complete ElementKind information directly to Map for objects with elements. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: review feedback Created 9 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/arm/macro-assembler-arm.h ('k') | src/heap.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1659 matching lines...) Expand 10 before | Expand all | Expand 10 after
1670 1670
1671 1671
1672 void MacroAssembler::CompareRoot(Register obj, 1672 void MacroAssembler::CompareRoot(Register obj,
1673 Heap::RootListIndex index) { 1673 Heap::RootListIndex index) {
1674 ASSERT(!obj.is(ip)); 1674 ASSERT(!obj.is(ip));
1675 LoadRoot(ip, index); 1675 LoadRoot(ip, index);
1676 cmp(obj, ip); 1676 cmp(obj, ip);
1677 } 1677 }
1678 1678
1679 1679
1680 void MacroAssembler::CheckFastElements(Register map,
1681 Register scratch,
1682 Label* fail) {
1683 STATIC_ASSERT(JSObject::FAST_ELEMENTS == 0);
1684 ldrb(scratch, FieldMemOperand(map, Map::kInstanceTypeOffset));
1685 cmp(scratch, Operand(Map::kMaximumBitField2FastElementValue));
1686 b(hi, fail);
1687 }
1688
1689
1680 void MacroAssembler::CheckMap(Register obj, 1690 void MacroAssembler::CheckMap(Register obj,
1681 Register scratch, 1691 Register scratch,
1682 Handle<Map> map, 1692 Handle<Map> map,
1683 Label* fail, 1693 Label* fail,
1684 SmiCheckType smi_check_type) { 1694 SmiCheckType smi_check_type) {
1685 if (smi_check_type == DO_SMI_CHECK) { 1695 if (smi_check_type == DO_SMI_CHECK) {
1686 JumpIfSmi(obj, fail); 1696 JumpIfSmi(obj, fail);
1687 } 1697 }
1688 ldr(scratch, FieldMemOperand(obj, HeapObject::kMapOffset)); 1698 ldr(scratch, FieldMemOperand(obj, HeapObject::kMapOffset));
1689 mov(ip, Operand(map)); 1699 mov(ip, Operand(map));
(...skipping 1467 matching lines...) Expand 10 before | Expand all | Expand 10 after
3157 void CodePatcher::EmitCondition(Condition cond) { 3167 void CodePatcher::EmitCondition(Condition cond) {
3158 Instr instr = Assembler::instr_at(masm_.pc_); 3168 Instr instr = Assembler::instr_at(masm_.pc_);
3159 instr = (instr & ~kCondMask) | cond; 3169 instr = (instr & ~kCondMask) | cond;
3160 masm_.emit(instr); 3170 masm_.emit(instr);
3161 } 3171 }
3162 3172
3163 3173
3164 } } // namespace v8::internal 3174 } } // namespace v8::internal
3165 3175
3166 #endif // V8_TARGET_ARCH_ARM 3176 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.h ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698