| 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 2190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2201 | 2201 |
| 2202 | 2202 |
| 2203 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( | 2203 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( |
| 2204 HLoadFunctionPrototype* instr) { | 2204 HLoadFunctionPrototype* instr) { |
| 2205 return AssignEnvironment(DefineAsRegister( | 2205 return AssignEnvironment(DefineAsRegister( |
| 2206 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function()), | 2206 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function()), |
| 2207 TempRegister()))); | 2207 TempRegister()))); |
| 2208 } | 2208 } |
| 2209 | 2209 |
| 2210 | 2210 |
| 2211 LInstruction* LChunkBuilder::DoLoadRoot(HLoadRoot* instr) { |
| 2212 return DefineAsRegister(new(zone()) LLoadRoot); |
| 2213 } |
| 2214 |
| 2215 |
| 2211 LInstruction* LChunkBuilder::DoLoadExternalArrayPointer( | 2216 LInstruction* LChunkBuilder::DoLoadExternalArrayPointer( |
| 2212 HLoadExternalArrayPointer* instr) { | 2217 HLoadExternalArrayPointer* instr) { |
| 2213 LOperand* input = UseRegisterAtStart(instr->value()); | 2218 LOperand* input = UseRegisterAtStart(instr->value()); |
| 2214 return DefineAsRegister(new(zone()) LLoadExternalArrayPointer(input)); | 2219 return DefineAsRegister(new(zone()) LLoadExternalArrayPointer(input)); |
| 2215 } | 2220 } |
| 2216 | 2221 |
| 2217 | 2222 |
| 2218 LInstruction* LChunkBuilder::DoLoadKeyed(HLoadKeyed* instr) { | 2223 LInstruction* LChunkBuilder::DoLoadKeyed(HLoadKeyed* instr) { |
| 2219 ASSERT(instr->key()->representation().IsSmiOrInteger32()); | 2224 ASSERT(instr->key()->representation().IsSmiOrInteger32()); |
| 2220 ElementsKind elements_kind = instr->elements_kind(); | 2225 ElementsKind elements_kind = instr->elements_kind(); |
| (...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2720 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2725 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2721 LOperand* object = UseRegister(instr->object()); | 2726 LOperand* object = UseRegister(instr->object()); |
| 2722 LOperand* index = UseTempRegister(instr->index()); | 2727 LOperand* index = UseTempRegister(instr->index()); |
| 2723 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2728 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2724 } | 2729 } |
| 2725 | 2730 |
| 2726 | 2731 |
| 2727 } } // namespace v8::internal | 2732 } } // namespace v8::internal |
| 2728 | 2733 |
| 2729 #endif // V8_TARGET_ARCH_IA32 | 2734 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |