| 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 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 829 ASSERT(instr->left()->representation().IsTagged()); | 829 ASSERT(instr->left()->representation().IsTagged()); |
| 830 ASSERT(instr->right()->representation().IsTagged()); | 830 ASSERT(instr->right()->representation().IsTagged()); |
| 831 | 831 |
| 832 LOperand* left = UseFixed(instr->left(), r1); | 832 LOperand* left = UseFixed(instr->left(), r1); |
| 833 LOperand* right = UseFixed(instr->right(), r0); | 833 LOperand* right = UseFixed(instr->right(), r0); |
| 834 LArithmeticT* result = new LArithmeticT(op, left, right); | 834 LArithmeticT* result = new LArithmeticT(op, left, right); |
| 835 return MarkAsCall(DefineFixed(result, r0), instr); | 835 return MarkAsCall(DefineFixed(result, r0), instr); |
| 836 } | 836 } |
| 837 | 837 |
| 838 ASSERT(instr->representation().IsInteger32()); | 838 ASSERT(instr->representation().IsInteger32()); |
| 839 ASSERT(instr->OperandAt(0)->representation().IsInteger32()); | 839 ASSERT(instr->left()->representation().IsInteger32()); |
| 840 ASSERT(instr->OperandAt(1)->representation().IsInteger32()); | 840 ASSERT(instr->right()->representation().IsInteger32()); |
| 841 LOperand* left = UseRegisterAtStart(instr->OperandAt(0)); | 841 LOperand* left = UseRegisterAtStart(instr->left()); |
| 842 | 842 |
| 843 HValue* right_value = instr->OperandAt(1); | 843 HValue* right_value = instr->right(); |
| 844 LOperand* right = NULL; | 844 LOperand* right = NULL; |
| 845 int constant_value = 0; | 845 int constant_value = 0; |
| 846 if (right_value->IsConstant()) { | 846 if (right_value->IsConstant()) { |
| 847 HConstant* constant = HConstant::cast(right_value); | 847 HConstant* constant = HConstant::cast(right_value); |
| 848 right = chunk_->DefineConstantOperand(constant); | 848 right = chunk_->DefineConstantOperand(constant); |
| 849 constant_value = constant->Integer32Value() & 0x1f; | 849 constant_value = constant->Integer32Value() & 0x1f; |
| 850 } else { | 850 } else { |
| 851 right = UseRegisterAtStart(right_value); | 851 right = UseRegisterAtStart(right_value); |
| 852 } | 852 } |
| 853 | 853 |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1057 LInstanceOf* result = | 1057 LInstanceOf* result = |
| 1058 new LInstanceOf(UseFixed(instr->left(), r0), | 1058 new LInstanceOf(UseFixed(instr->left(), r0), |
| 1059 UseFixed(instr->right(), r1)); | 1059 UseFixed(instr->right(), r1)); |
| 1060 return MarkAsCall(DefineFixed(result, r0), instr); | 1060 return MarkAsCall(DefineFixed(result, r0), instr); |
| 1061 } | 1061 } |
| 1062 | 1062 |
| 1063 | 1063 |
| 1064 LInstruction* LChunkBuilder::DoInstanceOfKnownGlobal( | 1064 LInstruction* LChunkBuilder::DoInstanceOfKnownGlobal( |
| 1065 HInstanceOfKnownGlobal* instr) { | 1065 HInstanceOfKnownGlobal* instr) { |
| 1066 LInstanceOfKnownGlobal* result = | 1066 LInstanceOfKnownGlobal* result = |
| 1067 new LInstanceOfKnownGlobal(UseFixed(instr->value(), r0), FixedTemp(r4)); | 1067 new LInstanceOfKnownGlobal(UseFixed(instr->left(), r0), FixedTemp(r4)); |
| 1068 return MarkAsCall(DefineFixed(result, r0), instr); | 1068 return MarkAsCall(DefineFixed(result, r0), instr); |
| 1069 } | 1069 } |
| 1070 | 1070 |
| 1071 | 1071 |
| 1072 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { | 1072 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { |
| 1073 LOperand* function = UseFixed(instr->function(), r1); | 1073 LOperand* function = UseFixed(instr->function(), r1); |
| 1074 LOperand* receiver = UseFixed(instr->receiver(), r0); | 1074 LOperand* receiver = UseFixed(instr->receiver(), r0); |
| 1075 LOperand* length = UseFixed(instr->length(), r2); | 1075 LOperand* length = UseFixed(instr->length(), r2); |
| 1076 LOperand* elements = UseFixed(instr->elements(), r3); | 1076 LOperand* elements = UseFixed(instr->elements(), r3); |
| 1077 LApplyArguments* result = new LApplyArguments(function, | 1077 LApplyArguments* result = new LApplyArguments(function, |
| (...skipping 1075 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2153 | 2153 |
| 2154 LInstruction* LChunkBuilder::DoIn(HIn* instr) { | 2154 LInstruction* LChunkBuilder::DoIn(HIn* instr) { |
| 2155 LOperand* key = UseRegisterAtStart(instr->key()); | 2155 LOperand* key = UseRegisterAtStart(instr->key()); |
| 2156 LOperand* object = UseRegisterAtStart(instr->object()); | 2156 LOperand* object = UseRegisterAtStart(instr->object()); |
| 2157 LIn* result = new LIn(key, object); | 2157 LIn* result = new LIn(key, object); |
| 2158 return MarkAsCall(DefineFixed(result, r0), instr); | 2158 return MarkAsCall(DefineFixed(result, r0), instr); |
| 2159 } | 2159 } |
| 2160 | 2160 |
| 2161 | 2161 |
| 2162 } } // namespace v8::internal | 2162 } } // namespace v8::internal |
| OLD | NEW |