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

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

Issue 11072014: Reverting sharing of descriptor arrays: (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Bump version 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 | « src/arm/macro-assembler-arm.h ('k') | 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 3685 matching lines...) Expand 10 before | Expand all | Expand 10 after
3696 bind(&done); 3696 bind(&done);
3697 } 3697 }
3698 3698
3699 3699
3700 void MacroAssembler::LoadInstanceDescriptors(Register map, 3700 void MacroAssembler::LoadInstanceDescriptors(Register map,
3701 Register descriptors, 3701 Register descriptors,
3702 Register scratch) { 3702 Register scratch) {
3703 Register temp = descriptors; 3703 Register temp = descriptors;
3704 ldr(temp, FieldMemOperand(map, Map::kTransitionsOrBackPointerOffset)); 3704 ldr(temp, FieldMemOperand(map, Map::kTransitionsOrBackPointerOffset));
3705 3705
3706 Label ok, fail, load_from_back_pointer; 3706 Label ok, fail;
3707 CheckMap(temp, 3707 CheckMap(temp,
3708 scratch, 3708 scratch,
3709 isolate()->factory()->fixed_array_map(), 3709 isolate()->factory()->fixed_array_map(),
3710 &fail, 3710 &fail,
3711 DONT_DO_SMI_CHECK); 3711 DONT_DO_SMI_CHECK);
3712 ldr(temp, FieldMemOperand(temp, TransitionArray::kDescriptorsPointerOffset)); 3712 ldr(descriptors, FieldMemOperand(temp, TransitionArray::kDescriptorsOffset));
3713 ldr(descriptors, FieldMemOperand(temp, JSGlobalPropertyCell::kValueOffset));
3714 jmp(&ok); 3713 jmp(&ok);
3715
3716 bind(&fail); 3714 bind(&fail);
3717 CompareRoot(temp, Heap::kUndefinedValueRootIndex);
3718 b(ne, &load_from_back_pointer);
3719 mov(descriptors, Operand(FACTORY->empty_descriptor_array())); 3715 mov(descriptors, Operand(FACTORY->empty_descriptor_array()));
3720 jmp(&ok);
3721
3722 bind(&load_from_back_pointer);
3723 ldr(temp, FieldMemOperand(temp, Map::kTransitionsOrBackPointerOffset));
3724 ldr(temp, FieldMemOperand(temp, TransitionArray::kDescriptorsPointerOffset));
3725 ldr(descriptors, FieldMemOperand(temp, JSGlobalPropertyCell::kValueOffset));
3726
3727 bind(&ok); 3716 bind(&ok);
3728 } 3717 }
3729 3718
3730 3719
3731 void MacroAssembler::NumberOfOwnDescriptors(Register dst, Register map) {
3732 ldr(dst, FieldMemOperand(map, Map::kBitFieldOffset));
3733 DecodeField<Map::NumberOfOwnDescriptorsBits>(dst);
3734 }
3735
3736
3737 void MacroAssembler::EnumLength(Register dst, Register map) { 3720 void MacroAssembler::EnumLength(Register dst, Register map) {
3738 STATIC_ASSERT(Map::EnumLengthBits::kShift == 0); 3721 STATIC_ASSERT(Map::EnumLengthBits::kShift == 0);
3739 ldr(dst, FieldMemOperand(map, Map::kBitField3Offset)); 3722 ldr(dst, FieldMemOperand(map, Map::kBitField3Offset));
3740 and_(dst, dst, Operand(Smi::FromInt(Map::EnumLengthBits::kMask))); 3723 and_(dst, dst, Operand(Smi::FromInt(Map::EnumLengthBits::kMask)));
3741 } 3724 }
3742 3725
3743 3726
3744 void MacroAssembler::CheckEnumCache(Register null_value, Label* call_runtime) { 3727 void MacroAssembler::CheckEnumCache(Register null_value, Label* call_runtime) {
3745 Register empty_fixed_array_value = r6; 3728 Register empty_fixed_array_value = r6;
3746 LoadRoot(empty_fixed_array_value, Heap::kEmptyFixedArrayRootIndex); 3729 LoadRoot(empty_fixed_array_value, Heap::kEmptyFixedArrayRootIndex);
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
3838 void CodePatcher::EmitCondition(Condition cond) { 3821 void CodePatcher::EmitCondition(Condition cond) {
3839 Instr instr = Assembler::instr_at(masm_.pc_); 3822 Instr instr = Assembler::instr_at(masm_.pc_);
3840 instr = (instr & ~kCondMask) | cond; 3823 instr = (instr & ~kCondMask) | cond;
3841 masm_.emit(instr); 3824 masm_.emit(instr);
3842 } 3825 }
3843 3826
3844 3827
3845 } } // namespace v8::internal 3828 } } // namespace v8::internal
3846 3829
3847 #endif // V8_TARGET_ARCH_ARM 3830 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.h ('k') | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698