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

Side by Side Diff: src/x64/lithium-x64.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/x64/lithium-x64.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 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 1877 matching lines...) Expand 10 before | Expand all | Expand 10 after
1888 1888
1889 1889
1890 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { 1890 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) {
1891 LOperand* string = UseRegister(instr->string()); 1891 LOperand* string = UseRegister(instr->string());
1892 LOperand* index = UseRegisterOrConstant(instr->index()); 1892 LOperand* index = UseRegisterOrConstant(instr->index());
1893 LStringCharCodeAt* result = new LStringCharCodeAt(string, index); 1893 LStringCharCodeAt* result = new LStringCharCodeAt(string, index);
1894 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result))); 1894 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result)));
1895 } 1895 }
1896 1896
1897 1897
1898 LInstruction* LChunkBuilder::DoStringCharFromCode(HStringCharFromCode* instr) {
1899 LOperand* char_code = UseRegister(instr->value());
1900 LStringCharFromCode* result = new LStringCharFromCode(char_code);
1901 return AssignPointerMap(DefineAsRegister(result));
1902 }
1903
1904
1898 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) { 1905 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) {
1899 LOperand* string = UseRegisterAtStart(instr->value()); 1906 LOperand* string = UseRegisterAtStart(instr->value());
1900 return DefineAsRegister(new LStringLength(string)); 1907 return DefineAsRegister(new LStringLength(string));
1901 } 1908 }
1902 1909
1903 1910
1904 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { 1911 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) {
1905 return MarkAsCall(DefineFixed(new LArrayLiteral, rax), instr); 1912 return MarkAsCall(DefineFixed(new LArrayLiteral, rax), instr);
1906 } 1913 }
1907 1914
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 } } // namespace v8::internal 2053 } } // namespace v8::internal
2047 2054
2048 #endif // V8_TARGET_ARCH_X64 2055 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698