| OLD | NEW |
| 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
| 2 // All Rights Reserved. | 2 // All Rights Reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions | 5 // modification, are permitted provided that the following conditions |
| 6 // are met: | 6 // are met: |
| 7 // | 7 // |
| 8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
| 9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
| 10 // | 10 // |
| (...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 } | 455 } |
| 456 | 456 |
| 457 | 457 |
| 458 void Assembler::push(const Operand& src) { | 458 void Assembler::push(const Operand& src) { |
| 459 EnsureSpace ensure_space(this); | 459 EnsureSpace ensure_space(this); |
| 460 EMIT(0xFF); | 460 EMIT(0xFF); |
| 461 emit_operand(esi, src); | 461 emit_operand(esi, src); |
| 462 } | 462 } |
| 463 | 463 |
| 464 | 464 |
| 465 void Assembler::push(Handle<Object> handle) { |
| 466 EnsureSpace ensure_space(this); |
| 467 EMIT(0x68); |
| 468 emit(handle); |
| 469 } |
| 470 |
| 471 |
| 465 void Assembler::pop(Register dst) { | 472 void Assembler::pop(Register dst) { |
| 466 ASSERT(reloc_info_writer.last_pc() != NULL); | 473 ASSERT(reloc_info_writer.last_pc() != NULL); |
| 467 EnsureSpace ensure_space(this); | 474 EnsureSpace ensure_space(this); |
| 468 EMIT(0x58 | dst.code()); | 475 EMIT(0x58 | dst.code()); |
| 469 } | 476 } |
| 470 | 477 |
| 471 | 478 |
| 472 void Assembler::pop(const Operand& dst) { | 479 void Assembler::pop(const Operand& dst) { |
| 473 EnsureSpace ensure_space(this); | 480 EnsureSpace ensure_space(this); |
| 474 EMIT(0x8F); | 481 EMIT(0x8F); |
| (...skipping 2011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2486 fprintf(coverage_log, "%s\n", file_line); | 2493 fprintf(coverage_log, "%s\n", file_line); |
| 2487 fflush(coverage_log); | 2494 fflush(coverage_log); |
| 2488 } | 2495 } |
| 2489 } | 2496 } |
| 2490 | 2497 |
| 2491 #endif | 2498 #endif |
| 2492 | 2499 |
| 2493 } } // namespace v8::internal | 2500 } } // namespace v8::internal |
| 2494 | 2501 |
| 2495 #endif // V8_TARGET_ARCH_IA32 | 2502 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |