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

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

Issue 11188031: Move DescriptorArray into the map (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: remove padding area Created 8 years, 2 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 | « no previous file | src/bootstrapper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 3724 matching lines...) Expand 10 before | Expand all | Expand 10 after
3735 vmov(result_reg, input_reg.low()); 3735 vmov(result_reg, input_reg.low());
3736 // Restore FPSCR. 3736 // Restore FPSCR.
3737 vmsr(ip); 3737 vmsr(ip);
3738 bind(&done); 3738 bind(&done);
3739 } 3739 }
3740 3740
3741 3741
3742 void MacroAssembler::LoadInstanceDescriptors(Register map, 3742 void MacroAssembler::LoadInstanceDescriptors(Register map,
3743 Register descriptors, 3743 Register descriptors,
3744 Register scratch) { 3744 Register scratch) {
3745 Register temp = descriptors; 3745 ldr(descriptors, FieldMemOperand(map, Map::kDescriptorsOffset));
3746 ldr(temp, FieldMemOperand(map, Map::kTransitionsOrBackPointerOffset));
3747
3748 Label ok, fail, load_from_back_pointer;
3749 CheckMap(temp,
3750 scratch,
3751 isolate()->factory()->fixed_array_map(),
3752 &fail,
3753 DONT_DO_SMI_CHECK);
3754 ldr(descriptors, FieldMemOperand(temp, TransitionArray::kDescriptorsOffset));
3755 jmp(&ok);
3756
3757 bind(&fail);
3758 CompareRoot(temp, Heap::kUndefinedValueRootIndex);
3759 b(ne, &load_from_back_pointer);
3760 mov(descriptors, Operand(FACTORY->empty_descriptor_array()));
3761 jmp(&ok);
3762
3763 bind(&load_from_back_pointer);
3764 ldr(temp, FieldMemOperand(temp, Map::kTransitionsOrBackPointerOffset));
3765 ldr(descriptors, FieldMemOperand(temp, TransitionArray::kDescriptorsOffset));
3766
3767 bind(&ok);
3768 } 3746 }
3769 3747
3770 3748
3771 void MacroAssembler::NumberOfOwnDescriptors(Register dst, Register map) { 3749 void MacroAssembler::NumberOfOwnDescriptors(Register dst, Register map) {
3772 ldr(dst, FieldMemOperand(map, Map::kBitField3Offset)); 3750 ldr(dst, FieldMemOperand(map, Map::kBitField3Offset));
3773 DecodeField<Map::NumberOfOwnDescriptorsBits>(dst); 3751 DecodeField<Map::NumberOfOwnDescriptorsBits>(dst);
3774 } 3752 }
3775 3753
3776 3754
3777 void MacroAssembler::EnumLength(Register dst, Register map) { 3755 void MacroAssembler::EnumLength(Register dst, Register map) {
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
3878 void CodePatcher::EmitCondition(Condition cond) { 3856 void CodePatcher::EmitCondition(Condition cond) {
3879 Instr instr = Assembler::instr_at(masm_.pc_); 3857 Instr instr = Assembler::instr_at(masm_.pc_);
3880 instr = (instr & ~kCondMask) | cond; 3858 instr = (instr & ~kCondMask) | cond;
3881 masm_.emit(instr); 3859 masm_.emit(instr);
3882 } 3860 }
3883 3861
3884 3862
3885 } } // namespace v8::internal 3863 } } // namespace v8::internal
3886 3864
3887 #endif // V8_TARGET_ARCH_ARM 3865 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698