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 1311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1322 LInstruction* LChunkBuilder::DoBitXor(HBitXor* instr) { | 1322 LInstruction* LChunkBuilder::DoBitXor(HBitXor* instr) { |
1323 return DoBit(Token::BIT_XOR, instr); | 1323 return DoBit(Token::BIT_XOR, instr); |
1324 } | 1324 } |
1325 | 1325 |
1326 | 1326 |
1327 LInstruction* LChunkBuilder::DoDiv(HDiv* instr) { | 1327 LInstruction* LChunkBuilder::DoDiv(HDiv* instr) { |
1328 if (instr->representation().IsDouble()) { | 1328 if (instr->representation().IsDouble()) { |
1329 return DoArithmeticD(Token::DIV, instr); | 1329 return DoArithmeticD(Token::DIV, instr); |
1330 } else if (instr->representation().IsInteger32()) { | 1330 } else if (instr->representation().IsInteger32()) { |
1331 // TODO(1042) The fixed register allocation | 1331 // TODO(1042) The fixed register allocation |
1332 // is needed because we call GenericBinaryOpStub from | 1332 // is needed because we call TypeRecordingBinaryOpStub from |
1333 // the generated code, which requires registers r0 | 1333 // the generated code, which requires registers r0 |
1334 // and r1 to be used. We should remove that | 1334 // and r1 to be used. We should remove that |
1335 // when we provide a native implementation. | 1335 // when we provide a native implementation. |
1336 LOperand* dividend = UseFixed(instr->left(), r0); | 1336 LOperand* dividend = UseFixed(instr->left(), r0); |
1337 LOperand* divisor = UseFixed(instr->right(), r1); | 1337 LOperand* divisor = UseFixed(instr->right(), r1); |
1338 return AssignEnvironment(AssignPointerMap( | 1338 return AssignEnvironment(AssignPointerMap( |
1339 DefineFixed(new LDivI(dividend, divisor), r0))); | 1339 DefineFixed(new LDivI(dividend, divisor), r0))); |
1340 } else { | 1340 } else { |
1341 return DoArithmeticT(Token::DIV, instr); | 1341 return DoArithmeticT(Token::DIV, instr); |
1342 } | 1342 } |
(...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2111 | 2111 |
2112 | 2112 |
2113 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2113 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
2114 HEnvironment* outer = current_block_->last_environment()->outer(); | 2114 HEnvironment* outer = current_block_->last_environment()->outer(); |
2115 current_block_->UpdateEnvironment(outer); | 2115 current_block_->UpdateEnvironment(outer); |
2116 return NULL; | 2116 return NULL; |
2117 } | 2117 } |
2118 | 2118 |
2119 | 2119 |
2120 } } // namespace v8::internal | 2120 } } // namespace v8::internal |
OLD | NEW |