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

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

Issue 10440099: Adding unary op optimizations. missing assembly operations/ (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 months 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_x64.cc » ('j') | runtime/vm/assembler_x64.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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_X64_H_ 5 #ifndef VM_ASSEMBLER_X64_H_
6 #define VM_ASSEMBLER_X64_H_ 6 #define VM_ASSEMBLER_X64_H_
7 7
8 #ifndef VM_ASSEMBLER_H_ 8 #ifndef VM_ASSEMBLER_H_
9 #error Do not include assembler_x64.h directly; use assembler.h instead. 9 #error Do not include assembler_x64.h directly; use assembler.h instead.
10 #endif 10 #endif
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 void incl(const Address& address); 450 void incl(const Address& address);
451 void decl(const Address& address); 451 void decl(const Address& address);
452 452
453 void incq(Register reg); 453 void incq(Register reg);
454 void incq(const Address& address); 454 void incq(const Address& address);
455 void decq(Register reg); 455 void decq(Register reg);
456 void decq(const Address& address); 456 void decq(const Address& address);
457 457
458 void negl(Register reg); 458 void negl(Register reg);
459 void negq(Register reg); 459 void negq(Register reg);
460 void notl(Register reg);
461 void notq(Register reg);
460 462
461 void enter(const Immediate& imm); 463 void enter(const Immediate& imm);
462 void leave(); 464 void leave();
463 void ret(); 465 void ret();
464 466
467 void xorpd(XmmRegister dst, const Address& src);
468
465 // 'size' indicates size in bytes and must be in the range 1..8. 469 // 'size' indicates size in bytes and must be in the range 1..8.
466 void nop(int size = 1); 470 void nop(int size = 1);
467 void int3(); 471 void int3();
468 void hlt(); 472 void hlt();
469 473
470 void j(Condition condition, Label* label, bool near = kFarJump); 474 void j(Condition condition, Label* label, bool near = kFarJump);
471 void j(Condition condition, const ExternalLabel* label); 475 void j(Condition condition, const ExternalLabel* label);
472 476
473 void jmp(Register reg); 477 void jmp(Register reg);
474 void jmp(Label* label, bool near = kFarJump); 478 void jmp(Label* label, bool near = kFarJump);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 lock(); 516 lock();
513 cmpxchgl(address, reg); 517 cmpxchgl(address, reg);
514 } 518 }
515 519
516 void EnterFrame(intptr_t frame_space); 520 void EnterFrame(intptr_t frame_space);
517 void LeaveFrame(); 521 void LeaveFrame();
518 522
519 void CallRuntime(const RuntimeEntry& entry); 523 void CallRuntime(const RuntimeEntry& entry);
520 524
521 /* 525 /*
526 * Loading and comparing classes of objects.
527 */
528 void LoadClassId(Register result, Register object);
529
530 void LoadClassById(Register result, Register class_id);
531
532 void LoadClass(Register result, Register object);
533
534 void CompareClassId(Register object, intptr_t class_id);
535
536 /*
522 * Misc. functionality. 537 * Misc. functionality.
523 */ 538 */
524 void SmiTag(Register reg) { 539 void SmiTag(Register reg) {
525 addq(reg, reg); 540 addq(reg, reg);
526 } 541 }
527 542
528 void SmiUntag(Register reg) { 543 void SmiUntag(Register reg) {
529 sarq(reg, Immediate(kSmiTagSize)); 544 sarq(reg, Immediate(kSmiTagSize));
530 } 545 }
531 546
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 } 651 }
637 652
638 653
639 inline void Assembler::EmitOperandSizeOverride() { 654 inline void Assembler::EmitOperandSizeOverride() {
640 EmitUint8(0x66); 655 EmitUint8(0x66);
641 } 656 }
642 657
643 } // namespace dart 658 } // namespace dart
644 659
645 #endif // VM_ASSEMBLER_X64_H_ 660 #endif // VM_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/assembler_x64.cc » ('j') | runtime/vm/assembler_x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698