OLD | NEW |
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 1915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1926 | 1926 |
1927 | 1927 |
1928 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { | 1928 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { |
1929 LOperand* string = UseRegister(instr->string()); | 1929 LOperand* string = UseRegister(instr->string()); |
1930 LOperand* index = UseRegisterOrConstant(instr->index()); | 1930 LOperand* index = UseRegisterOrConstant(instr->index()); |
1931 LStringCharCodeAt* result = new LStringCharCodeAt(string, index); | 1931 LStringCharCodeAt* result = new LStringCharCodeAt(string, index); |
1932 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result))); | 1932 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result))); |
1933 } | 1933 } |
1934 | 1934 |
1935 | 1935 |
| 1936 LInstruction* LChunkBuilder::DoStringCharFromCode(HStringCharFromCode* instr) { |
| 1937 LOperand* char_code = UseRegister(instr->value()); |
| 1938 LStringCharFromCode* result = new LStringCharFromCode(char_code); |
| 1939 return AssignPointerMap(DefineAsRegister(result)); |
| 1940 } |
| 1941 |
| 1942 |
1936 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) { | 1943 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) { |
1937 LOperand* string = UseRegisterAtStart(instr->value()); | 1944 LOperand* string = UseRegisterAtStart(instr->value()); |
1938 return DefineAsRegister(new LStringLength(string)); | 1945 return DefineAsRegister(new LStringLength(string)); |
1939 } | 1946 } |
1940 | 1947 |
1941 | 1948 |
1942 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { | 1949 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { |
1943 return MarkAsCall(DefineFixed(new LArrayLiteral, eax), instr); | 1950 return MarkAsCall(DefineFixed(new LArrayLiteral, eax), instr); |
1944 } | 1951 } |
1945 | 1952 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2082 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2089 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
2083 HEnvironment* outer = current_block_->last_environment()->outer(); | 2090 HEnvironment* outer = current_block_->last_environment()->outer(); |
2084 current_block_->UpdateEnvironment(outer); | 2091 current_block_->UpdateEnvironment(outer); |
2085 return NULL; | 2092 return NULL; |
2086 } | 2093 } |
2087 | 2094 |
2088 | 2095 |
2089 } } // namespace v8::internal | 2096 } } // namespace v8::internal |
2090 | 2097 |
2091 #endif // V8_TARGET_ARCH_IA32 | 2098 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |