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

Side by Side Diff: src/mips/lithium-mips.cc

Issue 61893003: MIPS: Improve implementation of HSeqStringSetChar. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month 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/mips/lithium-mips.h ('k') | no next file » | 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 1790 matching lines...) Expand 10 before | Expand all | Expand 10 after
1801 LDateField* result = 1801 LDateField* result =
1802 new(zone()) LDateField(object, FixedTemp(a1), instr->index()); 1802 new(zone()) LDateField(object, FixedTemp(a1), instr->index());
1803 return MarkAsCall(DefineFixed(result, v0), instr, CAN_DEOPTIMIZE_EAGERLY); 1803 return MarkAsCall(DefineFixed(result, v0), instr, CAN_DEOPTIMIZE_EAGERLY);
1804 } 1804 }
1805 1805
1806 1806
1807 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { 1807 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) {
1808 LOperand* string = UseRegister(instr->string()); 1808 LOperand* string = UseRegister(instr->string());
1809 LOperand* index = UseRegisterOrConstant(instr->index()); 1809 LOperand* index = UseRegisterOrConstant(instr->index());
1810 LOperand* value = UseRegister(instr->value()); 1810 LOperand* value = UseRegister(instr->value());
1811 return new(zone()) LSeqStringSetChar(instr->encoding(), string, index, value); 1811 return new(zone()) LSeqStringSetChar(string, index, value);
1812 } 1812 }
1813 1813
1814 1814
1815 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { 1815 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) {
1816 LOperand* value = UseRegisterOrConstantAtStart(instr->index()); 1816 LOperand* value = UseRegisterOrConstantAtStart(instr->index());
1817 LOperand* length = UseRegister(instr->length()); 1817 LOperand* length = UseRegister(instr->length());
1818 return AssignEnvironment(new(zone()) LBoundsCheck(value, length)); 1818 return AssignEnvironment(new(zone()) LBoundsCheck(value, length));
1819 } 1819 }
1820 1820
1821 1821
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after
2581 2581
2582 2582
2583 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2583 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2584 LOperand* object = UseRegister(instr->object()); 2584 LOperand* object = UseRegister(instr->object());
2585 LOperand* index = UseRegister(instr->index()); 2585 LOperand* index = UseRegister(instr->index());
2586 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2586 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2587 } 2587 }
2588 2588
2589 2589
2590 } } // namespace v8::internal 2590 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698