| 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 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1067 | 1067 |
| 1068 LInstruction* LChunkBuilder::DoInstanceOfKnownGlobal( | 1068 LInstruction* LChunkBuilder::DoInstanceOfKnownGlobal( |
| 1069 HInstanceOfKnownGlobal* instr) { | 1069 HInstanceOfKnownGlobal* instr) { |
| 1070 LInstanceOfKnownGlobal* result = | 1070 LInstanceOfKnownGlobal* result = |
| 1071 new(zone()) LInstanceOfKnownGlobal(UseFixed(instr->left(), rax), | 1071 new(zone()) LInstanceOfKnownGlobal(UseFixed(instr->left(), rax), |
| 1072 FixedTemp(rdi)); | 1072 FixedTemp(rdi)); |
| 1073 return MarkAsCall(DefineFixed(result, rax), instr); | 1073 return MarkAsCall(DefineFixed(result, rax), instr); |
| 1074 } | 1074 } |
| 1075 | 1075 |
| 1076 | 1076 |
| 1077 LInstruction* LChunkBuilder::DoInstanceSize(HInstanceSize* instr) { | |
| 1078 LOperand* object = UseRegisterAtStart(instr->object()); | |
| 1079 return DefineAsRegister(new(zone()) LInstanceSize(object)); | |
| 1080 } | |
| 1081 | |
| 1082 | |
| 1083 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 1077 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
| 1084 LOperand* receiver = UseRegister(instr->receiver()); | 1078 LOperand* receiver = UseRegister(instr->receiver()); |
| 1085 LOperand* function = UseRegisterAtStart(instr->function()); | 1079 LOperand* function = UseRegisterAtStart(instr->function()); |
| 1086 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); | 1080 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); |
| 1087 return AssignEnvironment(DefineSameAsFirst(result)); | 1081 return AssignEnvironment(DefineSameAsFirst(result)); |
| 1088 } | 1082 } |
| 1089 | 1083 |
| 1090 | 1084 |
| 1091 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { | 1085 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { |
| 1092 LOperand* function = UseFixed(instr->function(), rdi); | 1086 LOperand* function = UseFixed(instr->function(), rdi); |
| (...skipping 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2553 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2547 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2554 LOperand* object = UseRegister(instr->object()); | 2548 LOperand* object = UseRegister(instr->object()); |
| 2555 LOperand* index = UseTempRegister(instr->index()); | 2549 LOperand* index = UseTempRegister(instr->index()); |
| 2556 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2550 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2557 } | 2551 } |
| 2558 | 2552 |
| 2559 | 2553 |
| 2560 } } // namespace v8::internal | 2554 } } // namespace v8::internal |
| 2561 | 2555 |
| 2562 #endif // V8_TARGET_ARCH_X64 | 2556 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |