| 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 831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 842 ASSERT(instr->left()->representation().IsTagged()); | 842 ASSERT(instr->left()->representation().IsTagged()); |
| 843 ASSERT(instr->right()->representation().IsTagged()); | 843 ASSERT(instr->right()->representation().IsTagged()); |
| 844 | 844 |
| 845 LOperand* left = UseFixed(instr->left(), r1); | 845 LOperand* left = UseFixed(instr->left(), r1); |
| 846 LOperand* right = UseFixed(instr->right(), r0); | 846 LOperand* right = UseFixed(instr->right(), r0); |
| 847 LArithmeticT* result = new LArithmeticT(op, left, right); | 847 LArithmeticT* result = new LArithmeticT(op, left, right); |
| 848 return MarkAsCall(DefineFixed(result, r0), instr); | 848 return MarkAsCall(DefineFixed(result, r0), instr); |
| 849 } | 849 } |
| 850 | 850 |
| 851 ASSERT(instr->representation().IsInteger32()); | 851 ASSERT(instr->representation().IsInteger32()); |
| 852 ASSERT(instr->OperandAt(0)->representation().IsInteger32()); | 852 ASSERT(instr->left()->representation().IsInteger32()); |
| 853 ASSERT(instr->OperandAt(1)->representation().IsInteger32()); | 853 ASSERT(instr->right()->representation().IsInteger32()); |
| 854 LOperand* left = UseRegisterAtStart(instr->OperandAt(0)); | 854 LOperand* left = UseRegisterAtStart(instr->left()); |
| 855 | 855 |
| 856 HValue* right_value = instr->OperandAt(1); | 856 HValue* right_value = instr->right(); |
| 857 LOperand* right = NULL; | 857 LOperand* right = NULL; |
| 858 int constant_value = 0; | 858 int constant_value = 0; |
| 859 if (right_value->IsConstant()) { | 859 if (right_value->IsConstant()) { |
| 860 HConstant* constant = HConstant::cast(right_value); | 860 HConstant* constant = HConstant::cast(right_value); |
| 861 right = chunk_->DefineConstantOperand(constant); | 861 right = chunk_->DefineConstantOperand(constant); |
| 862 constant_value = constant->Integer32Value() & 0x1f; | 862 constant_value = constant->Integer32Value() & 0x1f; |
| 863 } else { | 863 } else { |
| 864 right = UseRegister(right_value); | 864 right = UseRegister(right_value); |
| 865 } | 865 } |
| 866 | 866 |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1146 LInstanceOf* result = | 1146 LInstanceOf* result = |
| 1147 new LInstanceOf(UseFixed(instr->left(), r0), | 1147 new LInstanceOf(UseFixed(instr->left(), r0), |
| 1148 UseFixed(instr->right(), r1)); | 1148 UseFixed(instr->right(), r1)); |
| 1149 return MarkAsCall(DefineFixed(result, r0), instr); | 1149 return MarkAsCall(DefineFixed(result, r0), instr); |
| 1150 } | 1150 } |
| 1151 | 1151 |
| 1152 | 1152 |
| 1153 LInstruction* LChunkBuilder::DoInstanceOfKnownGlobal( | 1153 LInstruction* LChunkBuilder::DoInstanceOfKnownGlobal( |
| 1154 HInstanceOfKnownGlobal* instr) { | 1154 HInstanceOfKnownGlobal* instr) { |
| 1155 LInstanceOfKnownGlobal* result = | 1155 LInstanceOfKnownGlobal* result = |
| 1156 new LInstanceOfKnownGlobal(UseFixed(instr->value(), r0), FixedTemp(r4)); | 1156 new LInstanceOfKnownGlobal(UseFixed(instr->left(), r0), FixedTemp(r4)); |
| 1157 return MarkAsCall(DefineFixed(result, r0), instr); | 1157 return MarkAsCall(DefineFixed(result, r0), instr); |
| 1158 } | 1158 } |
| 1159 | 1159 |
| 1160 | 1160 |
| 1161 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { | 1161 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { |
| 1162 LOperand* function = UseFixed(instr->function(), r1); | 1162 LOperand* function = UseFixed(instr->function(), r1); |
| 1163 LOperand* receiver = UseFixed(instr->receiver(), r0); | 1163 LOperand* receiver = UseFixed(instr->receiver(), r0); |
| 1164 LOperand* length = UseFixed(instr->length(), r2); | 1164 LOperand* length = UseFixed(instr->length(), r2); |
| 1165 LOperand* elements = UseFixed(instr->elements(), r3); | 1165 LOperand* elements = UseFixed(instr->elements(), r3); |
| 1166 LApplyArguments* result = new LApplyArguments(function, | 1166 LApplyArguments* result = new LApplyArguments(function, |
| (...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2234 | 2234 |
| 2235 LInstruction* LChunkBuilder::DoIn(HIn* instr) { | 2235 LInstruction* LChunkBuilder::DoIn(HIn* instr) { |
| 2236 LOperand* key = UseRegisterAtStart(instr->key()); | 2236 LOperand* key = UseRegisterAtStart(instr->key()); |
| 2237 LOperand* object = UseRegisterAtStart(instr->object()); | 2237 LOperand* object = UseRegisterAtStart(instr->object()); |
| 2238 LIn* result = new LIn(key, object); | 2238 LIn* result = new LIn(key, object); |
| 2239 return MarkAsCall(DefineFixed(result, r0), instr); | 2239 return MarkAsCall(DefineFixed(result, r0), instr); |
| 2240 } | 2240 } |
| 2241 | 2241 |
| 2242 | 2242 |
| 2243 } } // namespace v8::internal | 2243 } } // namespace v8::internal |
| OLD | NEW |