| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |