| 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 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 641 test(instance_type, Immediate(kIsNotStringMask)); | 641 test(instance_type, Immediate(kIsNotStringMask)); |
| 642 return zero; | 642 return zero; |
| 643 } | 643 } |
| 644 | 644 |
| 645 | 645 |
| 646 Condition MacroAssembler::IsObjectNameType(Register heap_object, | 646 Condition MacroAssembler::IsObjectNameType(Register heap_object, |
| 647 Register map, | 647 Register map, |
| 648 Register instance_type) { | 648 Register instance_type) { |
| 649 mov(map, FieldOperand(heap_object, HeapObject::kMapOffset)); | 649 mov(map, FieldOperand(heap_object, HeapObject::kMapOffset)); |
| 650 movzx_b(instance_type, FieldOperand(map, Map::kInstanceTypeOffset)); | 650 movzx_b(instance_type, FieldOperand(map, Map::kInstanceTypeOffset)); |
| 651 cmpb(instance_type, static_cast<int8_t>(LAST_NAME_TYPE)); | 651 cmpb(instance_type, static_cast<uint8_t>(LAST_NAME_TYPE)); |
| 652 return below_equal; | 652 return below_equal; |
| 653 } | 653 } |
| 654 | 654 |
| 655 | 655 |
| 656 void MacroAssembler::IsObjectJSObjectType(Register heap_object, | 656 void MacroAssembler::IsObjectJSObjectType(Register heap_object, |
| 657 Register map, | 657 Register map, |
| 658 Register scratch, | 658 Register scratch, |
| 659 Label* fail) { | 659 Label* fail) { |
| 660 mov(map, FieldOperand(heap_object, HeapObject::kMapOffset)); | 660 mov(map, FieldOperand(heap_object, HeapObject::kMapOffset)); |
| 661 IsInstanceJSObjectType(map, scratch, fail); | 661 IsInstanceJSObjectType(map, scratch, fail); |
| (...skipping 2453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3115 j(greater, &no_info_available); | 3115 j(greater, &no_info_available); |
| 3116 cmp(MemOperand(scratch_reg, -AllocationSiteInfo::kSize), | 3116 cmp(MemOperand(scratch_reg, -AllocationSiteInfo::kSize), |
| 3117 Immediate(Handle<Map>(isolate()->heap()->allocation_site_info_map()))); | 3117 Immediate(Handle<Map>(isolate()->heap()->allocation_site_info_map()))); |
| 3118 bind(&no_info_available); | 3118 bind(&no_info_available); |
| 3119 } | 3119 } |
| 3120 | 3120 |
| 3121 | 3121 |
| 3122 } } // namespace v8::internal | 3122 } } // namespace v8::internal |
| 3123 | 3123 |
| 3124 #endif // V8_TARGET_ARCH_IA32 | 3124 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |