| 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 1968 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1979 | 1979 |
| 1980 | 1980 |
| 1981 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { | 1981 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { |
| 1982 LOperand* left = UseOrConstantAtStart(instr->left()); | 1982 LOperand* left = UseOrConstantAtStart(instr->left()); |
| 1983 LOperand* right = UseOrConstantAtStart(instr->right()); | 1983 LOperand* right = UseOrConstantAtStart(instr->right()); |
| 1984 return MarkAsCall(DefineFixed(new LStringAdd(left, right), rax), instr); | 1984 return MarkAsCall(DefineFixed(new LStringAdd(left, right), rax), instr); |
| 1985 } | 1985 } |
| 1986 | 1986 |
| 1987 | 1987 |
| 1988 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { | 1988 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { |
| 1989 LOperand* string = UseRegister(instr->string()); | 1989 LOperand* string = UseTempRegister(instr->string()); |
| 1990 LOperand* index = UseRegisterOrConstant(instr->index()); | 1990 LOperand* index = UseTempRegister(instr->index()); |
| 1991 LStringCharCodeAt* result = new LStringCharCodeAt(string, index); | 1991 LStringCharCodeAt* result = new LStringCharCodeAt(string, index); |
| 1992 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result))); | 1992 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result))); |
| 1993 } | 1993 } |
| 1994 | 1994 |
| 1995 | 1995 |
| 1996 LInstruction* LChunkBuilder::DoStringCharFromCode(HStringCharFromCode* instr) { | 1996 LInstruction* LChunkBuilder::DoStringCharFromCode(HStringCharFromCode* instr) { |
| 1997 LOperand* char_code = UseRegister(instr->value()); | 1997 LOperand* char_code = UseRegister(instr->value()); |
| 1998 LStringCharFromCode* result = new LStringCharFromCode(char_code); | 1998 LStringCharFromCode* result = new LStringCharFromCode(char_code); |
| 1999 return AssignPointerMap(DefineAsRegister(result)); | 1999 return AssignPointerMap(DefineAsRegister(result)); |
| 2000 } | 2000 } |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2170 LOperand* key = UseOrConstantAtStart(instr->key()); | 2170 LOperand* key = UseOrConstantAtStart(instr->key()); |
| 2171 LOperand* object = UseOrConstantAtStart(instr->object()); | 2171 LOperand* object = UseOrConstantAtStart(instr->object()); |
| 2172 LIn* result = new LIn(key, object); | 2172 LIn* result = new LIn(key, object); |
| 2173 return MarkAsCall(DefineFixed(result, rax), instr); | 2173 return MarkAsCall(DefineFixed(result, rax), instr); |
| 2174 } | 2174 } |
| 2175 | 2175 |
| 2176 | 2176 |
| 2177 } } // namespace v8::internal | 2177 } } // namespace v8::internal |
| 2178 | 2178 |
| 2179 #endif // V8_TARGET_ARCH_X64 | 2179 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |