OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1133 LInstruction* LChunkBuilder::DoInstanceOfKnownGlobal( | 1133 LInstruction* LChunkBuilder::DoInstanceOfKnownGlobal( |
1134 HInstanceOfKnownGlobal* instr) { | 1134 HInstanceOfKnownGlobal* instr) { |
1135 LInstanceOfKnownGlobal* result = | 1135 LInstanceOfKnownGlobal* result = |
1136 new LInstanceOfKnownGlobal(UseRegisterAtStart(instr->value())); | 1136 new LInstanceOfKnownGlobal(UseRegisterAtStart(instr->value())); |
1137 MarkAsSaveDoubles(result); | 1137 MarkAsSaveDoubles(result); |
1138 return AssignEnvironment(AssignPointerMap(DefineFixed(result, rax))); | 1138 return AssignEnvironment(AssignPointerMap(DefineFixed(result, rax))); |
1139 } | 1139 } |
1140 | 1140 |
1141 | 1141 |
1142 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { | 1142 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { |
1143 Abort("Unimplemented: %s", "DoApplyArguments"); | 1143 LOperand* function = UseFixed(instr->function(), rdi); |
1144 return NULL; | 1144 LOperand* receiver = UseFixed(instr->receiver(), rax); |
| 1145 LOperand* length = UseFixed(instr->length(), rbx); |
| 1146 LOperand* elements = UseFixed(instr->elements(), rcx); |
| 1147 LOperand* temp = FixedTemp(rdx); |
| 1148 LApplyArguments* result = new LApplyArguments(function, |
| 1149 receiver, |
| 1150 length, |
| 1151 elements, |
| 1152 temp); |
| 1153 return MarkAsCall(DefineFixed(result, rax), instr, CAN_DEOPTIMIZE_EAGERLY); |
1145 } | 1154 } |
1146 | 1155 |
1147 | 1156 |
1148 LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) { | 1157 LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) { |
1149 ++argument_count_; | 1158 ++argument_count_; |
1150 LOperand* argument = UseOrConstant(instr->argument()); | 1159 LOperand* argument = UseOrConstant(instr->argument()); |
1151 return new LPushArgument(argument); | 1160 return new LPushArgument(argument); |
1152 } | 1161 } |
1153 | 1162 |
1154 | 1163 |
(...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1931 | 1940 |
1932 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 1941 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
1933 HEnvironment* outer = current_block_->last_environment()->outer(); | 1942 HEnvironment* outer = current_block_->last_environment()->outer(); |
1934 current_block_->UpdateEnvironment(outer); | 1943 current_block_->UpdateEnvironment(outer); |
1935 return NULL; | 1944 return NULL; |
1936 } | 1945 } |
1937 | 1946 |
1938 } } // namespace v8::internal | 1947 } } // namespace v8::internal |
1939 | 1948 |
1940 #endif // V8_TARGET_ARCH_X64 | 1949 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |