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

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

Issue 11193022: Remove scratch register requirement from LoadInstanceDescriptors on arm and mips. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/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 3722 matching lines...) Expand 10 before | Expand all | Expand 10 after
3733 vmsr(result_reg); 3733 vmsr(result_reg);
3734 vcvt_s32_f64(input_reg.low(), input_reg, kFPSCRRounding); 3734 vcvt_s32_f64(input_reg.low(), input_reg, kFPSCRRounding);
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) {
3745 ldr(descriptors, FieldMemOperand(map, Map::kDescriptorsOffset)); 3744 ldr(descriptors, FieldMemOperand(map, Map::kDescriptorsOffset));
3746 } 3745 }
3747 3746
3748 3747
3749 void MacroAssembler::NumberOfOwnDescriptors(Register dst, Register map) { 3748 void MacroAssembler::NumberOfOwnDescriptors(Register dst, Register map) {
3750 ldr(dst, FieldMemOperand(map, Map::kBitField3Offset)); 3749 ldr(dst, FieldMemOperand(map, Map::kBitField3Offset));
3751 DecodeField<Map::NumberOfOwnDescriptorsBits>(dst); 3750 DecodeField<Map::NumberOfOwnDescriptorsBits>(dst);
3752 } 3751 }
3753 3752
3754 3753
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
3856 void CodePatcher::EmitCondition(Condition cond) { 3855 void CodePatcher::EmitCondition(Condition cond) {
3857 Instr instr = Assembler::instr_at(masm_.pc_); 3856 Instr instr = Assembler::instr_at(masm_.pc_);
3858 instr = (instr & ~kCondMask) | cond; 3857 instr = (instr & ~kCondMask) | cond;
3859 masm_.emit(instr); 3858 masm_.emit(instr);
3860 } 3859 }
3861 3860
3862 3861
3863 } } // namespace v8::internal 3862 } } // namespace v8::internal
3864 3863
3865 #endif // V8_TARGET_ARCH_ARM 3864 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.h ('k') | src/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698