| 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 953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 964 | 964 |
| 965 | 965 |
| 966 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 966 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
| 967 LOperand* receiver = UseRegisterAtStart(instr->receiver()); | 967 LOperand* receiver = UseRegisterAtStart(instr->receiver()); |
| 968 LOperand* function = UseRegisterAtStart(instr->function()); | 968 LOperand* function = UseRegisterAtStart(instr->function()); |
| 969 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); | 969 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); |
| 970 return AssignEnvironment(DefineSameAsFirst(result)); | 970 return AssignEnvironment(DefineSameAsFirst(result)); |
| 971 } | 971 } |
| 972 | 972 |
| 973 | 973 |
| 974 LInstruction* LChunkBuilder::DoSsiDefinition(HSsiDefinition* instr) { |
| 975 UNREACHABLE(); |
| 976 return NULL; |
| 977 } |
| 978 |
| 979 |
| 974 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { | 980 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { |
| 975 LOperand* function = UseFixed(instr->function(), r1); | 981 LOperand* function = UseFixed(instr->function(), r1); |
| 976 LOperand* receiver = UseFixed(instr->receiver(), r0); | 982 LOperand* receiver = UseFixed(instr->receiver(), r0); |
| 977 LOperand* length = UseFixed(instr->length(), r2); | 983 LOperand* length = UseFixed(instr->length(), r2); |
| 978 LOperand* elements = UseFixed(instr->elements(), r3); | 984 LOperand* elements = UseFixed(instr->elements(), r3); |
| 979 LApplyArguments* result = new(zone()) LApplyArguments(function, | 985 LApplyArguments* result = new(zone()) LApplyArguments(function, |
| 980 receiver, | 986 receiver, |
| 981 length, | 987 length, |
| 982 elements); | 988 elements); |
| 983 return MarkAsCall(DefineFixed(result, r0), instr, CAN_DEOPTIMIZE_EAGERLY); | 989 return MarkAsCall(DefineFixed(result, r0), instr, CAN_DEOPTIMIZE_EAGERLY); |
| (...skipping 1415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2399 | 2405 |
| 2400 | 2406 |
| 2401 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2407 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2402 LOperand* object = UseRegister(instr->object()); | 2408 LOperand* object = UseRegister(instr->object()); |
| 2403 LOperand* index = UseRegister(instr->index()); | 2409 LOperand* index = UseRegister(instr->index()); |
| 2404 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2410 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2405 } | 2411 } |
| 2406 | 2412 |
| 2407 | 2413 |
| 2408 } } // namespace v8::internal | 2414 } } // namespace v8::internal |
| OLD | NEW |