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 4496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4507 | 4507 |
4508 void LCodeGen::DoCheckMaps(LCheckMaps* instr) { | 4508 void LCodeGen::DoCheckMaps(LCheckMaps* instr) { |
4509 LOperand* input = instr->value(); | 4509 LOperand* input = instr->value(); |
4510 ASSERT(input->IsRegister()); | 4510 ASSERT(input->IsRegister()); |
4511 Register reg = ToRegister(input); | 4511 Register reg = ToRegister(input); |
4512 | 4512 |
4513 Label success; | 4513 Label success; |
4514 SmallMapList* map_set = instr->hydrogen()->map_set(); | 4514 SmallMapList* map_set = instr->hydrogen()->map_set(); |
4515 for (int i = 0; i < map_set->length() - 1; i++) { | 4515 for (int i = 0; i < map_set->length() - 1; i++) { |
4516 Handle<Map> map = map_set->at(i); | 4516 Handle<Map> map = map_set->at(i); |
4517 __ CompareMap(reg, map, &success, REQUIRE_EXACT_MAP); | 4517 __ CompareMap(reg, map, &success, instr->hydrogen()->mode()); |
4518 __ j(equal, &success); | 4518 __ j(equal, &success); |
4519 } | 4519 } |
4520 Handle<Map> map = map_set->last(); | 4520 Handle<Map> map = map_set->last(); |
4521 DoCheckMapCommon(reg, map, REQUIRE_EXACT_MAP, instr->environment()); | 4521 DoCheckMapCommon(reg, map, instr->hydrogen()->mode(), instr->environment()); |
4522 __ bind(&success); | 4522 __ bind(&success); |
4523 } | 4523 } |
4524 | 4524 |
4525 | 4525 |
4526 void LCodeGen::DoClampDToUint8(LClampDToUint8* instr) { | 4526 void LCodeGen::DoClampDToUint8(LClampDToUint8* instr) { |
4527 XMMRegister value_reg = ToDoubleRegister(instr->unclamped()); | 4527 XMMRegister value_reg = ToDoubleRegister(instr->unclamped()); |
4528 Register result_reg = ToRegister(instr->result()); | 4528 Register result_reg = ToRegister(instr->result()); |
4529 __ ClampDoubleToUint8(value_reg, xmm0, result_reg); | 4529 __ ClampDoubleToUint8(value_reg, xmm0, result_reg); |
4530 } | 4530 } |
4531 | 4531 |
(...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5348 FixedArray::kHeaderSize - kPointerSize)); | 5348 FixedArray::kHeaderSize - kPointerSize)); |
5349 __ bind(&done); | 5349 __ bind(&done); |
5350 } | 5350 } |
5351 | 5351 |
5352 | 5352 |
5353 #undef __ | 5353 #undef __ |
5354 | 5354 |
5355 } } // namespace v8::internal | 5355 } } // namespace v8::internal |
5356 | 5356 |
5357 #endif // V8_TARGET_ARCH_X64 | 5357 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |