Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(905)

Side by Side Diff: src/x64/macro-assembler-x64.cc

Issue 7033024: Add bit_field3 to Map objects (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: review feedback Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/x64/macro-assembler-x64.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 2583 matching lines...) Expand 10 before | Expand all | Expand 10 after
2594 movq(temp_xmm_reg, temp_reg); 2594 movq(temp_xmm_reg, temp_reg);
2595 addsd(temp_xmm_reg, input_reg); 2595 addsd(temp_xmm_reg, input_reg);
2596 cvttsd2si(result_reg, temp_xmm_reg); 2596 cvttsd2si(result_reg, temp_xmm_reg);
2597 testl(result_reg, Immediate(0xFFFFFF00)); 2597 testl(result_reg, Immediate(0xFFFFFF00));
2598 j(zero, &done, Label::kNear); 2598 j(zero, &done, Label::kNear);
2599 Set(result_reg, 255); 2599 Set(result_reg, 255);
2600 bind(&done); 2600 bind(&done);
2601 } 2601 }
2602 2602
2603 2603
2604 void MacroAssembler::LoadInstanceDescriptors(Register map,
2605 Register descriptors) {
2606 movq(descriptors, FieldOperand(map,
2607 Map::kInstanceDescriptorsOrBitField3Offset));
2608 Label not_smi;
2609 JumpIfNotSmi(descriptors, &not_smi, Label::kNear);
2610 Move(descriptors, isolate()->factory()->empty_descriptor_array());
2611 bind(&not_smi);
2612 }
2613
2614
2604 void MacroAssembler::DispatchMap(Register obj, 2615 void MacroAssembler::DispatchMap(Register obj,
2605 Handle<Map> map, 2616 Handle<Map> map,
2606 Handle<Code> success, 2617 Handle<Code> success,
2607 SmiCheckType smi_check_type) { 2618 SmiCheckType smi_check_type) {
2608 Label fail; 2619 Label fail;
2609 if (smi_check_type == DO_SMI_CHECK) { 2620 if (smi_check_type == DO_SMI_CHECK) {
2610 JumpIfSmi(obj, &fail); 2621 JumpIfSmi(obj, &fail);
2611 } 2622 }
2612 Cmp(FieldOperand(obj, HeapObject::kMapOffset), map); 2623 Cmp(FieldOperand(obj, HeapObject::kMapOffset), map);
2613 j(equal, success, RelocInfo::CODE_TARGET); 2624 j(equal, success, RelocInfo::CODE_TARGET);
(...skipping 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after
3699 CPU::FlushICache(address_, size_); 3710 CPU::FlushICache(address_, size_);
3700 3711
3701 // Check that the code was patched as expected. 3712 // Check that the code was patched as expected.
3702 ASSERT(masm_.pc_ == address_ + size_); 3713 ASSERT(masm_.pc_ == address_ + size_);
3703 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); 3714 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap);
3704 } 3715 }
3705 3716
3706 } } // namespace v8::internal 3717 } } // namespace v8::internal
3707 3718
3708 #endif // V8_TARGET_ARCH_X64 3719 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/macro-assembler-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698