OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 void InitializeRootRegister() { | 321 void InitializeRootRegister() { |
322 ExternalReference roots_array_start = | 322 ExternalReference roots_array_start = |
323 ExternalReference::roots_array_start(isolate()); | 323 ExternalReference::roots_array_start(isolate()); |
324 movq(kRootRegister, roots_array_start); | 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 // Set up 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); |
335 | 335 |
336 // Invoke the JavaScript function code by either calling or jumping. | 336 // Invoke the JavaScript function code by either calling or jumping. |
337 void InvokeCode(Register code, | 337 void InvokeCode(Register code, |
338 const ParameterCount& expected, | 338 const ParameterCount& expected, |
339 const ParameterCount& actual, | 339 const ParameterCount& actual, |
340 InvokeFlag flag, | 340 InvokeFlag flag, |
341 const CallWrapper& call_wrapper, | 341 const CallWrapper& call_wrapper, |
(...skipping 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1448 masm->popfd(); \ | 1448 masm->popfd(); \ |
1449 } \ | 1449 } \ |
1450 masm-> | 1450 masm-> |
1451 #else | 1451 #else |
1452 #define ACCESS_MASM(masm) masm-> | 1452 #define ACCESS_MASM(masm) masm-> |
1453 #endif | 1453 #endif |
1454 | 1454 |
1455 } } // namespace v8::internal | 1455 } } // namespace v8::internal |
1456 | 1456 |
1457 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1457 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |