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

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

Issue 381803005: Reland r38116: 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 2116 matching lines...) Expand 10 before | Expand all | Expand 10 after
2127 } 2127 }
2128 2128
2129 2129
2130 void Assembler::notq(Register reg) { 2130 void Assembler::notq(Register reg) {
2131 AssemblerBuffer::EnsureCapacity ensured(&buffer_); 2131 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
2132 EmitRegisterREX(reg, REX_W); 2132 EmitRegisterREX(reg, REX_W);
2133 EmitUint8(0xF7); 2133 EmitUint8(0xF7);
2134 EmitUint8(0xD0 | (reg & 7)); 2134 EmitUint8(0xD0 | (reg & 7));
2135 } 2135 }
2136 2136
2137 void Assembler::btq(Register base, Register offset) {
2138 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
2139 Operand operand(base);
2140 EmitOperandREX(offset, operand, REX_W);
2141 EmitUint8(0x0F);
2142 EmitUint8(0xA3);
2143 EmitOperand(offset & 7, operand);
2144 }
2145
2137 2146
2138 void Assembler::enter(const Immediate& imm) { 2147 void Assembler::enter(const Immediate& imm) {
2139 AssemblerBuffer::EnsureCapacity ensured(&buffer_); 2148 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
2140 EmitUint8(0xC8); 2149 EmitUint8(0xC8);
2141 ASSERT(imm.is_uint16()); 2150 ASSERT(imm.is_uint16());
2142 EmitUint8(imm.value() & 0xFF); 2151 EmitUint8(imm.value() & 0xFF);
2143 EmitUint8((imm.value() >> 8) & 0xFF); 2152 EmitUint8((imm.value() >> 8) & 0xFF);
2144 EmitUint8(0x00); 2153 EmitUint8(0x00);
2145 } 2154 }
2146 2155
(...skipping 1238 matching lines...) Expand 10 before | Expand all | Expand 10 after
3385 3394
3386 3395
3387 const char* Assembler::FpuRegisterName(FpuRegister reg) { 3396 const char* Assembler::FpuRegisterName(FpuRegister reg) {
3388 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); 3397 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters));
3389 return xmm_reg_names[reg]; 3398 return xmm_reg_names[reg];
3390 } 3399 }
3391 3400
3392 } // namespace dart 3401 } // namespace dart
3393 3402
3394 #endif // defined TARGET_ARCH_X64 3403 #endif // defined TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698