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 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1150 MarkAsSaveDoubles(result); | 1150 MarkAsSaveDoubles(result); |
1151 return AssignEnvironment(AssignPointerMap(DefineFixed(result, eax))); | 1151 return AssignEnvironment(AssignPointerMap(DefineFixed(result, eax))); |
1152 } | 1152 } |
1153 | 1153 |
1154 | 1154 |
1155 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { | 1155 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { |
1156 LOperand* function = UseFixed(instr->function(), edi); | 1156 LOperand* function = UseFixed(instr->function(), edi); |
1157 LOperand* receiver = UseFixed(instr->receiver(), eax); | 1157 LOperand* receiver = UseFixed(instr->receiver(), eax); |
1158 LOperand* length = UseRegisterAtStart(instr->length()); | 1158 LOperand* length = UseRegisterAtStart(instr->length()); |
1159 LOperand* elements = UseRegisterAtStart(instr->elements()); | 1159 LOperand* elements = UseRegisterAtStart(instr->elements()); |
| 1160 LOperand* temp = FixedTemp(ebx); |
1160 LApplyArguments* result = new LApplyArguments(function, | 1161 LApplyArguments* result = new LApplyArguments(function, |
1161 receiver, | 1162 receiver, |
1162 length, | 1163 length, |
1163 elements); | 1164 elements, |
| 1165 temp); |
1164 return MarkAsCall(DefineFixed(result, eax), instr, CAN_DEOPTIMIZE_EAGERLY); | 1166 return MarkAsCall(DefineFixed(result, eax), instr, CAN_DEOPTIMIZE_EAGERLY); |
1165 } | 1167 } |
1166 | 1168 |
1167 | 1169 |
1168 LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) { | 1170 LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) { |
1169 ++argument_count_; | 1171 ++argument_count_; |
1170 LOperand* argument = UseOrConstant(instr->argument()); | 1172 LOperand* argument = UseOrConstant(instr->argument()); |
1171 return new LPushArgument(argument); | 1173 return new LPushArgument(argument); |
1172 } | 1174 } |
1173 | 1175 |
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1989 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 1991 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
1990 HEnvironment* outer = current_block_->last_environment()->outer(); | 1992 HEnvironment* outer = current_block_->last_environment()->outer(); |
1991 current_block_->UpdateEnvironment(outer); | 1993 current_block_->UpdateEnvironment(outer); |
1992 return NULL; | 1994 return NULL; |
1993 } | 1995 } |
1994 | 1996 |
1995 | 1997 |
1996 } } // namespace v8::internal | 1998 } } // namespace v8::internal |
1997 | 1999 |
1998 #endif // V8_TARGET_ARCH_IA32 | 2000 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |