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 2047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2058 } | 2058 } |
2059 | 2059 |
2060 | 2060 |
2061 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( | 2061 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( |
2062 HLoadFunctionPrototype* instr) { | 2062 HLoadFunctionPrototype* instr) { |
2063 return AssignEnvironment(DefineAsRegister( | 2063 return AssignEnvironment(DefineAsRegister( |
2064 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function())))); | 2064 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function())))); |
2065 } | 2065 } |
2066 | 2066 |
2067 | 2067 |
2068 LInstruction* LChunkBuilder::DoLoadElements(HLoadElements* instr) { | |
2069 LOperand* input = UseRegisterAtStart(instr->value()); | |
2070 return DefineAsRegister(new(zone()) LLoadElements(input)); | |
2071 } | |
2072 | |
2073 | |
2074 LInstruction* LChunkBuilder::DoLoadExternalArrayPointer( | 2068 LInstruction* LChunkBuilder::DoLoadExternalArrayPointer( |
2075 HLoadExternalArrayPointer* instr) { | 2069 HLoadExternalArrayPointer* instr) { |
2076 LOperand* input = UseRegisterAtStart(instr->value()); | 2070 LOperand* input = UseRegisterAtStart(instr->value()); |
2077 return DefineAsRegister(new(zone()) LLoadExternalArrayPointer(input)); | 2071 return DefineAsRegister(new(zone()) LLoadExternalArrayPointer(input)); |
2078 } | 2072 } |
2079 | 2073 |
2080 | 2074 |
2081 LInstruction* LChunkBuilder::DoLoadKeyed(HLoadKeyed* instr) { | 2075 LInstruction* LChunkBuilder::DoLoadKeyed(HLoadKeyed* instr) { |
2082 ASSERT(instr->key()->representation().IsInteger32() || | 2076 ASSERT(instr->key()->representation().IsInteger32() || |
2083 instr->key()->representation().IsTagged()); | 2077 instr->key()->representation().IsTagged()); |
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2562 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2556 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2563 LOperand* object = UseRegister(instr->object()); | 2557 LOperand* object = UseRegister(instr->object()); |
2564 LOperand* index = UseTempRegister(instr->index()); | 2558 LOperand* index = UseTempRegister(instr->index()); |
2565 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2559 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2566 } | 2560 } |
2567 | 2561 |
2568 | 2562 |
2569 } } // namespace v8::internal | 2563 } } // namespace v8::internal |
2570 | 2564 |
2571 #endif // V8_TARGET_ARCH_X64 | 2565 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |