| 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 4752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4763 | 4763 |
| 4764 void LCodeGen::DoCheckMaps(LCheckMaps* instr) { | 4764 void LCodeGen::DoCheckMaps(LCheckMaps* instr) { |
| 4765 LOperand* input = instr->value(); | 4765 LOperand* input = instr->value(); |
| 4766 ASSERT(input->IsRegister()); | 4766 ASSERT(input->IsRegister()); |
| 4767 Register reg = ToRegister(input); | 4767 Register reg = ToRegister(input); |
| 4768 | 4768 |
| 4769 Label success; | 4769 Label success; |
| 4770 SmallMapList* map_set = instr->hydrogen()->map_set(); | 4770 SmallMapList* map_set = instr->hydrogen()->map_set(); |
| 4771 for (int i = 0; i < map_set->length() - 1; i++) { | 4771 for (int i = 0; i < map_set->length() - 1; i++) { |
| 4772 Handle<Map> map = map_set->at(i); | 4772 Handle<Map> map = map_set->at(i); |
| 4773 __ CompareMap(reg, map, &success, instr->hydrogen()->mode()); | 4773 __ CompareMap(reg, map, &success, REQUIRE_EXACT_MAP); |
| 4774 __ j(equal, &success); | 4774 __ j(equal, &success); |
| 4775 } | 4775 } |
| 4776 Handle<Map> map = map_set->last(); | 4776 Handle<Map> map = map_set->last(); |
| 4777 DoCheckMapCommon(reg, map, instr->hydrogen()->mode(), instr->environment()); | 4777 DoCheckMapCommon(reg, map, REQUIRE_EXACT_MAP, instr->environment()); |
| 4778 __ bind(&success); | 4778 __ bind(&success); |
| 4779 } | 4779 } |
| 4780 | 4780 |
| 4781 | 4781 |
| 4782 void LCodeGen::DoClampDToUint8(LClampDToUint8* instr) { | 4782 void LCodeGen::DoClampDToUint8(LClampDToUint8* instr) { |
| 4783 XMMRegister value_reg = ToDoubleRegister(instr->unclamped()); | 4783 XMMRegister value_reg = ToDoubleRegister(instr->unclamped()); |
| 4784 Register result_reg = ToRegister(instr->result()); | 4784 Register result_reg = ToRegister(instr->result()); |
| 4785 __ ClampDoubleToUint8(value_reg, xmm0, result_reg); | 4785 __ ClampDoubleToUint8(value_reg, xmm0, result_reg); |
| 4786 } | 4786 } |
| 4787 | 4787 |
| (...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5610 FixedArray::kHeaderSize - kPointerSize)); | 5610 FixedArray::kHeaderSize - kPointerSize)); |
| 5611 __ bind(&done); | 5611 __ bind(&done); |
| 5612 } | 5612 } |
| 5613 | 5613 |
| 5614 | 5614 |
| 5615 #undef __ | 5615 #undef __ |
| 5616 | 5616 |
| 5617 } } // namespace v8::internal | 5617 } } // namespace v8::internal |
| 5618 | 5618 |
| 5619 #endif // V8_TARGET_ARCH_IA32 | 5619 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |