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

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

Issue 7015043: Fix the GC branch so it compiles and runs on 64 bit. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: '' Created 9 years, 7 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/x64/macro-assembler-x64.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 505
506 void MacroAssembler::CallRuntime(Runtime::FunctionId id, int num_arguments) { 506 void MacroAssembler::CallRuntime(Runtime::FunctionId id, int num_arguments) {
507 CallRuntime(Runtime::FunctionForId(id), num_arguments); 507 CallRuntime(Runtime::FunctionForId(id), num_arguments);
508 } 508 }
509 509
510 510
511 void MacroAssembler::CallRuntimeSaveDoubles(Runtime::FunctionId id) { 511 void MacroAssembler::CallRuntimeSaveDoubles(Runtime::FunctionId id) {
512 const Runtime::Function* function = Runtime::FunctionForId(id); 512 const Runtime::Function* function = Runtime::FunctionForId(id);
513 Set(rax, function->nargs); 513 Set(rax, function->nargs);
514 LoadAddress(rbx, ExternalReference(function, isolate())); 514 LoadAddress(rbx, ExternalReference(function, isolate()));
515 CEntryStub ces(1); 515 CEntryStub ces(1, kSaveFPRegs);
516 ces.SaveDoubles();
517 CallStub(&ces); 516 CallStub(&ces);
518 } 517 }
519 518
520 519
521 MaybeObject* MacroAssembler::TryCallRuntime(Runtime::FunctionId id, 520 MaybeObject* MacroAssembler::TryCallRuntime(Runtime::FunctionId id,
522 int num_arguments) { 521 int num_arguments) {
523 return TryCallRuntime(Runtime::FunctionForId(id), num_arguments); 522 return TryCallRuntime(Runtime::FunctionForId(id), num_arguments);
524 } 523 }
525 524
526 525
(...skipping 2396 matching lines...) Expand 10 before | Expand all | Expand 10 after
2923 CPU::FlushICache(address_, size_); 2922 CPU::FlushICache(address_, size_);
2924 2923
2925 // Check that the code was patched as expected. 2924 // Check that the code was patched as expected.
2926 ASSERT(masm_.pc_ == address_ + size_); 2925 ASSERT(masm_.pc_ == address_ + size_);
2927 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); 2926 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap);
2928 } 2927 }
2929 2928
2930 } } // namespace v8::internal 2929 } } // namespace v8::internal
2931 2930
2932 #endif // V8_TARGET_ARCH_X64 2931 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/macro-assembler-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698