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

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

Issue 10450014: Request for comments on overall approach. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix scavenger and freelist handling Created 8 years, 7 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_ia32.cc » ('j') | runtime/vm/freelist.h » ('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_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 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 lock(); 522 lock();
523 cmpxchgl(address, reg); 523 cmpxchgl(address, reg);
524 } 524 }
525 525
526 void EnterFrame(intptr_t frame_space); 526 void EnterFrame(intptr_t frame_space);
527 void LeaveFrame(); 527 void LeaveFrame();
528 528
529 void CallRuntime(const RuntimeEntry& entry); 529 void CallRuntime(const RuntimeEntry& entry);
530 530
531 /* 531 /*
532 * Loading and comparing classes of objects
533 */
534 void GetClassOf(Register result, Register object, Register scratch);
535
536 void LoadObjectClassId(Register result, Register object);
537
538 void CompareClassOf(Register object, const Class& clazz, Register scratch);
Ivan Posva 2012/05/26 04:34:46 When do you ever have to compare classes? Or asked
Vyacheslav Egorov (Google) 2012/05/26 16:48:22 This macros was introduced initially to cover a ve
539
540 void CompareClassId(Register clsid, const Class& cls) {
541 cmpl(clsid, Immediate(cls.index()));
542 }
543
544 /*
532 * Misc. functionality 545 * Misc. functionality
533 */ 546 */
534 void SmiTag(Register reg) { 547 void SmiTag(Register reg) {
535 addl(reg, reg); 548 addl(reg, reg);
536 } 549 }
537 550
538 void SmiUntag(Register reg) { 551 void SmiUntag(Register reg) {
539 sarl(reg, Immediate(kSmiTagSize)); 552 sarl(reg, Immediate(kSmiTagSize));
540 } 553 }
541 554
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 } 646 }
634 647
635 648
636 inline void Assembler::EmitOperandSizeOverride() { 649 inline void Assembler::EmitOperandSizeOverride() {
637 EmitUint8(0x66); 650 EmitUint8(0x66);
638 } 651 }
639 652
640 } // namespace dart 653 } // namespace dart
641 654
642 #endif // VM_ASSEMBLER_IA32_H_ 655 #endif // VM_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/assembler_ia32.cc » ('j') | runtime/vm/freelist.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698