| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 } | 114 } |
| 115 } | 115 } |
| 116 | 116 |
| 117 | 117 |
| 118 void MacroAssembler::RememberedSetHelper( | 118 void MacroAssembler::RememberedSetHelper( |
| 119 Register addr, | 119 Register addr, |
| 120 Register scratch, | 120 Register scratch, |
| 121 SaveFPRegsMode save_fp, | 121 SaveFPRegsMode save_fp, |
| 122 MacroAssembler::RememberedSetFinalAction and_then) { | 122 MacroAssembler::RememberedSetFinalAction and_then) { |
| 123 Label done; | 123 Label done; |
| 124 if (FLAG_debug_code) { |
| 125 Label ok; |
| 126 JumpIfNotInNewSpace(addr, scratch, &ok, Label::kNear); |
| 127 int3(); |
| 128 bind(&ok); |
| 129 } |
| 124 // Load store buffer top. | 130 // Load store buffer top. |
| 125 ExternalReference store_buffer = | 131 ExternalReference store_buffer = |
| 126 ExternalReference::store_buffer_top(isolate()); | 132 ExternalReference::store_buffer_top(isolate()); |
| 127 mov(scratch, Operand::StaticVariable(store_buffer)); | 133 mov(scratch, Operand::StaticVariable(store_buffer)); |
| 128 // Store pointer to buffer. | 134 // Store pointer to buffer. |
| 129 mov(Operand(scratch, 0), addr); | 135 mov(Operand(scratch, 0), addr); |
| 130 // Increment buffer top. | 136 // Increment buffer top. |
| 131 add(Operand(scratch), Immediate(kPointerSize)); | 137 add(Operand(scratch), Immediate(kPointerSize)); |
| 132 // Write back new top of buffer. | 138 // Write back new top of buffer. |
| 133 mov(Operand::StaticVariable(store_buffer), scratch); | 139 mov(Operand::StaticVariable(store_buffer), scratch); |
| (...skipping 2280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2414 | 2420 |
| 2415 // Value is a data object, and it is white. Mark it black. Since we know | 2421 // Value is a data object, and it is white. Mark it black. Since we know |
| 2416 // that the object is white we can make it black by flipping one bit. | 2422 // that the object is white we can make it black by flipping one bit. |
| 2417 or_(Operand(bitmap_scratch, MemoryChunk::kHeaderSize), mask_scratch); | 2423 or_(Operand(bitmap_scratch, MemoryChunk::kHeaderSize), mask_scratch); |
| 2418 bind(&done); | 2424 bind(&done); |
| 2419 } | 2425 } |
| 2420 | 2426 |
| 2421 } } // namespace v8::internal | 2427 } } // namespace v8::internal |
| 2422 | 2428 |
| 2423 #endif // V8_TARGET_ARCH_IA32 | 2429 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |