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

Side by Side Diff: src/x64/codegen-x64.cc

Issue 3017024: Fix Win64 build. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 5 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 | 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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 8051 matching lines...) Expand 10 before | Expand all | Expand 10 after
8062 frame_->Spill(value.reg()); 8062 frame_->Spill(value.reg());
8063 8063
8064 // Update the write barrier. To save instructions in the inlined 8064 // Update the write barrier. To save instructions in the inlined
8065 // version we do not filter smis. 8065 // version we do not filter smis.
8066 Label skip_write_barrier; 8066 Label skip_write_barrier;
8067 __ InNewSpace(receiver.reg(), value.reg(), equal, &skip_write_barrier); 8067 __ InNewSpace(receiver.reg(), value.reg(), equal, &skip_write_barrier);
8068 int delta_to_record_write = masm_->SizeOfCodeGeneratedSince(&patch_site); 8068 int delta_to_record_write = masm_->SizeOfCodeGeneratedSince(&patch_site);
8069 __ lea(scratch.reg(), Operand(receiver.reg(), offset)); 8069 __ lea(scratch.reg(), Operand(receiver.reg(), offset));
8070 __ RecordWriteHelper(receiver.reg(), scratch.reg(), value.reg()); 8070 __ RecordWriteHelper(receiver.reg(), scratch.reg(), value.reg());
8071 if (FLAG_debug_code) { 8071 if (FLAG_debug_code) {
8072 __ movq(receiver.reg(), Immediate(BitCast<int64_t>(kZapValue))); 8072 __ movq(receiver.reg(), BitCast<int64_t>(kZapValue), RelocInfo::NONE);
8073 __ movq(value.reg(), Immediate(BitCast<int64_t>(kZapValue))); 8073 __ movq(value.reg(), BitCast<int64_t>(kZapValue), RelocInfo::NONE);
8074 __ movq(scratch.reg(), Immediate(BitCast<int64_t>(kZapValue))); 8074 __ movq(scratch.reg(), BitCast<int64_t>(kZapValue), RelocInfo::NONE);
8075 } 8075 }
8076 __ bind(&skip_write_barrier); 8076 __ bind(&skip_write_barrier);
8077 value.Unuse(); 8077 value.Unuse();
8078 scratch.Unuse(); 8078 scratch.Unuse();
8079 receiver.Unuse(); 8079 receiver.Unuse();
8080 done.Jump(&result); 8080 done.Jump(&result);
8081 8081
8082 slow.Bind(&value, &receiver); 8082 slow.Bind(&value, &receiver);
8083 frame()->Push(&receiver); 8083 frame()->Push(&receiver);
8084 frame()->Push(&value); 8084 frame()->Push(&value);
(...skipping 4340 matching lines...) Expand 10 before | Expand all | Expand 10 after
12425 #undef __ 12425 #undef __
12426 12426
12427 void RecordWriteStub::Generate(MacroAssembler* masm) { 12427 void RecordWriteStub::Generate(MacroAssembler* masm) {
12428 masm->RecordWriteHelper(object_, addr_, scratch_); 12428 masm->RecordWriteHelper(object_, addr_, scratch_);
12429 masm->ret(0); 12429 masm->ret(0);
12430 } 12430 }
12431 12431
12432 } } // namespace v8::internal 12432 } } // namespace v8::internal
12433 12433
12434 #endif // V8_TARGET_ARCH_X64 12434 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698