| 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 960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 971 | 971 |
| 972 | 972 |
| 973 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 973 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
| 974 LOperand* receiver = UseRegister(instr->receiver()); | 974 LOperand* receiver = UseRegister(instr->receiver()); |
| 975 LOperand* function = UseRegisterAtStart(instr->function()); | 975 LOperand* function = UseRegisterAtStart(instr->function()); |
| 976 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); | 976 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); |
| 977 return AssignEnvironment(DefineSameAsFirst(result)); | 977 return AssignEnvironment(DefineSameAsFirst(result)); |
| 978 } | 978 } |
| 979 | 979 |
| 980 | 980 |
| 981 LInstruction* LChunkBuilder::DoSsiDefinition(HSsiDefinition* instr) { |
| 982 UNREACHABLE(); |
| 983 return NULL; |
| 984 } |
| 985 |
| 986 |
| 981 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { | 987 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { |
| 982 LOperand* function = UseFixed(instr->function(), rdi); | 988 LOperand* function = UseFixed(instr->function(), rdi); |
| 983 LOperand* receiver = UseFixed(instr->receiver(), rax); | 989 LOperand* receiver = UseFixed(instr->receiver(), rax); |
| 984 LOperand* length = UseFixed(instr->length(), rbx); | 990 LOperand* length = UseFixed(instr->length(), rbx); |
| 985 LOperand* elements = UseFixed(instr->elements(), rcx); | 991 LOperand* elements = UseFixed(instr->elements(), rcx); |
| 986 LApplyArguments* result = new(zone()) LApplyArguments(function, | 992 LApplyArguments* result = new(zone()) LApplyArguments(function, |
| 987 receiver, | 993 receiver, |
| 988 length, | 994 length, |
| 989 elements); | 995 elements); |
| 990 return MarkAsCall(DefineFixed(result, rax), instr, CAN_DEOPTIMIZE_EAGERLY); | 996 return MarkAsCall(DefineFixed(result, rax), instr, CAN_DEOPTIMIZE_EAGERLY); |
| (...skipping 1336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2327 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2333 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2328 LOperand* object = UseRegister(instr->object()); | 2334 LOperand* object = UseRegister(instr->object()); |
| 2329 LOperand* index = UseTempRegister(instr->index()); | 2335 LOperand* index = UseTempRegister(instr->index()); |
| 2330 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2336 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2331 } | 2337 } |
| 2332 | 2338 |
| 2333 | 2339 |
| 2334 } } // namespace v8::internal | 2340 } } // namespace v8::internal |
| 2335 | 2341 |
| 2336 #endif // V8_TARGET_ARCH_X64 | 2342 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |