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

Side by Side Diff: src/arm/lithium-codegen-arm.cc

Issue 18508002: Remove HFixedArrayBaseLength instruction and replace with regular HLoadNamedField. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1828 matching lines...) Expand 10 before | Expand all | Expand 10 after
1839 AllowDeferredHandleDereference smi_check; 1839 AllowDeferredHandleDereference smi_check;
1840 if (value->IsSmi()) { 1840 if (value->IsSmi()) {
1841 __ mov(ToRegister(instr->result()), Operand(value)); 1841 __ mov(ToRegister(instr->result()), Operand(value));
1842 } else { 1842 } else {
1843 __ LoadHeapObject(ToRegister(instr->result()), 1843 __ LoadHeapObject(ToRegister(instr->result()),
1844 Handle<HeapObject>::cast(value)); 1844 Handle<HeapObject>::cast(value));
1845 } 1845 }
1846 } 1846 }
1847 1847
1848 1848
1849 void LCodeGen::DoFixedArrayBaseLength(LFixedArrayBaseLength* instr) {
1850 Register result = ToRegister(instr->result());
1851 Register array = ToRegister(instr->value());
1852 __ ldr(result, FieldMemOperand(array, FixedArrayBase::kLengthOffset));
1853 }
1854
1855
1856 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { 1849 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) {
1857 Register result = ToRegister(instr->result()); 1850 Register result = ToRegister(instr->result());
1858 Register map = ToRegister(instr->value()); 1851 Register map = ToRegister(instr->value());
1859 __ EnumLength(result, map); 1852 __ EnumLength(result, map);
1860 } 1853 }
1861 1854
1862 1855
1863 void LCodeGen::DoElementsKind(LElementsKind* instr) { 1856 void LCodeGen::DoElementsKind(LElementsKind* instr) {
1864 Register result = ToRegister(instr->result()); 1857 Register result = ToRegister(instr->result());
1865 Register input = ToRegister(instr->value()); 1858 Register input = ToRegister(instr->value());
(...skipping 4045 matching lines...) Expand 10 before | Expand all | Expand 10 after
5911 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5904 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5912 __ ldr(result, FieldMemOperand(scratch, 5905 __ ldr(result, FieldMemOperand(scratch,
5913 FixedArray::kHeaderSize - kPointerSize)); 5906 FixedArray::kHeaderSize - kPointerSize));
5914 __ bind(&done); 5907 __ bind(&done);
5915 } 5908 }
5916 5909
5917 5910
5918 #undef __ 5911 #undef __
5919 5912
5920 } } // namespace v8::internal 5913 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/code-stubs-hydrogen.cc » ('j') | src/hydrogen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698