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

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

Issue 2897943002: Fix x64 precompiled target after prologue changed size (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | no next file » | 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" // NOLINT 5 #include "vm/globals.h" // NOLINT
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 3323 matching lines...) Expand 10 before | Expand all | Expand 10 after
3334 ASSERT(CodeSize() == Instructions::kCheckedEntryOffset); 3334 ASSERT(CodeSize() == Instructions::kCheckedEntryOffset);
3335 SmiUntag(RBX); 3335 SmiUntag(RBX);
3336 testq(RDI, Immediate(kSmiTagMask)); 3336 testq(RDI, Immediate(kSmiTagMask));
3337 j(ZERO, &immediate, kNearJump); 3337 j(ZERO, &immediate, kNearJump);
3338 3338
3339 LoadClassId(R10, RDI); 3339 LoadClassId(R10, RDI);
3340 3340
3341 Bind(&have_cid); 3341 Bind(&have_cid);
3342 cmpq(R10, RBX); 3342 cmpq(R10, RBX);
3343 j(NOT_EQUAL, &miss, Assembler::kNearJump); 3343 j(NOT_EQUAL, &miss, Assembler::kNearJump);
3344 nop();
3345 3344
3346 // Fall through to unchecked entry. 3345 // Fall through to unchecked entry.
3347 ASSERT(CodeSize() == Instructions::kUncheckedEntryOffset); 3346 ASSERT(CodeSize() == Instructions::kUncheckedEntryOffset);
3348 ASSERT((CodeSize() & kSmiTagMask) == kSmiTag); 3347 ASSERT((CodeSize() & kSmiTagMask) == kSmiTag);
3349 } 3348 }
3350 3349
3351 3350
3352 #ifndef PRODUCT 3351 #ifndef PRODUCT
3353 void Assembler::MaybeTraceAllocation(intptr_t cid, 3352 void Assembler::MaybeTraceAllocation(intptr_t cid,
3354 Label* trace, 3353 Label* trace,
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
3799 3798
3800 3799
3801 const char* Assembler::FpuRegisterName(FpuRegister reg) { 3800 const char* Assembler::FpuRegisterName(FpuRegister reg) {
3802 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); 3801 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters));
3803 return xmm_reg_names[reg]; 3802 return xmm_reg_names[reg];
3804 } 3803 }
3805 3804
3806 } // namespace dart 3805 } // namespace dart
3807 3806
3808 #endif // defined TARGET_ARCH_X64 3807 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698