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

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

Issue 2878034: [isolates] Merge 5083:5084 into isolates branch. Fix compiler errors on x64. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
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, 0); 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 11078 matching lines...) Expand 10 before | Expand all | Expand 10 after
11530 ASSERT(src.is(rsi)); // rep movs source 11530 ASSERT(src.is(rsi)); // rep movs source
11531 ASSERT(count.is(rcx)); // rep movs count 11531 ASSERT(count.is(rcx)); // rep movs count
11532 11532
11533 // Nothing to do for zero characters. 11533 // Nothing to do for zero characters.
11534 Label done; 11534 Label done;
11535 __ testl(count, count); 11535 __ testl(count, count);
11536 __ j(zero, &done); 11536 __ j(zero, &done);
11537 11537
11538 // Make count the number of bytes to copy. 11538 // Make count the number of bytes to copy.
11539 if (!ascii) { 11539 if (!ascii) {
11540 ASSERT_EQ(2, sizeof(uc16)); // NOLINT 11540 ASSERT_EQ(2, static_cast<int>(sizeof(uc16))); // NOLINT
11541 __ addl(count, count); 11541 __ addl(count, count);
11542 } 11542 }
11543 11543
11544 // Don't enter the rep movs if there are less than 4 bytes to copy. 11544 // Don't enter the rep movs if there are less than 4 bytes to copy.
11545 Label last_bytes; 11545 Label last_bytes;
11546 __ testl(count, Immediate(~7)); 11546 __ testl(count, Immediate(~7));
11547 __ j(zero, &last_bytes); 11547 __ j(zero, &last_bytes);
11548 11548
11549 // Copy from edi to esi using rep movs instruction. 11549 // Copy from edi to esi using rep movs instruction.
11550 __ movl(kScratchRegister, count); 11550 __ movl(kScratchRegister, count);
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
12111 #undef __ 12111 #undef __
12112 12112
12113 void RecordWriteStub::Generate(MacroAssembler* masm) { 12113 void RecordWriteStub::Generate(MacroAssembler* masm) {
12114 masm->RecordWriteHelper(object_, addr_, scratch_); 12114 masm->RecordWriteHelper(object_, addr_, scratch_);
12115 masm->ret(0); 12115 masm->ret(0);
12116 } 12116 }
12117 12117
12118 } } // namespace v8::internal 12118 } } // namespace v8::internal
12119 12119
12120 #endif // V8_TARGET_ARCH_X64 12120 #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