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

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

Issue 19562003: Add support for IncrementCounter in Hydrogen. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add ExternalMemory portion 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 1799 matching lines...) Expand 10 before | Expand all | Expand 10 after
1810 1810
1811 1811
1812 void LCodeGen::DoConstantD(LConstantD* instr) { 1812 void LCodeGen::DoConstantD(LConstantD* instr) {
1813 ASSERT(instr->result()->IsDoubleRegister()); 1813 ASSERT(instr->result()->IsDoubleRegister());
1814 DwVfpRegister result = ToDoubleRegister(instr->result()); 1814 DwVfpRegister result = ToDoubleRegister(instr->result());
1815 double v = instr->value(); 1815 double v = instr->value();
1816 __ Vmov(result, v, scratch0()); 1816 __ Vmov(result, v, scratch0());
1817 } 1817 }
1818 1818
1819 1819
1820 void LCodeGen::DoConstantE(LConstantE* instr) {
1821 __ mov(ToRegister(instr->result()), Operand(instr->value()));
1822 }
1823
1824
1820 void LCodeGen::DoConstantT(LConstantT* instr) { 1825 void LCodeGen::DoConstantT(LConstantT* instr) {
1821 Handle<Object> value = instr->value(); 1826 Handle<Object> value = instr->value();
1822 AllowDeferredHandleDereference smi_check; 1827 AllowDeferredHandleDereference smi_check;
1823 __ LoadObject(ToRegister(instr->result()), value); 1828 __ LoadObject(ToRegister(instr->result()), value);
1824 } 1829 }
1825 1830
1826 1831
1827 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { 1832 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) {
1828 Register result = ToRegister(instr->result()); 1833 Register result = ToRegister(instr->result());
1829 Register map = ToRegister(instr->value()); 1834 Register map = ToRegister(instr->value());
(...skipping 4014 matching lines...) Expand 10 before | Expand all | Expand 10 after
5844 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5849 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5845 __ ldr(result, FieldMemOperand(scratch, 5850 __ ldr(result, FieldMemOperand(scratch,
5846 FixedArray::kHeaderSize - kPointerSize)); 5851 FixedArray::kHeaderSize - kPointerSize));
5847 __ bind(&done); 5852 __ bind(&done);
5848 } 5853 }
5849 5854
5850 5855
5851 #undef __ 5856 #undef __
5852 5857
5853 } } // namespace v8::internal 5858 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/assembler.h » ('j') | src/hydrogen-instructions.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698