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

Side by Side Diff: src/mips/lithium-codegen-mips.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, 4 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 1603 matching lines...) Expand 10 before | Expand all | Expand 10 after
1614 1614
1615 1615
1616 void LCodeGen::DoConstantD(LConstantD* instr) { 1616 void LCodeGen::DoConstantD(LConstantD* instr) {
1617 ASSERT(instr->result()->IsDoubleRegister()); 1617 ASSERT(instr->result()->IsDoubleRegister());
1618 DoubleRegister result = ToDoubleRegister(instr->result()); 1618 DoubleRegister result = ToDoubleRegister(instr->result());
1619 double v = instr->value(); 1619 double v = instr->value();
1620 __ Move(result, v); 1620 __ Move(result, v);
1621 } 1621 }
1622 1622
1623 1623
1624 void LCodeGen::DoConstantE(LConstantE* instr) {
1625 __ li(ToRegister(instr->result()), Operand(instr->value()));
1626 }
1627
1628
1624 void LCodeGen::DoConstantT(LConstantT* instr) { 1629 void LCodeGen::DoConstantT(LConstantT* instr) {
1625 Handle<Object> value = instr->value(); 1630 Handle<Object> value = instr->value();
1626 AllowDeferredHandleDereference smi_check; 1631 AllowDeferredHandleDereference smi_check;
1627 __ LoadObject(ToRegister(instr->result()), value); 1632 __ LoadObject(ToRegister(instr->result()), value);
1628 } 1633 }
1629 1634
1630 1635
1631 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { 1636 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) {
1632 Register result = ToRegister(instr->result()); 1637 Register result = ToRegister(instr->result());
1633 Register map = ToRegister(instr->value()); 1638 Register map = ToRegister(instr->value());
(...skipping 4172 matching lines...) Expand 10 before | Expand all | Expand 10 after
5806 __ Subu(scratch, result, scratch); 5811 __ Subu(scratch, result, scratch);
5807 __ lw(result, FieldMemOperand(scratch, 5812 __ lw(result, FieldMemOperand(scratch,
5808 FixedArray::kHeaderSize - kPointerSize)); 5813 FixedArray::kHeaderSize - kPointerSize));
5809 __ bind(&done); 5814 __ bind(&done);
5810 } 5815 }
5811 5816
5812 5817
5813 #undef __ 5818 #undef __
5814 5819
5815 } } // namespace v8::internal 5820 } } // namespace v8::internal
OLDNEW
« src/ia32/lithium-ia32.h ('K') | « src/ia32/lithium-ia32.cc ('k') | src/mips/lithium-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698