| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 4723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4734 | 4734 |
| 4735 void LCodeGen::DoCheckMaps(LCheckMaps* instr) { | 4735 void LCodeGen::DoCheckMaps(LCheckMaps* instr) { |
| 4736 LOperand* input = instr->value(); | 4736 LOperand* input = instr->value(); |
| 4737 ASSERT(input->IsRegister()); | 4737 ASSERT(input->IsRegister()); |
| 4738 Register reg = ToRegister(input); | 4738 Register reg = ToRegister(input); |
| 4739 | 4739 |
| 4740 Label success; | 4740 Label success; |
| 4741 SmallMapList* map_set = instr->hydrogen()->map_set(); | 4741 SmallMapList* map_set = instr->hydrogen()->map_set(); |
| 4742 for (int i = 0; i < map_set->length() - 1; i++) { | 4742 for (int i = 0; i < map_set->length() - 1; i++) { |
| 4743 Handle<Map> map = map_set->at(i); | 4743 Handle<Map> map = map_set->at(i); |
| 4744 __ CompareMap(reg, map, &success, REQUIRE_EXACT_MAP); | 4744 __ CompareMap(reg, map, &success, instr->hydrogen()->mode()); |
| 4745 __ j(equal, &success); | 4745 __ j(equal, &success); |
| 4746 } | 4746 } |
| 4747 Handle<Map> map = map_set->last(); | 4747 Handle<Map> map = map_set->last(); |
| 4748 DoCheckMapCommon(reg, map, REQUIRE_EXACT_MAP, instr->environment()); | 4748 DoCheckMapCommon(reg, map, instr->hydrogen()->mode(), instr->environment()); |
| 4749 __ bind(&success); | 4749 __ bind(&success); |
| 4750 } | 4750 } |
| 4751 | 4751 |
| 4752 | 4752 |
| 4753 void LCodeGen::DoClampDToUint8(LClampDToUint8* instr) { | 4753 void LCodeGen::DoClampDToUint8(LClampDToUint8* instr) { |
| 4754 XMMRegister value_reg = ToDoubleRegister(instr->unclamped()); | 4754 XMMRegister value_reg = ToDoubleRegister(instr->unclamped()); |
| 4755 Register result_reg = ToRegister(instr->result()); | 4755 Register result_reg = ToRegister(instr->result()); |
| 4756 __ ClampDoubleToUint8(value_reg, xmm0, result_reg); | 4756 __ ClampDoubleToUint8(value_reg, xmm0, result_reg); |
| 4757 } | 4757 } |
| 4758 | 4758 |
| (...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5581 FixedArray::kHeaderSize - kPointerSize)); | 5581 FixedArray::kHeaderSize - kPointerSize)); |
| 5582 __ bind(&done); | 5582 __ bind(&done); |
| 5583 } | 5583 } |
| 5584 | 5584 |
| 5585 | 5585 |
| 5586 #undef __ | 5586 #undef __ |
| 5587 | 5587 |
| 5588 } } // namespace v8::internal | 5588 } } // namespace v8::internal |
| 5589 | 5589 |
| 5590 #endif // V8_TARGET_ARCH_IA32 | 5590 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |