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

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

Issue 3030002: Fix compilation error on X64. Error is from r5080 (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 | « src/profile-generator.cc ('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 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 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 // always at a function context. However it is safe to dereference be- 431 // always at a function context. However it is safe to dereference be-
432 // cause the function context of a function context is itself. Before 432 // cause the function context of a function context is itself. Before
433 // deleting this mov we should try to create a counter-example first, 433 // deleting this mov we should try to create a counter-example first,
434 // though...) 434 // though...)
435 __ movq(tmp, ContextOperand(context, Context::FCONTEXT_INDEX)); 435 __ movq(tmp, ContextOperand(context, Context::FCONTEXT_INDEX));
436 return ContextOperand(tmp, index); 436 return ContextOperand(tmp, index);
437 } 437 }
438 438
439 default: 439 default:
440 UNREACHABLE(); 440 UNREACHABLE();
441 return Operand(rax); 441 return Operand(rsp, 0);
442 } 442 }
443 } 443 }
444 444
445 445
446 Operand CodeGenerator::ContextSlotOperandCheckExtensions(Slot* slot, 446 Operand CodeGenerator::ContextSlotOperandCheckExtensions(Slot* slot,
447 Result tmp, 447 Result tmp,
448 JumpTarget* slow) { 448 JumpTarget* slow) {
449 ASSERT(slot->type() == Slot::CONTEXT); 449 ASSERT(slot->type() == Slot::CONTEXT);
450 ASSERT(tmp.is_register()); 450 ASSERT(tmp.is_register());
451 Register context = rsi; 451 Register context = rsi;
(...skipping 11067 matching lines...) Expand 10 before | Expand all | Expand 10 after
11519 ASSERT(src.is(rsi)); // rep movs source 11519 ASSERT(src.is(rsi)); // rep movs source
11520 ASSERT(count.is(rcx)); // rep movs count 11520 ASSERT(count.is(rcx)); // rep movs count
11521 11521
11522 // Nothing to do for zero characters. 11522 // Nothing to do for zero characters.
11523 Label done; 11523 Label done;
11524 __ testl(count, count); 11524 __ testl(count, count);
11525 __ j(zero, &done); 11525 __ j(zero, &done);
11526 11526
11527 // Make count the number of bytes to copy. 11527 // Make count the number of bytes to copy.
11528 if (!ascii) { 11528 if (!ascii) {
11529 ASSERT_EQ(2, sizeof(uc16)); // NOLINT 11529 ASSERT_EQ(2, static_cast<int>(sizeof(uc16))); // NOLINT
11530 __ addl(count, count); 11530 __ addl(count, count);
11531 } 11531 }
11532 11532
11533 // Don't enter the rep movs if there are less than 4 bytes to copy. 11533 // Don't enter the rep movs if there are less than 4 bytes to copy.
11534 Label last_bytes; 11534 Label last_bytes;
11535 __ testl(count, Immediate(~7)); 11535 __ testl(count, Immediate(~7));
11536 __ j(zero, &last_bytes); 11536 __ j(zero, &last_bytes);
11537 11537
11538 // Copy from edi to esi using rep movs instruction. 11538 // Copy from edi to esi using rep movs instruction.
11539 __ movl(kScratchRegister, count); 11539 __ movl(kScratchRegister, count);
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
12100 #undef __ 12100 #undef __
12101 12101
12102 void RecordWriteStub::Generate(MacroAssembler* masm) { 12102 void RecordWriteStub::Generate(MacroAssembler* masm) {
12103 masm->RecordWriteHelper(object_, addr_, scratch_); 12103 masm->RecordWriteHelper(object_, addr_, scratch_);
12104 masm->ret(0); 12104 masm->ret(0);
12105 } 12105 }
12106 12106
12107 } } // namespace v8::internal 12107 } } // namespace v8::internal
12108 12108
12109 #endif // V8_TARGET_ARCH_X64 12109 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/profile-generator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698