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

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

Issue 181183004: VM: Improve receiver class check in polymorphic inlining. (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
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_X64) 6 #if defined(TARGET_ARCH_X64)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/cpu.h" 9 #include "vm/cpu.h"
10 #include "vm/heap.h" 10 #include "vm/heap.h"
(...skipping 2106 matching lines...) Expand 10 before | Expand all | Expand 10 after
2117 } 2117 }
2118 2118
2119 2119
2120 void Assembler::notq(Register reg) { 2120 void Assembler::notq(Register reg) {
2121 AssemblerBuffer::EnsureCapacity ensured(&buffer_); 2121 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
2122 EmitRegisterREX(reg, REX_W); 2122 EmitRegisterREX(reg, REX_W);
2123 EmitUint8(0xF7); 2123 EmitUint8(0xF7);
2124 EmitUint8(0xD0 | (reg & 7)); 2124 EmitUint8(0xD0 | (reg & 7));
2125 } 2125 }
2126 2126
2127 void Assembler::btq(Register base, Register offset) {
2128 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
2129 Operand operand(base);
2130 EmitOperandREX(offset, operand, REX_W);
2131 EmitUint8(0x0F);
2132 EmitUint8(0xA3);
2133 EmitOperand(offset & 7, operand);
2134 }
2135
2127 2136
2128 void Assembler::enter(const Immediate& imm) { 2137 void Assembler::enter(const Immediate& imm) {
2129 AssemblerBuffer::EnsureCapacity ensured(&buffer_); 2138 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
2130 EmitUint8(0xC8); 2139 EmitUint8(0xC8);
2131 ASSERT(imm.is_uint16()); 2140 ASSERT(imm.is_uint16());
2132 EmitUint8(imm.value() & 0xFF); 2141 EmitUint8(imm.value() & 0xFF);
2133 EmitUint8((imm.value() >> 8) & 0xFF); 2142 EmitUint8((imm.value() >> 8) & 0xFF);
2134 EmitUint8(0x00); 2143 EmitUint8(0x00);
2135 } 2144 }
2136 2145
(...skipping 1226 matching lines...) Expand 10 before | Expand all | Expand 10 after
3363 3372
3364 3373
3365 const char* Assembler::FpuRegisterName(FpuRegister reg) { 3374 const char* Assembler::FpuRegisterName(FpuRegister reg) {
3366 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); 3375 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters));
3367 return xmm_reg_names[reg]; 3376 return xmm_reg_names[reg];
3368 } 3377 }
3369 3378
3370 } // namespace dart 3379 } // namespace dart
3371 3380
3372 #endif // defined TARGET_ARCH_X64 3381 #endif // defined TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698