| OLD | NEW |
| 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 void Move(Register dst, Handle<Object> value); | 79 void Move(Register dst, Handle<Object> value); |
| 80 // May do nothing if the registers are identical. | 80 // May do nothing if the registers are identical. |
| 81 void Move(Register dst, Register src); | 81 void Move(Register dst, Register src); |
| 82 // Jumps to the label at the index given by the Smi in "index". | 82 // Jumps to the label at the index given by the Smi in "index". |
| 83 void SmiJumpTable(Register index, Vector<Label*> targets); | 83 void SmiJumpTable(Register index, Vector<Label*> targets); |
| 84 // Load an object from the root table. | 84 // Load an object from the root table. |
| 85 void LoadRoot(Register destination, | 85 void LoadRoot(Register destination, |
| 86 Heap::RootListIndex index, | 86 Heap::RootListIndex index, |
| 87 Condition cond = al); | 87 Condition cond = al); |
| 88 | 88 |
| 89 |
| 90 // Check if object is in new space. |
| 91 // scratch can be object itself, but it will be clobbered. |
| 92 void InNewSpace(Register object, |
| 93 Register scratch, |
| 94 Condition cc, // eq for new space, ne otherwise |
| 95 Label* branch); |
| 96 |
| 97 |
| 98 // Set the remebered set bit for an offset into an |
| 99 // object. RecordWriteHelper only works if the object is not in new |
| 100 // space. |
| 101 void RecordWriteHelper(Register object, Register offset, Register scracth); |
| 102 |
| 89 // Sets the remembered set bit for [address+offset], where address is the | 103 // Sets the remembered set bit for [address+offset], where address is the |
| 90 // address of the heap object 'object'. The address must be in the first 8K | 104 // address of the heap object 'object'. The address must be in the first 8K |
| 91 // of an allocated page. The 'scratch' register is used in the | 105 // of an allocated page. The 'scratch' register is used in the |
| 92 // implementation and all 3 registers are clobbered by the operation, as | 106 // implementation and all 3 registers are clobbered by the operation, as |
| 93 // well as the ip register. | 107 // well as the ip register. |
| 94 void RecordWrite(Register object, Register offset, Register scratch); | 108 void RecordWrite(Register object, Register offset, Register scratch); |
| 95 | 109 |
| 96 // Push two registers. Pushes leftmost register first (to highest address). | 110 // Push two registers. Pushes leftmost register first (to highest address). |
| 97 void Push(Register src1, Register src2, Condition cond = al) { | 111 void Push(Register src1, Register src2, Condition cond = al) { |
| 98 ASSERT(!src1.is(src2)); | 112 ASSERT(!src1.is(src2)); |
| (...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 617 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 604 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 618 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 605 #else | 619 #else |
| 606 #define ACCESS_MASM(masm) masm-> | 620 #define ACCESS_MASM(masm) masm-> |
| 607 #endif | 621 #endif |
| 608 | 622 |
| 609 | 623 |
| 610 } } // namespace v8::internal | 624 } } // namespace v8::internal |
| 611 | 625 |
| 612 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 626 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |