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 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
611 } | 611 } |
612 | 612 |
613 Label success; | 613 Label success; |
614 CompareMap(obj, map, &success, mode); | 614 CompareMap(obj, map, &success, mode); |
615 j(not_equal, fail); | 615 j(not_equal, fail); |
616 bind(&success); | 616 bind(&success); |
617 } | 617 } |
618 | 618 |
619 | 619 |
620 void MacroAssembler::DispatchMap(Register obj, | 620 void MacroAssembler::DispatchMap(Register obj, |
| 621 Register unused, |
621 Handle<Map> map, | 622 Handle<Map> map, |
622 Handle<Code> success, | 623 Handle<Code> success, |
623 SmiCheckType smi_check_type) { | 624 SmiCheckType smi_check_type) { |
624 Label fail; | 625 Label fail; |
625 if (smi_check_type == DO_SMI_CHECK) { | 626 if (smi_check_type == DO_SMI_CHECK) { |
626 JumpIfSmi(obj, &fail); | 627 JumpIfSmi(obj, &fail); |
627 } | 628 } |
628 cmp(FieldOperand(obj, HeapObject::kMapOffset), Immediate(map)); | 629 cmp(FieldOperand(obj, HeapObject::kMapOffset), Immediate(map)); |
629 j(equal, success); | 630 j(equal, success); |
630 | 631 |
(...skipping 2484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3115 j(greater, &no_info_available); | 3116 j(greater, &no_info_available); |
3116 cmp(MemOperand(scratch_reg, -AllocationSiteInfo::kSize), | 3117 cmp(MemOperand(scratch_reg, -AllocationSiteInfo::kSize), |
3117 Immediate(Handle<Map>(isolate()->heap()->allocation_site_info_map()))); | 3118 Immediate(Handle<Map>(isolate()->heap()->allocation_site_info_map()))); |
3118 bind(&no_info_available); | 3119 bind(&no_info_available); |
3119 } | 3120 } |
3120 | 3121 |
3121 | 3122 |
3122 } } // namespace v8::internal | 3123 } } // namespace v8::internal |
3123 | 3124 |
3124 #endif // V8_TARGET_ARCH_IA32 | 3125 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |