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

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

Issue 839273002: Fix mac x64 debug build by using fixed-length encoding. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 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/flow_graph_compiler_x64.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" // 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 3068 matching lines...) Expand 10 before | Expand all | Expand 10 after
3079 j(EQUAL, &ok, Assembler::kNearJump); 3079 j(EQUAL, &ok, Assembler::kNearJump);
3080 Stop("Expected zapped, Smi or null"); 3080 Stop("Expected zapped, Smi or null");
3081 Bind(&ok); 3081 Bind(&ok);
3082 } 3082 }
3083 3083
3084 3084
3085 void Assembler::VerifySmi(const Address& dest, const char* stop_msg) { 3085 void Assembler::VerifySmi(const Address& dest, const char* stop_msg) {
3086 Label done; 3086 Label done;
3087 testb(dest, Immediate(kHeapObjectTag)); 3087 testb(dest, Immediate(kHeapObjectTag));
3088 j(ZERO, &done, Assembler::kNearJump); 3088 j(ZERO, &done, Assembler::kNearJump);
3089 Stop(stop_msg); 3089 static const bool kFixedLengthEncoding = true;
3090 Stop(stop_msg, kFixedLengthEncoding);
3090 Bind(&done); 3091 Bind(&done);
3091 } 3092 }
3092 #endif // defined(DEBUG) 3093 #endif // defined(DEBUG)
3093 3094
3094 3095
3095 void Assembler::StoreIntoObject(Register object, 3096 void Assembler::StoreIntoObject(Register object,
3096 const Address& dest, 3097 const Address& dest,
3097 Register value, 3098 Register value,
3098 bool can_value_be_smi) { 3099 bool can_value_be_smi) {
3099 ASSERT(object != value); 3100 ASSERT(object != value);
(...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after
3999 4000
4000 4001
4001 const char* Assembler::FpuRegisterName(FpuRegister reg) { 4002 const char* Assembler::FpuRegisterName(FpuRegister reg) {
4002 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); 4003 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters));
4003 return xmm_reg_names[reg]; 4004 return xmm_reg_names[reg];
4004 } 4005 }
4005 4006
4006 } // namespace dart 4007 } // namespace dart
4007 4008
4008 #endif // defined TARGET_ARCH_X64 4009 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698