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 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1085 | 1085 |
1086 LInstruction* LChunkBuilder::DoInstanceOfKnownGlobal( | 1086 LInstruction* LChunkBuilder::DoInstanceOfKnownGlobal( |
1087 HInstanceOfKnownGlobal* instr) { | 1087 HInstanceOfKnownGlobal* instr) { |
1088 LInstanceOfKnownGlobal* result = | 1088 LInstanceOfKnownGlobal* result = |
1089 new(zone()) LInstanceOfKnownGlobal(UseFixed(instr->left(), rax), | 1089 new(zone()) LInstanceOfKnownGlobal(UseFixed(instr->left(), rax), |
1090 FixedTemp(rdi)); | 1090 FixedTemp(rdi)); |
1091 return MarkAsCall(DefineFixed(result, rax), instr); | 1091 return MarkAsCall(DefineFixed(result, rax), instr); |
1092 } | 1092 } |
1093 | 1093 |
1094 | 1094 |
1095 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | |
1096 LOperand* receiver = UseRegisterAtStart(instr->receiver()); | |
fschneider
2012/03/12 10:13:32
I think it does not matter with DefineSameAsFirst,
| |
1097 LOperand* function = UseRegisterAtStart(instr->function()); | |
1098 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); | |
1099 return AssignEnvironment(DefineSameAsFirst(result)); | |
1100 } | |
1101 | |
1102 | |
1095 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { | 1103 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { |
1096 LOperand* function = UseFixed(instr->function(), rdi); | 1104 LOperand* function = UseFixed(instr->function(), rdi); |
1097 LOperand* receiver = UseFixed(instr->receiver(), rax); | 1105 LOperand* receiver = UseFixed(instr->receiver(), rax); |
1098 LOperand* length = UseFixed(instr->length(), rbx); | 1106 LOperand* length = UseFixed(instr->length(), rbx); |
1099 LOperand* elements = UseFixed(instr->elements(), rcx); | 1107 LOperand* elements = UseFixed(instr->elements(), rcx); |
1100 LApplyArguments* result = new(zone()) LApplyArguments(function, | 1108 LApplyArguments* result = new(zone()) LApplyArguments(function, |
1101 receiver, | 1109 receiver, |
1102 length, | 1110 length, |
1103 elements); | 1111 elements); |
1104 return MarkAsCall(DefineFixed(result, rax), instr, CAN_DEOPTIMIZE_EAGERLY); | 1112 return MarkAsCall(DefineFixed(result, rax), instr, CAN_DEOPTIMIZE_EAGERLY); |
(...skipping 1196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2301 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2309 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2302 LOperand* object = UseRegister(instr->object()); | 2310 LOperand* object = UseRegister(instr->object()); |
2303 LOperand* index = UseTempRegister(instr->index()); | 2311 LOperand* index = UseTempRegister(instr->index()); |
2304 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2312 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2305 } | 2313 } |
2306 | 2314 |
2307 | 2315 |
2308 } } // namespace v8::internal | 2316 } } // namespace v8::internal |
2309 | 2317 |
2310 #endif // V8_TARGET_ARCH_X64 | 2318 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |