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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 | 312 |
313 // Push and pop the registers that can hold pointers. | 313 // Push and pop the registers that can hold pointers. |
314 void PushSafepointRegisters() { Pushad(); } | 314 void PushSafepointRegisters() { Pushad(); } |
315 void PopSafepointRegisters() { Popad(); } | 315 void PopSafepointRegisters() { Popad(); } |
316 // Store the value in register src in the safepoint register stack | 316 // Store the value in register src in the safepoint register stack |
317 // slot for register dst. | 317 // slot for register dst. |
318 void StoreToSafepointRegisterSlot(Register dst, Register src); | 318 void StoreToSafepointRegisterSlot(Register dst, Register src); |
319 void LoadFromSafepointRegisterSlot(Register dst, Register src); | 319 void LoadFromSafepointRegisterSlot(Register dst, Register src); |
320 | 320 |
321 void InitializeRootRegister() { | 321 void InitializeRootRegister() { |
322 ExternalReference roots_address = | 322 ExternalReference roots_array_start = |
323 ExternalReference::roots_address(isolate()); | 323 ExternalReference::roots_array_start(isolate()); |
324 movq(kRootRegister, roots_address); | 324 movq(kRootRegister, roots_array_start); |
325 addq(kRootRegister, Immediate(kRootRegisterBias)); | 325 addq(kRootRegister, Immediate(kRootRegisterBias)); |
326 } | 326 } |
327 | 327 |
328 // --------------------------------------------------------------------------- | 328 // --------------------------------------------------------------------------- |
329 // JavaScript invokes | 329 // JavaScript invokes |
330 | 330 |
331 // Setup call kind marking in rcx. The method takes rcx as an | 331 // Setup call kind marking in rcx. The method takes rcx as an |
332 // explicit first parameter to make the code more readable at the | 332 // explicit first parameter to make the code more readable at the |
333 // call sites. | 333 // call sites. |
334 void SetCallKind(Register dst, CallKind kind); | 334 void SetCallKind(Register dst, CallKind kind); |
(...skipping 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1447 masm->popfd(); \ | 1447 masm->popfd(); \ |
1448 } \ | 1448 } \ |
1449 masm-> | 1449 masm-> |
1450 #else | 1450 #else |
1451 #define ACCESS_MASM(masm) masm-> | 1451 #define ACCESS_MASM(masm) masm-> |
1452 #endif | 1452 #endif |
1453 | 1453 |
1454 } } // namespace v8::internal | 1454 } } // namespace v8::internal |
1455 | 1455 |
1456 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1456 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |