OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 2630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2641 | 2641 |
2642 void MacroAssembler::CmpInstanceType(Register map, InstanceType type) { | 2642 void MacroAssembler::CmpInstanceType(Register map, InstanceType type) { |
2643 cmpb(FieldOperand(map, Map::kInstanceTypeOffset), | 2643 cmpb(FieldOperand(map, Map::kInstanceTypeOffset), |
2644 Immediate(static_cast<int8_t>(type))); | 2644 Immediate(static_cast<int8_t>(type))); |
2645 } | 2645 } |
2646 | 2646 |
2647 | 2647 |
2648 void MacroAssembler::CheckFastElements(Register map, | 2648 void MacroAssembler::CheckFastElements(Register map, |
2649 Label* fail, | 2649 Label* fail, |
2650 Label::Distance distance) { | 2650 Label::Distance distance) { |
2651 STATIC_ASSERT(FAST_ELEMENTS == 0); | 2651 STATIC_ASSERT(FAST_SMI_ONLY_ELEMENTS == 0); |
| 2652 STATIC_ASSERT(FAST_ELEMENTS == 1); |
2652 cmpb(FieldOperand(map, Map::kBitField2Offset), | 2653 cmpb(FieldOperand(map, Map::kBitField2Offset), |
2653 Immediate(Map::kMaximumBitField2FastElementValue)); | 2654 Immediate(Map::kMaximumBitField2FastElementValue)); |
2654 j(above, fail, distance); | 2655 j(above, fail, distance); |
2655 } | 2656 } |
2656 | 2657 |
2657 | 2658 |
2658 void MacroAssembler::CheckMap(Register obj, | 2659 void MacroAssembler::CheckMap(Register obj, |
2659 Handle<Map> map, | 2660 Handle<Map> map, |
2660 Label* fail, | 2661 Label* fail, |
2661 SmiCheckType smi_check_type) { | 2662 SmiCheckType smi_check_type) { |
(...skipping 1534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4196 | 4197 |
4197 and_(bitmap_scratch, Immediate(~Page::kPageAlignmentMask)); | 4198 and_(bitmap_scratch, Immediate(~Page::kPageAlignmentMask)); |
4198 addl(Operand(bitmap_scratch, MemoryChunk::kLiveBytesOffset), length); | 4199 addl(Operand(bitmap_scratch, MemoryChunk::kLiveBytesOffset), length); |
4199 | 4200 |
4200 bind(&done); | 4201 bind(&done); |
4201 } | 4202 } |
4202 | 4203 |
4203 } } // namespace v8::internal | 4204 } } // namespace v8::internal |
4204 | 4205 |
4205 #endif // V8_TARGET_ARCH_X64 | 4206 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |