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

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

Issue 384703002: Revert r38116 because of crashes. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 5 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 | « runtime/vm/assembler_ia32.h ('k') | runtime/vm/assembler_ia32_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 #include "vm/globals.h" 5 #include "vm/globals.h"
6 #if defined(TARGET_ARCH_IA32) 6 #if defined(TARGET_ARCH_IA32)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/code_generator.h" 9 #include "vm/code_generator.h"
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 1756 matching lines...) Expand 10 before | Expand all | Expand 10 after
1767 1767
1768 1768
1769 void Assembler::bsrl(Register dst, Register src) { 1769 void Assembler::bsrl(Register dst, Register src) {
1770 AssemblerBuffer::EnsureCapacity ensured(&buffer_); 1770 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
1771 EmitUint8(0x0F); 1771 EmitUint8(0x0F);
1772 EmitUint8(0xBD); 1772 EmitUint8(0xBD);
1773 EmitRegisterOperand(dst, src); 1773 EmitRegisterOperand(dst, src);
1774 } 1774 }
1775 1775
1776 1776
1777 void Assembler::bt(Register base, Register offset) {
1778 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
1779 EmitUint8(0x0F);
1780 EmitUint8(0xA3);
1781 EmitRegisterOperand(offset, base);
1782 }
1783
1784
1785 void Assembler::enter(const Immediate& imm) { 1777 void Assembler::enter(const Immediate& imm) {
1786 AssemblerBuffer::EnsureCapacity ensured(&buffer_); 1778 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
1787 EmitUint8(0xC8); 1779 EmitUint8(0xC8);
1788 ASSERT(imm.is_uint16()); 1780 ASSERT(imm.is_uint16());
1789 EmitUint8(imm.value() & 0xFF); 1781 EmitUint8(imm.value() & 0xFF);
1790 EmitUint8((imm.value() >> 8) & 0xFF); 1782 EmitUint8((imm.value() >> 8) & 0xFF);
1791 EmitUint8(0x00); 1783 EmitUint8(0x00);
1792 } 1784 }
1793 1785
1794 1786
(...skipping 923 matching lines...) Expand 10 before | Expand all | Expand 10 after
2718 2710
2719 const char* Assembler::FpuRegisterName(FpuRegister reg) { 2711 const char* Assembler::FpuRegisterName(FpuRegister reg) {
2720 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); 2712 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters));
2721 return xmm_reg_names[reg]; 2713 return xmm_reg_names[reg];
2722 } 2714 }
2723 2715
2724 2716
2725 } // namespace dart 2717 } // namespace dart
2726 2718
2727 #endif // defined TARGET_ARCH_IA32 2719 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/assembler_ia32.h ('k') | runtime/vm/assembler_ia32_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698