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

Side by Side Diff: runtime/vm/assembler_ia32.h

Issue 8888020: Teach the assembler how to generate multi-byte nops. Teach the (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years 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
« no previous file with comments | « no previous file | runtime/vm/assembler_ia32.cc » ('j') | runtime/vm/assembler_ia32.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_ASSEMBLER_IA32_H_ 5 #ifndef VM_ASSEMBLER_IA32_H_
6 #define VM_ASSEMBLER_IA32_H_ 6 #define VM_ASSEMBLER_IA32_H_
7 7
8 #ifndef VM_ASSEMBLER_H_ 8 #ifndef VM_ASSEMBLER_H_
9 #error Do not include assembler_ia32.h directly; use assembler.h instead. 9 #error Do not include assembler_ia32.h directly; use assembler.h instead.
10 #endif 10 #endif
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 478
479 void negl(Register reg); 479 void negl(Register reg);
480 void notl(Register reg); 480 void notl(Register reg);
481 481
482 void enter(const Immediate& imm); 482 void enter(const Immediate& imm);
483 void leave(); 483 void leave();
484 484
485 void ret(); 485 void ret();
486 void ret(const Immediate& imm); 486 void ret(const Immediate& imm);
487 487
488 void nop(); 488 void nop(int size = 1);
489 void int3(); 489 void int3();
490 void hlt(); 490 void hlt();
491 491
492 void j(Condition condition, Label* label, bool near = kFarJump); 492 void j(Condition condition, Label* label, bool near = kFarJump);
493 void j(Condition condition, const ExternalLabel* label); 493 void j(Condition condition, const ExternalLabel* label);
494 494
495 void jmp(Register reg); 495 void jmp(Register reg);
496 void jmp(Label* label, bool near = kFarJump); 496 void jmp(Label* label, bool near = kFarJump);
497 void jmp(const ExternalLabel* label); 497 void jmp(const ExternalLabel* label);
498 498
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 } 614 }
615 615
616 616
617 inline void Assembler::EmitOperandSizeOverride() { 617 inline void Assembler::EmitOperandSizeOverride() {
618 EmitUint8(0x66); 618 EmitUint8(0x66);
619 } 619 }
620 620
621 } // namespace dart 621 } // namespace dart
622 622
623 #endif // VM_ASSEMBLER_IA32_H_ 623 #endif // VM_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/assembler_ia32.cc » ('j') | runtime/vm/assembler_ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698