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

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

Issue 12491023: Remove (H|L)JSArrayLength instructions (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Cleanup Created 7 years, 8 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/hydrogen-instructions.cc ('k') | src/ia32/lithium-ia32.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 // 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 1722 matching lines...) Expand 10 before | Expand all | Expand 10 after
1733 Register reg = ToRegister(instr->result()); 1733 Register reg = ToRegister(instr->result());
1734 Handle<Object> handle = instr->value(); 1734 Handle<Object> handle = instr->value();
1735 if (handle->IsHeapObject()) { 1735 if (handle->IsHeapObject()) {
1736 __ LoadHeapObject(reg, Handle<HeapObject>::cast(handle)); 1736 __ LoadHeapObject(reg, Handle<HeapObject>::cast(handle));
1737 } else { 1737 } else {
1738 __ Set(reg, Immediate(handle)); 1738 __ Set(reg, Immediate(handle));
1739 } 1739 }
1740 } 1740 }
1741 1741
1742 1742
1743 void LCodeGen::DoJSArrayLength(LJSArrayLength* instr) {
1744 Register result = ToRegister(instr->result());
1745 Register array = ToRegister(instr->value());
1746 __ mov(result, FieldOperand(array, JSArray::kLengthOffset));
1747 }
1748
1749
1750 void LCodeGen::DoFixedArrayBaseLength( 1743 void LCodeGen::DoFixedArrayBaseLength(
1751 LFixedArrayBaseLength* instr) { 1744 LFixedArrayBaseLength* instr) {
1752 Register result = ToRegister(instr->result()); 1745 Register result = ToRegister(instr->result());
1753 Register array = ToRegister(instr->value()); 1746 Register array = ToRegister(instr->value());
1754 __ mov(result, FieldOperand(array, FixedArrayBase::kLengthOffset)); 1747 __ mov(result, FieldOperand(array, FixedArrayBase::kLengthOffset));
1755 } 1748 }
1756 1749
1757 1750
1758 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { 1751 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) {
1759 Register result = ToRegister(instr->result()); 1752 Register result = ToRegister(instr->result());
(...skipping 4539 matching lines...) Expand 10 before | Expand all | Expand 10 after
6299 FixedArray::kHeaderSize - kPointerSize)); 6292 FixedArray::kHeaderSize - kPointerSize));
6300 __ bind(&done); 6293 __ bind(&done);
6301 } 6294 }
6302 6295
6303 6296
6304 #undef __ 6297 #undef __
6305 6298
6306 } } // namespace v8::internal 6299 } } // namespace v8::internal
6307 6300
6308 #endif // V8_TARGET_ARCH_IA32 6301 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/ia32/lithium-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698