| 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 2045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2056 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { | 2056 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { |
| 2057 LOperand* context = UseFixed(instr->context(), esi); | 2057 LOperand* context = UseFixed(instr->context(), esi); |
| 2058 LOperand* left = UseOrConstantAtStart(instr->left()); | 2058 LOperand* left = UseOrConstantAtStart(instr->left()); |
| 2059 LOperand* right = UseOrConstantAtStart(instr->right()); | 2059 LOperand* right = UseOrConstantAtStart(instr->right()); |
| 2060 LStringAdd* string_add = new LStringAdd(context, left, right); | 2060 LStringAdd* string_add = new LStringAdd(context, left, right); |
| 2061 return MarkAsCall(DefineFixed(string_add, eax), instr); | 2061 return MarkAsCall(DefineFixed(string_add, eax), instr); |
| 2062 } | 2062 } |
| 2063 | 2063 |
| 2064 | 2064 |
| 2065 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { | 2065 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { |
| 2066 LOperand* string = UseRegister(instr->string()); | 2066 LOperand* string = UseTempRegister(instr->string()); |
| 2067 LOperand* index = UseRegisterOrConstant(instr->index()); | 2067 LOperand* index = UseTempRegister(instr->index()); |
| 2068 LOperand* context = UseAny(instr->context()); | 2068 LOperand* context = UseAny(instr->context()); |
| 2069 LStringCharCodeAt* result = new LStringCharCodeAt(context, string, index); | 2069 LStringCharCodeAt* result = new LStringCharCodeAt(context, string, index); |
| 2070 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result))); | 2070 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result))); |
| 2071 } | 2071 } |
| 2072 | 2072 |
| 2073 | 2073 |
| 2074 LInstruction* LChunkBuilder::DoStringCharFromCode(HStringCharFromCode* instr) { | 2074 LInstruction* LChunkBuilder::DoStringCharFromCode(HStringCharFromCode* instr) { |
| 2075 LOperand* char_code = UseRegister(instr->value()); | 2075 LOperand* char_code = UseRegister(instr->value()); |
| 2076 LOperand* context = UseAny(instr->context()); | 2076 LOperand* context = UseAny(instr->context()); |
| 2077 LStringCharFromCode* result = new LStringCharFromCode(context, char_code); | 2077 LStringCharFromCode* result = new LStringCharFromCode(context, char_code); |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2262 LOperand* key = UseOrConstantAtStart(instr->key()); | 2262 LOperand* key = UseOrConstantAtStart(instr->key()); |
| 2263 LOperand* object = UseOrConstantAtStart(instr->object()); | 2263 LOperand* object = UseOrConstantAtStart(instr->object()); |
| 2264 LIn* result = new LIn(context, key, object); | 2264 LIn* result = new LIn(context, key, object); |
| 2265 return MarkAsCall(DefineFixed(result, eax), instr); | 2265 return MarkAsCall(DefineFixed(result, eax), instr); |
| 2266 } | 2266 } |
| 2267 | 2267 |
| 2268 | 2268 |
| 2269 } } // namespace v8::internal | 2269 } } // namespace v8::internal |
| 2270 | 2270 |
| 2271 #endif // V8_TARGET_ARCH_IA32 | 2271 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |