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 1276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1287 mov_b(Operand(destination, 0), scratch); | 1287 mov_b(Operand(destination, 0), scratch); |
1288 inc(source); | 1288 inc(source); |
1289 inc(destination); | 1289 inc(destination); |
1290 dec(length); | 1290 dec(length); |
1291 j(not_zero, &short_loop); | 1291 j(not_zero, &short_loop); |
1292 | 1292 |
1293 bind(&done); | 1293 bind(&done); |
1294 } | 1294 } |
1295 | 1295 |
1296 | 1296 |
| 1297 void MacroAssembler::InitializeFieldsWithFiller(Register start_offset, |
| 1298 Register end_offset, |
| 1299 Register filler) { |
| 1300 Label loop, entry; |
| 1301 jmp(&entry); |
| 1302 bind(&loop); |
| 1303 mov(Operand(start_offset, 0), filler); |
| 1304 add(Operand(start_offset), Immediate(kPointerSize)); |
| 1305 bind(&entry); |
| 1306 cmp(start_offset, Operand(end_offset)); |
| 1307 j(less, &loop); |
| 1308 } |
| 1309 |
| 1310 |
1297 void MacroAssembler::NegativeZeroTest(Register result, | 1311 void MacroAssembler::NegativeZeroTest(Register result, |
1298 Register op, | 1312 Register op, |
1299 Label* then_label) { | 1313 Label* then_label) { |
1300 Label ok; | 1314 Label ok; |
1301 test(result, Operand(result)); | 1315 test(result, Operand(result)); |
1302 j(not_zero, &ok); | 1316 j(not_zero, &ok); |
1303 test(op, Operand(op)); | 1317 test(op, Operand(op)); |
1304 j(sign, then_label); | 1318 j(sign, then_label); |
1305 bind(&ok); | 1319 bind(&ok); |
1306 } | 1320 } |
(...skipping 1004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2311 | 2325 |
2312 // Check that the code was patched as expected. | 2326 // Check that the code was patched as expected. |
2313 ASSERT(masm_.pc_ == address_ + size_); | 2327 ASSERT(masm_.pc_ == address_ + size_); |
2314 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); | 2328 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); |
2315 } | 2329 } |
2316 | 2330 |
2317 | 2331 |
2318 } } // namespace v8::internal | 2332 } } // namespace v8::internal |
2319 | 2333 |
2320 #endif // V8_TARGET_ARCH_IA32 | 2334 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |