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 2011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2022 } | 2022 } |
2023 | 2023 |
2024 | 2024 |
2025 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( | 2025 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( |
2026 HLoadFunctionPrototype* instr) { | 2026 HLoadFunctionPrototype* instr) { |
2027 return AssignEnvironment(DefineAsRegister( | 2027 return AssignEnvironment(DefineAsRegister( |
2028 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function())))); | 2028 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function())))); |
2029 } | 2029 } |
2030 | 2030 |
2031 | 2031 |
2032 LInstruction* LChunkBuilder::DoLoadElements(HLoadElements* instr) { | |
2033 LOperand* input = UseRegisterAtStart(instr->value()); | |
2034 return DefineAsRegister(new(zone()) LLoadElements(input)); | |
2035 } | |
2036 | |
2037 | |
2038 LInstruction* LChunkBuilder::DoLoadExternalArrayPointer( | 2032 LInstruction* LChunkBuilder::DoLoadExternalArrayPointer( |
2039 HLoadExternalArrayPointer* instr) { | 2033 HLoadExternalArrayPointer* instr) { |
2040 LOperand* input = UseRegisterAtStart(instr->value()); | 2034 LOperand* input = UseRegisterAtStart(instr->value()); |
2041 return DefineAsRegister(new(zone()) LLoadExternalArrayPointer(input)); | 2035 return DefineAsRegister(new(zone()) LLoadExternalArrayPointer(input)); |
2042 } | 2036 } |
2043 | 2037 |
2044 | 2038 |
2045 LInstruction* LChunkBuilder::DoLoadKeyed(HLoadKeyed* instr) { | 2039 LInstruction* LChunkBuilder::DoLoadKeyed(HLoadKeyed* instr) { |
2046 ASSERT(instr->key()->representation().IsInteger32() || | 2040 ASSERT(instr->key()->representation().IsInteger32() || |
2047 instr->key()->representation().IsTagged()); | 2041 instr->key()->representation().IsTagged()); |
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2502 | 2496 |
2503 | 2497 |
2504 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2498 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2505 LOperand* object = UseRegister(instr->object()); | 2499 LOperand* object = UseRegister(instr->object()); |
2506 LOperand* index = UseRegister(instr->index()); | 2500 LOperand* index = UseRegister(instr->index()); |
2507 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2501 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2508 } | 2502 } |
2509 | 2503 |
2510 | 2504 |
2511 } } // namespace v8::internal | 2505 } } // namespace v8::internal |
OLD | NEW |