| 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 951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 962 | 962 |
| 963 | 963 |
| 964 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 964 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
| 965 LOperand* receiver = UseRegisterAtStart(instr->receiver()); | 965 LOperand* receiver = UseRegisterAtStart(instr->receiver()); |
| 966 LOperand* function = UseRegisterAtStart(instr->function()); | 966 LOperand* function = UseRegisterAtStart(instr->function()); |
| 967 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); | 967 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); |
| 968 return AssignEnvironment(DefineSameAsFirst(result)); | 968 return AssignEnvironment(DefineSameAsFirst(result)); |
| 969 } | 969 } |
| 970 | 970 |
| 971 | 971 |
| 972 LInstruction* LChunkBuilder::DoSsiDefinition(HSsiDefinition* instr) { |
| 973 UNREACHABLE(); |
| 974 return NULL; |
| 975 } |
| 976 |
| 977 |
| 972 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { | 978 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { |
| 973 LOperand* function = UseFixed(instr->function(), a1); | 979 LOperand* function = UseFixed(instr->function(), a1); |
| 974 LOperand* receiver = UseFixed(instr->receiver(), a0); | 980 LOperand* receiver = UseFixed(instr->receiver(), a0); |
| 975 LOperand* length = UseFixed(instr->length(), a2); | 981 LOperand* length = UseFixed(instr->length(), a2); |
| 976 LOperand* elements = UseFixed(instr->elements(), a3); | 982 LOperand* elements = UseFixed(instr->elements(), a3); |
| 977 LApplyArguments* result = new(zone()) LApplyArguments(function, | 983 LApplyArguments* result = new(zone()) LApplyArguments(function, |
| 978 receiver, | 984 receiver, |
| 979 length, | 985 length, |
| 980 elements); | 986 elements); |
| 981 return MarkAsCall(DefineFixed(result, v0), instr, CAN_DEOPTIMIZE_EAGERLY); | 987 return MarkAsCall(DefineFixed(result, v0), instr, CAN_DEOPTIMIZE_EAGERLY); |
| (...skipping 1270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2252 | 2258 |
| 2253 | 2259 |
| 2254 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2260 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2255 LOperand* object = UseRegister(instr->object()); | 2261 LOperand* object = UseRegister(instr->object()); |
| 2256 LOperand* index = UseRegister(instr->index()); | 2262 LOperand* index = UseRegister(instr->index()); |
| 2257 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2263 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2258 } | 2264 } |
| 2259 | 2265 |
| 2260 | 2266 |
| 2261 } } // namespace v8::internal | 2267 } } // namespace v8::internal |
| OLD | NEW |