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

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

Issue 6682025: Crankshaft support for StringCharFromCode. (Closed)
Patch Set: Ports Created 9 years, 9 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
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.h » ('j') | 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 1875 matching lines...) Expand 10 before | Expand all | Expand 10 after
1886 1886
1887 1887
1888 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { 1888 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) {
1889 LOperand* string = UseRegister(instr->string()); 1889 LOperand* string = UseRegister(instr->string());
1890 LOperand* index = UseRegisterOrConstant(instr->index()); 1890 LOperand* index = UseRegisterOrConstant(instr->index());
1891 LStringCharCodeAt* result = new LStringCharCodeAt(string, index); 1891 LStringCharCodeAt* result = new LStringCharCodeAt(string, index);
1892 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result))); 1892 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result)));
1893 } 1893 }
1894 1894
1895 1895
1896 LInstruction* LChunkBuilder::DoStringCharFromCode(HStringCharFromCode* instr) {
1897 LOperand* char_code = UseRegister(instr->value());
1898 LStringCharFromCode* result = new LStringCharFromCode(char_code);
1899 return AssignPointerMap(DefineAsRegister(result));
1900 }
1901
1902
1896 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) { 1903 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) {
1897 LOperand* string = UseRegisterAtStart(instr->value()); 1904 LOperand* string = UseRegisterAtStart(instr->value());
1898 return DefineAsRegister(new LStringLength(string)); 1905 return DefineAsRegister(new LStringLength(string));
1899 } 1906 }
1900 1907
1901 1908
1902 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { 1909 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) {
1903 return MarkAsCall(DefineFixed(new LArrayLiteral, r0), instr); 1910 return MarkAsCall(DefineFixed(new LArrayLiteral, r0), instr);
1904 } 1911 }
1905 1912
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
2038 2045
2039 2046
2040 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2047 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2041 HEnvironment* outer = current_block_->last_environment()->outer(); 2048 HEnvironment* outer = current_block_->last_environment()->outer();
2042 current_block_->UpdateEnvironment(outer); 2049 current_block_->UpdateEnvironment(outer);
2043 return NULL; 2050 return NULL;
2044 } 2051 }
2045 2052
2046 2053
2047 } } // namespace v8::internal 2054 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698