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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 } else { | 419 } else { |
420 Pop(src3, src4, cond); | 420 Pop(src3, src4, cond); |
421 ldm(ia_w, sp, src1.bit() | src2.bit(), cond); | 421 ldm(ia_w, sp, src1.bit() | src2.bit(), cond); |
422 } | 422 } |
423 } else { | 423 } else { |
424 Pop(src2, src3, src4, cond); | 424 Pop(src2, src3, src4, cond); |
425 ldr(src1, MemOperand(sp, 4, PostIndex), cond); | 425 ldr(src1, MemOperand(sp, 4, PostIndex), cond); |
426 } | 426 } |
427 } | 427 } |
428 | 428 |
| 429 // Push a fixed frame, consisting of lr, fp, context, constant pool |
| 430 // (if FLAG_enable_ool_constant_pool) and JS function / marker id if |
| 431 // marker_reg is a valid register. |
| 432 void PushFixedFrame(Register marker_reg = no_reg); |
| 433 void PopFixedFrame(Register marker_reg = no_reg); |
| 434 |
429 // Push and pop the registers that can hold pointers, as defined by the | 435 // Push and pop the registers that can hold pointers, as defined by the |
430 // RegList constant kSafepointSavedRegisters. | 436 // RegList constant kSafepointSavedRegisters. |
431 void PushSafepointRegisters(); | 437 void PushSafepointRegisters(); |
432 void PopSafepointRegisters(); | 438 void PopSafepointRegisters(); |
433 void PushSafepointRegistersAndDoubles(); | 439 void PushSafepointRegistersAndDoubles(); |
434 void PopSafepointRegistersAndDoubles(); | 440 void PopSafepointRegistersAndDoubles(); |
435 // Store value in register src in the safepoint stack slot for | 441 // Store value in register src in the safepoint stack slot for |
436 // register dst. | 442 // register dst. |
437 void StoreToSafepointRegisterSlot(Register src, Register dst); | 443 void StoreToSafepointRegisterSlot(Register src, Register dst); |
438 void StoreToSafepointRegistersAndDoublesSlot(Register src, Register dst); | 444 void StoreToSafepointRegistersAndDoublesSlot(Register src, Register dst); |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 void LoadGlobalFunctionInitialMap(Register function, | 581 void LoadGlobalFunctionInitialMap(Register function, |
576 Register map, | 582 Register map, |
577 Register scratch); | 583 Register scratch); |
578 | 584 |
579 void InitializeRootRegister() { | 585 void InitializeRootRegister() { |
580 ExternalReference roots_array_start = | 586 ExternalReference roots_array_start = |
581 ExternalReference::roots_array_start(isolate()); | 587 ExternalReference::roots_array_start(isolate()); |
582 mov(kRootRegister, Operand(roots_array_start)); | 588 mov(kRootRegister, Operand(roots_array_start)); |
583 } | 589 } |
584 | 590 |
| 591 // Restores the pp registers from the stack frame. |
| 592 void RestoreConstantPoolPointer(); |
| 593 |
| 594 // Loads the pp register with the value for the given JSFunction. |
| 595 void LoadConstantPoolPointer(Register js_function); |
| 596 |
585 // --------------------------------------------------------------------------- | 597 // --------------------------------------------------------------------------- |
586 // JavaScript invokes | 598 // JavaScript invokes |
587 | 599 |
588 // Set up call kind marking in ecx. The method takes ecx as an | 600 // Set up call kind marking in ecx. The method takes ecx as an |
589 // explicit first parameter to make the code more readable at the | 601 // explicit first parameter to make the code more readable at the |
590 // call sites. | 602 // call sites. |
591 void SetCallKind(Register dst, CallKind kind); | 603 void SetCallKind(Register dst, CallKind kind); |
592 | 604 |
593 // Invoke the JavaScript function code by either calling or jumping. | 605 // Invoke the JavaScript function code by either calling or jumping. |
594 void InvokeCode(Register code, | 606 void InvokeCode(Register code, |
(...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1529 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1541 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1530 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1542 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1531 #else | 1543 #else |
1532 #define ACCESS_MASM(masm) masm-> | 1544 #define ACCESS_MASM(masm) masm-> |
1533 #endif | 1545 #endif |
1534 | 1546 |
1535 | 1547 |
1536 } } // namespace v8::internal | 1548 } } // namespace v8::internal |
1537 | 1549 |
1538 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1550 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |