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 2925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2936 | 2936 |
2937 void MacroAssembler::EnumLength(Register dst, Register map) { | 2937 void MacroAssembler::EnumLength(Register dst, Register map) { |
2938 STATIC_ASSERT(Map::EnumLengthBits::kShift == 0); | 2938 STATIC_ASSERT(Map::EnumLengthBits::kShift == 0); |
2939 movq(dst, FieldOperand(map, Map::kBitField3Offset)); | 2939 movq(dst, FieldOperand(map, Map::kBitField3Offset)); |
2940 Move(kScratchRegister, Smi::FromInt(Map::EnumLengthBits::kMask)); | 2940 Move(kScratchRegister, Smi::FromInt(Map::EnumLengthBits::kMask)); |
2941 and_(dst, kScratchRegister); | 2941 and_(dst, kScratchRegister); |
2942 } | 2942 } |
2943 | 2943 |
2944 | 2944 |
2945 void MacroAssembler::DispatchMap(Register obj, | 2945 void MacroAssembler::DispatchMap(Register obj, |
| 2946 Register unused, |
2946 Handle<Map> map, | 2947 Handle<Map> map, |
2947 Handle<Code> success, | 2948 Handle<Code> success, |
2948 SmiCheckType smi_check_type) { | 2949 SmiCheckType smi_check_type) { |
2949 Label fail; | 2950 Label fail; |
2950 if (smi_check_type == DO_SMI_CHECK) { | 2951 if (smi_check_type == DO_SMI_CHECK) { |
2951 JumpIfSmi(obj, &fail); | 2952 JumpIfSmi(obj, &fail); |
2952 } | 2953 } |
2953 Cmp(FieldOperand(obj, HeapObject::kMapOffset), map); | 2954 Cmp(FieldOperand(obj, HeapObject::kMapOffset), map); |
2954 j(equal, success, RelocInfo::CODE_TARGET); | 2955 j(equal, success, RelocInfo::CODE_TARGET); |
2955 | 2956 |
(...skipping 1695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4651 j(greater, &no_info_available); | 4652 j(greater, &no_info_available); |
4652 CompareRoot(MemOperand(scratch_reg, -AllocationSiteInfo::kSize), | 4653 CompareRoot(MemOperand(scratch_reg, -AllocationSiteInfo::kSize), |
4653 Heap::kAllocationSiteInfoMapRootIndex); | 4654 Heap::kAllocationSiteInfoMapRootIndex); |
4654 bind(&no_info_available); | 4655 bind(&no_info_available); |
4655 } | 4656 } |
4656 | 4657 |
4657 | 4658 |
4658 } } // namespace v8::internal | 4659 } } // namespace v8::internal |
4659 | 4660 |
4660 #endif // V8_TARGET_ARCH_X64 | 4661 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |