| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 2080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2091 return AssignPointerMap(DefineAsRegister(result)); | 2091 return AssignPointerMap(DefineAsRegister(result)); |
| 2092 } | 2092 } |
| 2093 | 2093 |
| 2094 | 2094 |
| 2095 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) { | 2095 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) { |
| 2096 LOperand* string = UseRegisterAtStart(instr->value()); | 2096 LOperand* string = UseRegisterAtStart(instr->value()); |
| 2097 return DefineAsRegister(new LStringLength(string)); | 2097 return DefineAsRegister(new LStringLength(string)); |
| 2098 } | 2098 } |
| 2099 | 2099 |
| 2100 | 2100 |
| 2101 LInstruction* LChunkBuilder::DoAllocateObject(HAllocateObject* instr) { |
| 2102 LAllocateObject* result = new LAllocateObject(); |
| 2103 return AssignPointerMap(DefineAsRegister(result)); |
| 2104 } |
| 2105 |
| 2106 |
| 2101 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { | 2107 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { |
| 2102 return MarkAsCall(DefineFixed(new LArrayLiteral, v0), instr); | 2108 return MarkAsCall(DefineFixed(new LArrayLiteral, v0), instr); |
| 2103 } | 2109 } |
| 2104 | 2110 |
| 2105 | 2111 |
| 2106 LInstruction* LChunkBuilder::DoObjectLiteralFast(HObjectLiteralFast* instr) { | 2112 LInstruction* LChunkBuilder::DoObjectLiteralFast(HObjectLiteralFast* instr) { |
| 2107 return MarkAsCall(DefineFixed(new LObjectLiteralFast, v0), instr); | 2113 return MarkAsCall(DefineFixed(new LObjectLiteralFast, v0), instr); |
| 2108 } | 2114 } |
| 2109 | 2115 |
| 2110 | 2116 |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2268 | 2274 |
| 2269 LInstruction* LChunkBuilder::DoIn(HIn* instr) { | 2275 LInstruction* LChunkBuilder::DoIn(HIn* instr) { |
| 2270 LOperand* key = UseRegisterAtStart(instr->key()); | 2276 LOperand* key = UseRegisterAtStart(instr->key()); |
| 2271 LOperand* object = UseRegisterAtStart(instr->object()); | 2277 LOperand* object = UseRegisterAtStart(instr->object()); |
| 2272 LIn* result = new LIn(key, object); | 2278 LIn* result = new LIn(key, object); |
| 2273 return MarkAsCall(DefineFixed(result, v0), instr); | 2279 return MarkAsCall(DefineFixed(result, v0), instr); |
| 2274 } | 2280 } |
| 2275 | 2281 |
| 2276 | 2282 |
| 2277 } } // namespace v8::internal | 2283 } } // namespace v8::internal |
| OLD | NEW |