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 2137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2148 } | 2148 } |
2149 | 2149 |
2150 | 2150 |
2151 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( | 2151 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( |
2152 HLoadFunctionPrototype* instr) { | 2152 HLoadFunctionPrototype* instr) { |
2153 return AssignEnvironment(DefineAsRegister( | 2153 return AssignEnvironment(DefineAsRegister( |
2154 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function())))); | 2154 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function())))); |
2155 } | 2155 } |
2156 | 2156 |
2157 | 2157 |
2158 LInstruction* LChunkBuilder::DoLoadElements(HLoadElements* instr) { | |
2159 LOperand* input = UseRegisterAtStart(instr->value()); | |
2160 return DefineAsRegister(new(zone()) LLoadElements(input)); | |
2161 } | |
2162 | |
2163 | |
2164 LInstruction* LChunkBuilder::DoLoadExternalArrayPointer( | 2158 LInstruction* LChunkBuilder::DoLoadExternalArrayPointer( |
2165 HLoadExternalArrayPointer* instr) { | 2159 HLoadExternalArrayPointer* instr) { |
2166 LOperand* input = UseRegisterAtStart(instr->value()); | 2160 LOperand* input = UseRegisterAtStart(instr->value()); |
2167 return DefineAsRegister(new(zone()) LLoadExternalArrayPointer(input)); | 2161 return DefineAsRegister(new(zone()) LLoadExternalArrayPointer(input)); |
2168 } | 2162 } |
2169 | 2163 |
2170 | 2164 |
2171 LInstruction* LChunkBuilder::DoLoadKeyed(HLoadKeyed* instr) { | 2165 LInstruction* LChunkBuilder::DoLoadKeyed(HLoadKeyed* instr) { |
2172 ASSERT(instr->key()->representation().IsInteger32() || | 2166 ASSERT(instr->key()->representation().IsInteger32() || |
2173 instr->key()->representation().IsTagged()); | 2167 instr->key()->representation().IsTagged()); |
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2627 | 2621 |
2628 | 2622 |
2629 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2623 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2630 LOperand* object = UseRegister(instr->object()); | 2624 LOperand* object = UseRegister(instr->object()); |
2631 LOperand* index = UseRegister(instr->index()); | 2625 LOperand* index = UseRegister(instr->index()); |
2632 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2626 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2633 } | 2627 } |
2634 | 2628 |
2635 | 2629 |
2636 } } // namespace v8::internal | 2630 } } // namespace v8::internal |
OLD | NEW |