| 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 4519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4530 | 4530 |
| 4531 void LCodeGen::DoCheckMaps(LCheckMaps* instr) { | 4531 void LCodeGen::DoCheckMaps(LCheckMaps* instr) { |
| 4532 LOperand* input = instr->value(); | 4532 LOperand* input = instr->value(); |
| 4533 ASSERT(input->IsRegister()); | 4533 ASSERT(input->IsRegister()); |
| 4534 Register reg = ToRegister(input); | 4534 Register reg = ToRegister(input); |
| 4535 | 4535 |
| 4536 Label success; | 4536 Label success; |
| 4537 SmallMapList* map_set = instr->hydrogen()->map_set(); | 4537 SmallMapList* map_set = instr->hydrogen()->map_set(); |
| 4538 for (int i = 0; i < map_set->length() - 1; i++) { | 4538 for (int i = 0; i < map_set->length() - 1; i++) { |
| 4539 Handle<Map> map = map_set->at(i); | 4539 Handle<Map> map = map_set->at(i); |
| 4540 __ CompareMap(reg, map, &success, instr->hydrogen()->mode()); | 4540 __ CompareMap(reg, map, &success, REQUIRE_EXACT_MAP); |
| 4541 __ j(equal, &success); | 4541 __ j(equal, &success); |
| 4542 } | 4542 } |
| 4543 Handle<Map> map = map_set->last(); | 4543 Handle<Map> map = map_set->last(); |
| 4544 DoCheckMapCommon(reg, map, instr->hydrogen()->mode(), instr->environment()); | 4544 DoCheckMapCommon(reg, map, REQUIRE_EXACT_MAP, instr->environment()); |
| 4545 __ bind(&success); | 4545 __ bind(&success); |
| 4546 } | 4546 } |
| 4547 | 4547 |
| 4548 | 4548 |
| 4549 void LCodeGen::DoClampDToUint8(LClampDToUint8* instr) { | 4549 void LCodeGen::DoClampDToUint8(LClampDToUint8* instr) { |
| 4550 XMMRegister value_reg = ToDoubleRegister(instr->unclamped()); | 4550 XMMRegister value_reg = ToDoubleRegister(instr->unclamped()); |
| 4551 Register result_reg = ToRegister(instr->result()); | 4551 Register result_reg = ToRegister(instr->result()); |
| 4552 __ ClampDoubleToUint8(value_reg, xmm0, result_reg); | 4552 __ ClampDoubleToUint8(value_reg, xmm0, result_reg); |
| 4553 } | 4553 } |
| 4554 | 4554 |
| (...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5371 FixedArray::kHeaderSize - kPointerSize)); | 5371 FixedArray::kHeaderSize - kPointerSize)); |
| 5372 __ bind(&done); | 5372 __ bind(&done); |
| 5373 } | 5373 } |
| 5374 | 5374 |
| 5375 | 5375 |
| 5376 #undef __ | 5376 #undef __ |
| 5377 | 5377 |
| 5378 } } // namespace v8::internal | 5378 } } // namespace v8::internal |
| 5379 | 5379 |
| 5380 #endif // V8_TARGET_ARCH_X64 | 5380 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |