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

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

Issue 10918287: MIPS: Sharing of descriptor arrays. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix bug in loading bitfield Created 8 years, 3 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/mips/full-codegen-mips.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 3711 matching lines...) Expand 10 before | Expand all | Expand 10 after
3722 bind(&load_from_back_pointer); 3722 bind(&load_from_back_pointer);
3723 ldr(temp, FieldMemOperand(temp, Map::kTransitionsOrBackPointerOffset)); 3723 ldr(temp, FieldMemOperand(temp, Map::kTransitionsOrBackPointerOffset));
3724 ldr(temp, FieldMemOperand(temp, TransitionArray::kDescriptorsPointerOffset)); 3724 ldr(temp, FieldMemOperand(temp, TransitionArray::kDescriptorsPointerOffset));
3725 ldr(descriptors, FieldMemOperand(temp, JSGlobalPropertyCell::kValueOffset)); 3725 ldr(descriptors, FieldMemOperand(temp, JSGlobalPropertyCell::kValueOffset));
3726 3726
3727 bind(&ok); 3727 bind(&ok);
3728 } 3728 }
3729 3729
3730 3730
3731 void MacroAssembler::NumberOfOwnDescriptors(Register dst, Register map) { 3731 void MacroAssembler::NumberOfOwnDescriptors(Register dst, Register map) {
3732 ldr(dst, FieldMemOperand(map, Map::kBitFieldOffset)); 3732 ldr(dst, FieldMemOperand(map, Map::kBitField3Offset));
3733 DecodeField<Map::NumberOfOwnDescriptorsBits>(dst); 3733 DecodeField<Map::NumberOfOwnDescriptorsBits>(dst);
3734 } 3734 }
3735 3735
3736 3736
3737 void MacroAssembler::EnumLength(Register dst, Register map) { 3737 void MacroAssembler::EnumLength(Register dst, Register map) {
3738 STATIC_ASSERT(Map::EnumLengthBits::kShift == 0); 3738 STATIC_ASSERT(Map::EnumLengthBits::kShift == 0);
3739 ldr(dst, FieldMemOperand(map, Map::kBitField3Offset)); 3739 ldr(dst, FieldMemOperand(map, Map::kBitField3Offset));
3740 and_(dst, dst, Operand(Smi::FromInt(Map::EnumLengthBits::kMask))); 3740 and_(dst, dst, Operand(Smi::FromInt(Map::EnumLengthBits::kMask)));
3741 } 3741 }
3742 3742
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
3838 void CodePatcher::EmitCondition(Condition cond) { 3838 void CodePatcher::EmitCondition(Condition cond) {
3839 Instr instr = Assembler::instr_at(masm_.pc_); 3839 Instr instr = Assembler::instr_at(masm_.pc_);
3840 instr = (instr & ~kCondMask) | cond; 3840 instr = (instr & ~kCondMask) | cond;
3841 masm_.emit(instr); 3841 masm_.emit(instr);
3842 } 3842 }
3843 3843
3844 3844
3845 } } // namespace v8::internal 3845 } } // namespace v8::internal
3846 3846
3847 #endif // V8_TARGET_ARCH_ARM 3847 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698