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 2083 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2094 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function()), | 2094 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function()), |
2095 TempRegister()))); | 2095 TempRegister()))); |
2096 } | 2096 } |
2097 | 2097 |
2098 | 2098 |
2099 LInstruction* LChunkBuilder::DoLoadRoot(HLoadRoot* instr) { | 2099 LInstruction* LChunkBuilder::DoLoadRoot(HLoadRoot* instr) { |
2100 return DefineAsRegister(new(zone()) LLoadRoot); | 2100 return DefineAsRegister(new(zone()) LLoadRoot); |
2101 } | 2101 } |
2102 | 2102 |
2103 | 2103 |
2104 LInstruction* LChunkBuilder::DoLoadExternalArrayPointer( | |
2105 HLoadExternalArrayPointer* instr) { | |
2106 LOperand* input = UseRegisterAtStart(instr->value()); | |
2107 return DefineAsRegister(new(zone()) LLoadExternalArrayPointer(input)); | |
2108 } | |
2109 | |
2110 | |
2111 LInstruction* LChunkBuilder::DoLoadKeyed(HLoadKeyed* instr) { | 2104 LInstruction* LChunkBuilder::DoLoadKeyed(HLoadKeyed* instr) { |
2112 ASSERT(instr->key()->representation().IsSmiOrInteger32()); | 2105 ASSERT(instr->key()->representation().IsSmiOrInteger32()); |
2113 ElementsKind elements_kind = instr->elements_kind(); | 2106 ElementsKind elements_kind = instr->elements_kind(); |
2114 bool clobbers_key = ExternalArrayOpRequiresTemp( | 2107 bool clobbers_key = ExternalArrayOpRequiresTemp( |
2115 instr->key()->representation(), elements_kind); | 2108 instr->key()->representation(), elements_kind); |
2116 LOperand* key = clobbers_key | 2109 LOperand* key = clobbers_key |
2117 ? UseTempRegister(instr->key()) | 2110 ? UseTempRegister(instr->key()) |
2118 : UseRegisterOrConstantAtStart(instr->key()); | 2111 : UseRegisterOrConstantAtStart(instr->key()); |
2119 LLoadKeyed* result = NULL; | 2112 LLoadKeyed* result = NULL; |
2120 | 2113 |
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2618 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2611 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2619 LOperand* object = UseRegister(instr->object()); | 2612 LOperand* object = UseRegister(instr->object()); |
2620 LOperand* index = UseTempRegister(instr->index()); | 2613 LOperand* index = UseTempRegister(instr->index()); |
2621 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2614 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2622 } | 2615 } |
2623 | 2616 |
2624 | 2617 |
2625 } } // namespace v8::internal | 2618 } } // namespace v8::internal |
2626 | 2619 |
2627 #endif // V8_TARGET_ARCH_IA32 | 2620 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |