| 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 1981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1992 | 1992 |
| 1993 | 1993 |
| 1994 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { | 1994 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { |
| 1995 LOperand* left = UseRegisterAtStart(instr->left()); | 1995 LOperand* left = UseRegisterAtStart(instr->left()); |
| 1996 LOperand* right = UseRegisterAtStart(instr->right()); | 1996 LOperand* right = UseRegisterAtStart(instr->right()); |
| 1997 return MarkAsCall(DefineFixed(new LStringAdd(left, right), r0), instr); | 1997 return MarkAsCall(DefineFixed(new LStringAdd(left, right), r0), instr); |
| 1998 } | 1998 } |
| 1999 | 1999 |
| 2000 | 2000 |
| 2001 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { | 2001 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { |
| 2002 LOperand* string = UseRegister(instr->string()); | 2002 LOperand* string = UseTempRegister(instr->string()); |
| 2003 LOperand* index = UseRegisterOrConstant(instr->index()); | 2003 LOperand* index = UseTempRegister(instr->index()); |
| 2004 LStringCharCodeAt* result = new LStringCharCodeAt(string, index); | 2004 LStringCharCodeAt* result = new LStringCharCodeAt(string, index); |
| 2005 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result))); | 2005 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result))); |
| 2006 } | 2006 } |
| 2007 | 2007 |
| 2008 | 2008 |
| 2009 LInstruction* LChunkBuilder::DoStringCharFromCode(HStringCharFromCode* instr) { | 2009 LInstruction* LChunkBuilder::DoStringCharFromCode(HStringCharFromCode* instr) { |
| 2010 LOperand* char_code = UseRegister(instr->value()); | 2010 LOperand* char_code = UseRegister(instr->value()); |
| 2011 LStringCharFromCode* result = new LStringCharFromCode(char_code); | 2011 LStringCharFromCode* result = new LStringCharFromCode(char_code); |
| 2012 return AssignPointerMap(DefineAsRegister(result)); | 2012 return AssignPointerMap(DefineAsRegister(result)); |
| 2013 } | 2013 } |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2181 | 2181 |
| 2182 LInstruction* LChunkBuilder::DoIn(HIn* instr) { | 2182 LInstruction* LChunkBuilder::DoIn(HIn* instr) { |
| 2183 LOperand* key = UseRegisterAtStart(instr->key()); | 2183 LOperand* key = UseRegisterAtStart(instr->key()); |
| 2184 LOperand* object = UseRegisterAtStart(instr->object()); | 2184 LOperand* object = UseRegisterAtStart(instr->object()); |
| 2185 LIn* result = new LIn(key, object); | 2185 LIn* result = new LIn(key, object); |
| 2186 return MarkAsCall(DefineFixed(result, r0), instr); | 2186 return MarkAsCall(DefineFixed(result, r0), instr); |
| 2187 } | 2187 } |
| 2188 | 2188 |
| 2189 | 2189 |
| 2190 } } // namespace v8::internal | 2190 } } // namespace v8::internal |
| OLD | NEW |