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

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

Issue 6368009: ARM: Implement StringLength and StringCharCodeAt in the lithium-arm (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comments Created 9 years, 11 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/ia32/lithium-codegen-ia32.cc ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1726 matching lines...) Expand 10 before | Expand all | Expand 10 after
1737 LOperand* val = UseFixed(instr->value(), eax); 1737 LOperand* val = UseFixed(instr->value(), eax);
1738 1738
1739 LStoreNamedGeneric* result = new LStoreNamedGeneric(obj, val); 1739 LStoreNamedGeneric* result = new LStoreNamedGeneric(obj, val);
1740 return MarkAsCall(result, instr); 1740 return MarkAsCall(result, instr);
1741 } 1741 }
1742 1742
1743 1743
1744 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { 1744 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) {
1745 LOperand* string = UseRegister(instr->string()); 1745 LOperand* string = UseRegister(instr->string());
1746 LOperand* index = UseRegisterOrConstant(instr->index()); 1746 LOperand* index = UseRegisterOrConstant(instr->index());
1747 return AssignEnvironment(AssignPointerMap(DefineAsRegister( 1747 LStringCharCodeAt* result = new LStringCharCodeAt(string, index);
1748 new LStringCharCodeAt(string, index)))); 1748 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result)));
1749 } 1749 }
1750 1750
1751 1751
1752 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) { 1752 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) {
1753 LOperand* string = UseRegisterAtStart(instr->value()); 1753 LOperand* string = UseRegisterAtStart(instr->value());
1754 return DefineAsRegister(new LStringLength(string)); 1754 return DefineAsRegister(new LStringLength(string));
1755 } 1755 }
1756 1756
1757 1757
1758 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { 1758 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) {
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
1886 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 1886 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
1887 HEnvironment* outer = current_block_->last_environment()->outer(); 1887 HEnvironment* outer = current_block_->last_environment()->outer();
1888 current_block_->UpdateEnvironment(outer); 1888 current_block_->UpdateEnvironment(outer);
1889 return NULL; 1889 return NULL;
1890 } 1890 }
1891 1891
1892 1892
1893 } } // namespace v8::internal 1893 } } // namespace v8::internal
1894 1894
1895 #endif // V8_TARGET_ARCH_IA32 1895 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698