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

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

Issue 7901016: Basic support for tracking smi-only arrays on ia32. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: ready to land Created 9 years, 2 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
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 1841 matching lines...) Expand 10 before | Expand all | Expand 10 after
1852 Heap::RootListIndex index) { 1852 Heap::RootListIndex index) {
1853 ASSERT(!obj.is(ip)); 1853 ASSERT(!obj.is(ip));
1854 LoadRoot(ip, index); 1854 LoadRoot(ip, index);
1855 cmp(obj, ip); 1855 cmp(obj, ip);
1856 } 1856 }
1857 1857
1858 1858
1859 void MacroAssembler::CheckFastElements(Register map, 1859 void MacroAssembler::CheckFastElements(Register map,
1860 Register scratch, 1860 Register scratch,
1861 Label* fail) { 1861 Label* fail) {
1862 STATIC_ASSERT(FAST_ELEMENTS == 0); 1862 STATIC_ASSERT(FAST_SMI_ONLY_ELEMENTS == 0);
1863 STATIC_ASSERT(FAST_ELEMENTS == 1);
1863 ldrb(scratch, FieldMemOperand(map, Map::kBitField2Offset)); 1864 ldrb(scratch, FieldMemOperand(map, Map::kBitField2Offset));
1864 cmp(scratch, Operand(Map::kMaximumBitField2FastElementValue)); 1865 cmp(scratch, Operand(Map::kMaximumBitField2FastElementValue));
1865 b(hi, fail); 1866 b(hi, fail);
1866 } 1867 }
1867 1868
1868 1869
1869 void MacroAssembler::CheckMap(Register obj, 1870 void MacroAssembler::CheckMap(Register obj,
1870 Register scratch, 1871 Register scratch,
1871 Handle<Map> map, 1872 Handle<Map> map,
1872 Label* fail, 1873 Label* fail,
(...skipping 1679 matching lines...) Expand 10 before | Expand all | Expand 10 after
3552 void CodePatcher::EmitCondition(Condition cond) { 3553 void CodePatcher::EmitCondition(Condition cond) {
3553 Instr instr = Assembler::instr_at(masm_.pc_); 3554 Instr instr = Assembler::instr_at(masm_.pc_);
3554 instr = (instr & ~kCondMask) | cond; 3555 instr = (instr & ~kCondMask) | cond;
3555 masm_.emit(instr); 3556 masm_.emit(instr);
3556 } 3557 }
3557 3558
3558 3559
3559 } } // namespace v8::internal 3560 } } // namespace v8::internal
3560 3561
3561 #endif // V8_TARGET_ARCH_ARM 3562 #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') | src/bootstrapper.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698