| 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 2163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2174 } | 2174 } |
| 2175 | 2175 |
| 2176 | 2176 |
| 2177 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { | 2177 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { |
| 2178 LOperand* context = UseFixed(instr->context(), esi); | 2178 LOperand* context = UseFixed(instr->context(), esi); |
| 2179 return MarkAsCall( | 2179 return MarkAsCall( |
| 2180 DefineFixed(new(zone()) LArrayLiteral(context), eax), instr); | 2180 DefineFixed(new(zone()) LArrayLiteral(context), eax), instr); |
| 2181 } | 2181 } |
| 2182 | 2182 |
| 2183 | 2183 |
| 2184 LInstruction* LChunkBuilder::DoObjectLiteral(HObjectLiteral* instr) { | 2184 LInstruction* LChunkBuilder::DoObjectLiteralFast(HObjectLiteralFast* instr) { |
| 2185 LOperand* context = UseFixed(instr->context(), esi); | 2185 LOperand* context = UseFixed(instr->context(), esi); |
| 2186 return MarkAsCall( | 2186 return MarkAsCall( |
| 2187 DefineFixed(new(zone()) LObjectLiteral(context), eax), instr); | 2187 DefineFixed(new(zone()) LObjectLiteralFast(context), eax), instr); |
| 2188 } | 2188 } |
| 2189 | 2189 |
| 2190 | 2190 |
| 2191 LInstruction* LChunkBuilder::DoObjectLiteralGeneric( |
| 2192 HObjectLiteralGeneric* instr) { |
| 2193 LOperand* context = UseFixed(instr->context(), esi); |
| 2194 return MarkAsCall( |
| 2195 DefineFixed(new(zone()) LObjectLiteralGeneric(context), eax), instr); |
| 2196 } |
| 2197 |
| 2198 |
| 2191 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { | 2199 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { |
| 2192 LOperand* context = UseFixed(instr->context(), esi); | 2200 LOperand* context = UseFixed(instr->context(), esi); |
| 2193 return MarkAsCall( | 2201 return MarkAsCall( |
| 2194 DefineFixed(new(zone()) LRegExpLiteral(context), eax), instr); | 2202 DefineFixed(new(zone()) LRegExpLiteral(context), eax), instr); |
| 2195 } | 2203 } |
| 2196 | 2204 |
| 2197 | 2205 |
| 2198 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) { | 2206 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) { |
| 2199 LOperand* context = UseFixed(instr->context(), esi); | 2207 LOperand* context = UseFixed(instr->context(), esi); |
| 2200 return MarkAsCall( | 2208 return MarkAsCall( |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2357 LOperand* key = UseOrConstantAtStart(instr->key()); | 2365 LOperand* key = UseOrConstantAtStart(instr->key()); |
| 2358 LOperand* object = UseOrConstantAtStart(instr->object()); | 2366 LOperand* object = UseOrConstantAtStart(instr->object()); |
| 2359 LIn* result = new(zone()) LIn(context, key, object); | 2367 LIn* result = new(zone()) LIn(context, key, object); |
| 2360 return MarkAsCall(DefineFixed(result, eax), instr); | 2368 return MarkAsCall(DefineFixed(result, eax), instr); |
| 2361 } | 2369 } |
| 2362 | 2370 |
| 2363 | 2371 |
| 2364 } } // namespace v8::internal | 2372 } } // namespace v8::internal |
| 2365 | 2373 |
| 2366 #endif // V8_TARGET_ARCH_IA32 | 2374 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |