| 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 2194 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2205   return AssignPointerMap(DefineAsRegister(result)); | 2205   return AssignPointerMap(DefineAsRegister(result)); | 
| 2206 } | 2206 } | 
| 2207 | 2207 | 
| 2208 | 2208 | 
| 2209 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) { | 2209 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) { | 
| 2210   LOperand* string = UseRegisterAtStart(instr->value()); | 2210   LOperand* string = UseRegisterAtStart(instr->value()); | 
| 2211   return DefineAsRegister(new(zone()) LStringLength(string)); | 2211   return DefineAsRegister(new(zone()) LStringLength(string)); | 
| 2212 } | 2212 } | 
| 2213 | 2213 | 
| 2214 | 2214 | 
|  | 2215 LInstruction* LChunkBuilder::DoFastLiteral(HFastLiteral* instr) { | 
|  | 2216   LOperand* context = UseFixed(instr->context(), esi); | 
|  | 2217   return MarkAsCall( | 
|  | 2218       DefineFixed(new(zone()) LFastLiteral(context), eax), instr); | 
|  | 2219 } | 
|  | 2220 | 
|  | 2221 | 
| 2215 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { | 2222 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { | 
| 2216   LOperand* context = UseFixed(instr->context(), esi); | 2223   LOperand* context = UseFixed(instr->context(), esi); | 
| 2217   return MarkAsCall( | 2224   return MarkAsCall( | 
| 2218       DefineFixed(new(zone()) LArrayLiteral(context), eax), instr); | 2225       DefineFixed(new(zone()) LArrayLiteral(context), eax), instr); | 
| 2219 } | 2226 } | 
| 2220 | 2227 | 
| 2221 | 2228 | 
| 2222 LInstruction* LChunkBuilder::DoObjectLiteralFast(HObjectLiteralFast* instr) { | 2229 LInstruction* LChunkBuilder::DoObjectLiteral(HObjectLiteral* instr) { | 
| 2223   LOperand* context = UseFixed(instr->context(), esi); | 2230   LOperand* context = UseFixed(instr->context(), esi); | 
| 2224   return MarkAsCall( | 2231   return MarkAsCall( | 
| 2225       DefineFixed(new(zone()) LObjectLiteralFast(context), eax), instr); | 2232       DefineFixed(new(zone()) LObjectLiteral(context), eax), instr); | 
| 2226 } | 2233 } | 
| 2227 | 2234 | 
| 2228 | 2235 | 
| 2229 LInstruction* LChunkBuilder::DoObjectLiteralGeneric( |  | 
| 2230     HObjectLiteralGeneric* instr) { |  | 
| 2231   LOperand* context = UseFixed(instr->context(), esi); |  | 
| 2232   return MarkAsCall( |  | 
| 2233       DefineFixed(new(zone()) LObjectLiteralGeneric(context), eax), instr); |  | 
| 2234 } |  | 
| 2235 |  | 
| 2236 |  | 
| 2237 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { | 2236 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { | 
| 2238   LOperand* context = UseFixed(instr->context(), esi); | 2237   LOperand* context = UseFixed(instr->context(), esi); | 
| 2239   return MarkAsCall( | 2238   return MarkAsCall( | 
| 2240       DefineFixed(new(zone()) LRegExpLiteral(context), eax), instr); | 2239       DefineFixed(new(zone()) LRegExpLiteral(context), eax), instr); | 
| 2241 } | 2240 } | 
| 2242 | 2241 | 
| 2243 | 2242 | 
| 2244 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) { | 2243 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) { | 
| 2245   LOperand* context = UseFixed(instr->context(), esi); | 2244   LOperand* context = UseFixed(instr->context(), esi); | 
| 2246   return MarkAsCall( | 2245   return MarkAsCall( | 
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2405   LOperand* key = UseOrConstantAtStart(instr->key()); | 2404   LOperand* key = UseOrConstantAtStart(instr->key()); | 
| 2406   LOperand* object = UseOrConstantAtStart(instr->object()); | 2405   LOperand* object = UseOrConstantAtStart(instr->object()); | 
| 2407   LIn* result = new(zone()) LIn(context, key, object); | 2406   LIn* result = new(zone()) LIn(context, key, object); | 
| 2408   return MarkAsCall(DefineFixed(result, eax), instr); | 2407   return MarkAsCall(DefineFixed(result, eax), instr); | 
| 2409 } | 2408 } | 
| 2410 | 2409 | 
| 2411 | 2410 | 
| 2412 } }  // namespace v8::internal | 2411 } }  // namespace v8::internal | 
| 2413 | 2412 | 
| 2414 #endif  // V8_TARGET_ARCH_IA32 | 2413 #endif  // V8_TARGET_ARCH_IA32 | 
| OLD | NEW | 
|---|