Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(461)

Side by Side Diff: src/ia32/assembler-ia32.cc

Issue 57383004: Improve implementation of HSeqStringSetChar. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Increase GVNFlags to 64bit. Add StringChars flag. Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 546
547 547
548 void Assembler::mov_w(const Operand& dst, Register src) { 548 void Assembler::mov_w(const Operand& dst, Register src) {
549 EnsureSpace ensure_space(this); 549 EnsureSpace ensure_space(this);
550 EMIT(0x66); 550 EMIT(0x66);
551 EMIT(0x89); 551 EMIT(0x89);
552 emit_operand(src, dst); 552 emit_operand(src, dst);
553 } 553 }
554 554
555 555
556 void Assembler::mov_w(const Operand& dst, int16_t imm16) {
557 EnsureSpace ensure_space(this);
558 EMIT(0x66);
559 EMIT(0xC7);
560 emit_operand(eax, dst);
561 EMIT(static_cast<int8_t>(imm16 & 0xff));
562 EMIT(static_cast<int8_t>(imm16 >> 8));
563 }
564
565
556 void Assembler::mov(Register dst, int32_t imm32) { 566 void Assembler::mov(Register dst, int32_t imm32) {
557 EnsureSpace ensure_space(this); 567 EnsureSpace ensure_space(this);
558 EMIT(0xB8 | dst.code()); 568 EMIT(0xB8 | dst.code());
559 emit(imm32); 569 emit(imm32);
560 } 570 }
561 571
562 572
563 void Assembler::mov(Register dst, const Immediate& x) { 573 void Assembler::mov(Register dst, const Immediate& x) {
564 EnsureSpace ensure_space(this); 574 EnsureSpace ensure_space(this);
565 EMIT(0xB8 | dst.code()); 575 EMIT(0xB8 | dst.code());
(...skipping 2123 matching lines...) Expand 10 before | Expand all | Expand 10 after
2689 fprintf(coverage_log, "%s\n", file_line); 2699 fprintf(coverage_log, "%s\n", file_line);
2690 fflush(coverage_log); 2700 fflush(coverage_log);
2691 } 2701 }
2692 } 2702 }
2693 2703
2694 #endif 2704 #endif
2695 2705
2696 } } // namespace v8::internal 2706 } } // namespace v8::internal
2697 2707
2698 #endif // V8_TARGET_ARCH_IA32 2708 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/assembler-ia32.h ('k') | src/ia32/disasm-ia32.cc » ('j') | src/ia32/lithium-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698