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

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

Issue 12087131: Make the arm port build cleanly with Clang. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 10 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/arm/simulator-arm.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 3930 matching lines...) Expand 10 before | Expand all | Expand 10 after
3941 if (reg6.is_valid()) regs |= reg6.bit(); 3941 if (reg6.is_valid()) regs |= reg6.bit();
3942 int n_of_non_aliasing_regs = NumRegs(regs); 3942 int n_of_non_aliasing_regs = NumRegs(regs);
3943 3943
3944 return n_of_valid_regs != n_of_non_aliasing_regs; 3944 return n_of_valid_regs != n_of_non_aliasing_regs;
3945 } 3945 }
3946 #endif 3946 #endif
3947 3947
3948 3948
3949 CodePatcher::CodePatcher(byte* address, int instructions) 3949 CodePatcher::CodePatcher(byte* address, int instructions)
3950 : address_(address), 3950 : address_(address),
3951 instructions_(instructions),
3952 size_(instructions * Assembler::kInstrSize), 3951 size_(instructions * Assembler::kInstrSize),
3953 masm_(NULL, address, size_ + Assembler::kGap) { 3952 masm_(NULL, address, size_ + Assembler::kGap) {
3954 // Create a new macro assembler pointing to the address of the code to patch. 3953 // Create a new macro assembler pointing to the address of the code to patch.
3955 // The size is adjusted with kGap on order for the assembler to generate size 3954 // The size is adjusted with kGap on order for the assembler to generate size
3956 // bytes of instructions without failing with buffer size constraints. 3955 // bytes of instructions without failing with buffer size constraints.
3957 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); 3956 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap);
3958 } 3957 }
3959 3958
3960 3959
3961 CodePatcher::~CodePatcher() { 3960 CodePatcher::~CodePatcher() {
(...skipping 19 matching lines...) Expand all
3981 void CodePatcher::EmitCondition(Condition cond) { 3980 void CodePatcher::EmitCondition(Condition cond) {
3982 Instr instr = Assembler::instr_at(masm_.pc_); 3981 Instr instr = Assembler::instr_at(masm_.pc_);
3983 instr = (instr & ~kCondMask) | cond; 3982 instr = (instr & ~kCondMask) | cond;
3984 masm_.emit(instr); 3983 masm_.emit(instr);
3985 } 3984 }
3986 3985
3987 3986
3988 } } // namespace v8::internal 3987 } } // namespace v8::internal
3989 3988
3990 #endif // V8_TARGET_ARCH_ARM 3989 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.h ('k') | src/arm/simulator-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698