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

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

Issue 888005: Fix issues with compiling V8 with LLVM Clang... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 9 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/utils.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 190
191 RecordWriteNonSmi(object, offset, value, smi_index); 191 RecordWriteNonSmi(object, offset, value, smi_index);
192 bind(&done); 192 bind(&done);
193 193
194 // Clobber all input registers when running with the debug-code flag 194 // Clobber all input registers when running with the debug-code flag
195 // turned on to provoke errors. This clobbering repeats the 195 // turned on to provoke errors. This clobbering repeats the
196 // clobbering done inside RecordWriteNonSmi but it's necessary to 196 // clobbering done inside RecordWriteNonSmi but it's necessary to
197 // avoid having the fast case for smis leave the registers 197 // avoid having the fast case for smis leave the registers
198 // unchanged. 198 // unchanged.
199 if (FLAG_debug_code) { 199 if (FLAG_debug_code) {
200 movq(object, bit_cast<int64_t>(kZapValue), RelocInfo::NONE); 200 movq(object, BitCast<int64_t>(kZapValue), RelocInfo::NONE);
201 movq(value, bit_cast<int64_t>(kZapValue), RelocInfo::NONE); 201 movq(value, BitCast<int64_t>(kZapValue), RelocInfo::NONE);
202 movq(smi_index, bit_cast<int64_t>(kZapValue), RelocInfo::NONE); 202 movq(smi_index, BitCast<int64_t>(kZapValue), RelocInfo::NONE);
203 } 203 }
204 } 204 }
205 205
206 206
207 void MacroAssembler::RecordWriteNonSmi(Register object, 207 void MacroAssembler::RecordWriteNonSmi(Register object,
208 int offset, 208 int offset,
209 Register scratch, 209 Register scratch,
210 Register smi_index) { 210 Register smi_index) {
211 Label done; 211 Label done;
212 212
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 RecordWriteStub stub(object, dst, scratch); 263 RecordWriteStub stub(object, dst, scratch);
264 CallStub(&stub); 264 CallStub(&stub);
265 } 265 }
266 } 266 }
267 267
268 bind(&done); 268 bind(&done);
269 269
270 // Clobber all input registers when running with the debug-code flag 270 // Clobber all input registers when running with the debug-code flag
271 // turned on to provoke errors. 271 // turned on to provoke errors.
272 if (FLAG_debug_code) { 272 if (FLAG_debug_code) {
273 movq(object, bit_cast<int64_t>(kZapValue), RelocInfo::NONE); 273 movq(object, BitCast<int64_t>(kZapValue), RelocInfo::NONE);
274 movq(scratch, bit_cast<int64_t>(kZapValue), RelocInfo::NONE); 274 movq(scratch, BitCast<int64_t>(kZapValue), RelocInfo::NONE);
275 movq(smi_index, bit_cast<int64_t>(kZapValue), RelocInfo::NONE); 275 movq(smi_index, BitCast<int64_t>(kZapValue), RelocInfo::NONE);
276 } 276 }
277 } 277 }
278 278
279 279
280 void MacroAssembler::Assert(Condition cc, const char* msg) { 280 void MacroAssembler::Assert(Condition cc, const char* msg) {
281 if (FLAG_debug_code) Check(cc, msg); 281 if (FLAG_debug_code) Check(cc, msg);
282 } 282 }
283 283
284 284
285 void MacroAssembler::Check(Condition cc, const char* msg) { 285 void MacroAssembler::Check(Condition cc, const char* msg) {
(...skipping 2342 matching lines...) Expand 10 before | Expand all | Expand 10 after
2628 CodePatcher::~CodePatcher() { 2628 CodePatcher::~CodePatcher() {
2629 // Indicate that code has changed. 2629 // Indicate that code has changed.
2630 CPU::FlushICache(address_, size_); 2630 CPU::FlushICache(address_, size_);
2631 2631
2632 // Check that the code was patched as expected. 2632 // Check that the code was patched as expected.
2633 ASSERT(masm_.pc_ == address_ + size_); 2633 ASSERT(masm_.pc_ == address_ + size_);
2634 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); 2634 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap);
2635 } 2635 }
2636 2636
2637 } } // namespace v8::internal 2637 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698