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

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

Issue 7849017: Mechanical refactor to move ElementsKind type out of JSObject. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: latest changes Created 9 years, 3 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/lithium-codegen-arm.cc ('k') | src/arm/stub-cache-arm.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 1775 matching lines...) Expand 10 before | Expand all | Expand 10 after
1786 Heap::RootListIndex index) { 1786 Heap::RootListIndex index) {
1787 ASSERT(!obj.is(ip)); 1787 ASSERT(!obj.is(ip));
1788 LoadRoot(ip, index); 1788 LoadRoot(ip, index);
1789 cmp(obj, ip); 1789 cmp(obj, ip);
1790 } 1790 }
1791 1791
1792 1792
1793 void MacroAssembler::CheckFastElements(Register map, 1793 void MacroAssembler::CheckFastElements(Register map,
1794 Register scratch, 1794 Register scratch,
1795 Label* fail) { 1795 Label* fail) {
1796 STATIC_ASSERT(JSObject::FAST_ELEMENTS == 0); 1796 STATIC_ASSERT(FAST_ELEMENTS == 0);
1797 ldrb(scratch, FieldMemOperand(map, Map::kBitField2Offset)); 1797 ldrb(scratch, FieldMemOperand(map, Map::kBitField2Offset));
1798 cmp(scratch, Operand(Map::kMaximumBitField2FastElementValue)); 1798 cmp(scratch, Operand(Map::kMaximumBitField2FastElementValue));
1799 b(hi, fail); 1799 b(hi, fail);
1800 } 1800 }
1801 1801
1802 1802
1803 void MacroAssembler::CheckMap(Register obj, 1803 void MacroAssembler::CheckMap(Register obj,
1804 Register scratch, 1804 Register scratch,
1805 Handle<Map> map, 1805 Handle<Map> map,
1806 Label* fail, 1806 Label* fail,
(...skipping 1462 matching lines...) Expand 10 before | Expand all | Expand 10 after
3269 void CodePatcher::EmitCondition(Condition cond) { 3269 void CodePatcher::EmitCondition(Condition cond) {
3270 Instr instr = Assembler::instr_at(masm_.pc_); 3270 Instr instr = Assembler::instr_at(masm_.pc_);
3271 instr = (instr & ~kCondMask) | cond; 3271 instr = (instr & ~kCondMask) | cond;
3272 masm_.emit(instr); 3272 masm_.emit(instr);
3273 } 3273 }
3274 3274
3275 3275
3276 } } // namespace v8::internal 3276 } } // namespace v8::internal
3277 3277
3278 #endif // V8_TARGET_ARCH_ARM 3278 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/arm/stub-cache-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698