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

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

Issue 19562003: Add support for IncrementCounter in Hydrogen. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE 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 1814 matching lines...) Expand 10 before | Expand all | Expand 10 after
1825 __ Set(temp, Immediate(lower)); 1825 __ Set(temp, Immediate(lower));
1826 __ movd(xmm0, Operand(temp)); 1826 __ movd(xmm0, Operand(temp));
1827 __ por(res, xmm0); 1827 __ por(res, xmm0);
1828 } 1828 }
1829 } 1829 }
1830 } 1830 }
1831 } 1831 }
1832 } 1832 }
1833 1833
1834 1834
1835 void LCodeGen::DoConstantE(LConstantE* instr) {
1836 __ lea(ToRegister(instr->result()), Operand::StaticVariable(instr->value()));
1837 }
1838
1839
1835 void LCodeGen::DoConstantT(LConstantT* instr) { 1840 void LCodeGen::DoConstantT(LConstantT* instr) {
1836 Register reg = ToRegister(instr->result()); 1841 Register reg = ToRegister(instr->result());
1837 Handle<Object> handle = instr->value(); 1842 Handle<Object> handle = instr->value();
1838 AllowDeferredHandleDereference smi_check; 1843 AllowDeferredHandleDereference smi_check;
1839 __ LoadObject(reg, handle); 1844 __ LoadObject(reg, handle);
1840 } 1845 }
1841 1846
1842 1847
1843 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { 1848 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) {
1844 Register result = ToRegister(instr->result()); 1849 Register result = ToRegister(instr->result());
(...skipping 4647 matching lines...) Expand 10 before | Expand all | Expand 10 after
6492 FixedArray::kHeaderSize - kPointerSize)); 6497 FixedArray::kHeaderSize - kPointerSize));
6493 __ bind(&done); 6498 __ bind(&done);
6494 } 6499 }
6495 6500
6496 6501
6497 #undef __ 6502 #undef __
6498 6503
6499 } } // namespace v8::internal 6504 } } // namespace v8::internal
6500 6505
6501 #endif // V8_TARGET_ARCH_IA32 6506 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698