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 961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
972 | 972 |
973 LInstruction* LChunkBuilder::DoInstanceOfKnownGlobal( | 973 LInstruction* LChunkBuilder::DoInstanceOfKnownGlobal( |
974 HInstanceOfKnownGlobal* instr) { | 974 HInstanceOfKnownGlobal* instr) { |
975 LInstanceOfKnownGlobal* result = | 975 LInstanceOfKnownGlobal* result = |
976 new(zone()) LInstanceOfKnownGlobal(UseFixed(instr->left(), rax), | 976 new(zone()) LInstanceOfKnownGlobal(UseFixed(instr->left(), rax), |
977 FixedTemp(rdi)); | 977 FixedTemp(rdi)); |
978 return MarkAsCall(DefineFixed(result, rax), instr); | 978 return MarkAsCall(DefineFixed(result, rax), instr); |
979 } | 979 } |
980 | 980 |
981 | 981 |
| 982 LInstruction* LChunkBuilder::DoInstanceSize(HInstanceSize* instr) { |
| 983 LOperand* object = UseRegisterAtStart(instr->object()); |
| 984 return DefineAsRegister(new(zone()) LInstanceSize(object)); |
| 985 } |
| 986 |
| 987 |
982 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 988 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
983 LOperand* receiver = UseRegister(instr->receiver()); | 989 LOperand* receiver = UseRegister(instr->receiver()); |
984 LOperand* function = UseRegisterAtStart(instr->function()); | 990 LOperand* function = UseRegisterAtStart(instr->function()); |
985 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); | 991 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); |
986 return AssignEnvironment(DefineSameAsFirst(result)); | 992 return AssignEnvironment(DefineSameAsFirst(result)); |
987 } | 993 } |
988 | 994 |
989 | 995 |
990 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { | 996 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { |
991 LOperand* function = UseFixed(instr->function(), rdi); | 997 LOperand* function = UseFixed(instr->function(), rdi); |
(...skipping 1410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2402 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2408 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2403 LOperand* object = UseRegister(instr->object()); | 2409 LOperand* object = UseRegister(instr->object()); |
2404 LOperand* index = UseTempRegister(instr->index()); | 2410 LOperand* index = UseTempRegister(instr->index()); |
2405 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2411 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2406 } | 2412 } |
2407 | 2413 |
2408 | 2414 |
2409 } } // namespace v8::internal | 2415 } } // namespace v8::internal |
2410 | 2416 |
2411 #endif // V8_TARGET_ARCH_X64 | 2417 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |