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 1343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1354 } | 1354 } |
1355 | 1355 |
1356 | 1356 |
1357 void MacroAssembler::Drop(int stack_elements) { | 1357 void MacroAssembler::Drop(int stack_elements) { |
1358 if (stack_elements > 0) { | 1358 if (stack_elements > 0) { |
1359 add(Operand(esp), Immediate(stack_elements * kPointerSize)); | 1359 add(Operand(esp), Immediate(stack_elements * kPointerSize)); |
1360 } | 1360 } |
1361 } | 1361 } |
1362 | 1362 |
1363 | 1363 |
| 1364 void MacroAssembler::Move(Register dst, Register src) { |
| 1365 if (!dst.is(src)) { |
| 1366 mov(dst, src); |
| 1367 } |
| 1368 } |
| 1369 |
| 1370 |
1364 void MacroAssembler::Move(Register dst, Handle<Object> value) { | 1371 void MacroAssembler::Move(Register dst, Handle<Object> value) { |
1365 mov(dst, value); | 1372 mov(dst, value); |
1366 } | 1373 } |
1367 | 1374 |
1368 | 1375 |
1369 void MacroAssembler::SetCounter(StatsCounter* counter, int value) { | 1376 void MacroAssembler::SetCounter(StatsCounter* counter, int value) { |
1370 if (FLAG_native_code_counters && counter->Enabled()) { | 1377 if (FLAG_native_code_counters && counter->Enabled()) { |
1371 mov(Operand::StaticVariable(ExternalReference(counter)), Immediate(value)); | 1378 mov(Operand::StaticVariable(ExternalReference(counter)), Immediate(value)); |
1372 } | 1379 } |
1373 } | 1380 } |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1654 | 1661 |
1655 // Check that the code was patched as expected. | 1662 // Check that the code was patched as expected. |
1656 ASSERT(masm_.pc_ == address_ + size_); | 1663 ASSERT(masm_.pc_ == address_ + size_); |
1657 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); | 1664 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); |
1658 } | 1665 } |
1659 | 1666 |
1660 | 1667 |
1661 } } // namespace v8::internal | 1668 } } // namespace v8::internal |
1662 | 1669 |
1663 #endif // V8_TARGET_ARCH_IA32 | 1670 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |