| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_PPC_MACRO_ASSEMBLER_PPC_H_ | 5 #ifndef V8_PPC_MACRO_ASSEMBLER_PPC_H_ |
| 6 #define V8_PPC_MACRO_ASSEMBLER_PPC_H_ | 6 #define V8_PPC_MACRO_ASSEMBLER_PPC_H_ |
| 7 | 7 |
| 8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
| 9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
| 10 #include "src/frames.h" | 10 #include "src/frames.h" |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 Register addr, Register scratch, | 196 Register addr, Register scratch, |
| 197 SaveFPRegsMode save_fp, | 197 SaveFPRegsMode save_fp, |
| 198 RememberedSetFinalAction and_then); | 198 RememberedSetFinalAction and_then); |
| 199 | 199 |
| 200 void CheckPageFlag(Register object, Register scratch, int mask, Condition cc, | 200 void CheckPageFlag(Register object, Register scratch, int mask, Condition cc, |
| 201 Label* condition_met); | 201 Label* condition_met); |
| 202 | 202 |
| 203 // Check if object is in new space. Jumps if the object is not in new space. | 203 // Check if object is in new space. Jumps if the object is not in new space. |
| 204 // The register scratch can be object itself, but scratch will be clobbered. | 204 // The register scratch can be object itself, but scratch will be clobbered. |
| 205 void JumpIfNotInNewSpace(Register object, Register scratch, Label* branch) { | 205 void JumpIfNotInNewSpace(Register object, Register scratch, Label* branch) { |
| 206 InNewSpace(object, scratch, ne, branch); | 206 InNewSpace(object, scratch, eq, branch); |
| 207 } | 207 } |
| 208 | 208 |
| 209 // Check if object is in new space. Jumps if the object is in new space. | 209 // Check if object is in new space. Jumps if the object is in new space. |
| 210 // The register scratch can be object itself, but it will be clobbered. | 210 // The register scratch can be object itself, but it will be clobbered. |
| 211 void JumpIfInNewSpace(Register object, Register scratch, Label* branch) { | 211 void JumpIfInNewSpace(Register object, Register scratch, Label* branch) { |
| 212 InNewSpace(object, scratch, eq, branch); | 212 InNewSpace(object, scratch, ne, branch); |
| 213 } | 213 } |
| 214 | 214 |
| 215 // Check if an object has a given incremental marking color. | 215 // Check if an object has a given incremental marking color. |
| 216 void HasColor(Register object, Register scratch0, Register scratch1, | 216 void HasColor(Register object, Register scratch0, Register scratch1, |
| 217 Label* has_color, int first_bit, int second_bit); | 217 Label* has_color, int first_bit, int second_bit); |
| 218 | 218 |
| 219 void JumpIfBlack(Register object, Register scratch0, Register scratch1, | 219 void JumpIfBlack(Register object, Register scratch0, Register scratch1, |
| 220 Label* on_black); | 220 Label* on_black); |
| 221 | 221 |
| 222 // Checks the color of an object. If the object is white we jump to the | 222 // Checks the color of an object. If the object is white we jump to the |
| (...skipping 1384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1607 #define ACCESS_MASM(masm) \ | 1607 #define ACCESS_MASM(masm) \ |
| 1608 masm->stop(__FILE_LINE__); \ | 1608 masm->stop(__FILE_LINE__); \ |
| 1609 masm-> | 1609 masm-> |
| 1610 #else | 1610 #else |
| 1611 #define ACCESS_MASM(masm) masm-> | 1611 #define ACCESS_MASM(masm) masm-> |
| 1612 #endif | 1612 #endif |
| 1613 } // namespace internal | 1613 } // namespace internal |
| 1614 } // namespace v8 | 1614 } // namespace v8 |
| 1615 | 1615 |
| 1616 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ | 1616 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ |
| OLD | NEW |