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

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

Issue 21363003: Enables per-function far-branches for ARM and MIPS. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 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 #ifndef VM_ASSEMBLER_X64_H_ 5 #ifndef VM_ASSEMBLER_X64_H_
6 #define VM_ASSEMBLER_X64_H_ 6 #define VM_ASSEMBLER_X64_H_
7 7
8 #ifndef VM_ASSEMBLER_H_ 8 #ifndef VM_ASSEMBLER_H_
9 #error Do not include assembler_x64.h directly; use assembler.h instead. 9 #error Do not include assembler_x64.h directly; use assembler.h instead.
10 #endif 10 #endif
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 314
315 static bool sse4_1_supported_; 315 static bool sse4_1_supported_;
316 #ifdef DEBUG 316 #ifdef DEBUG
317 static bool initialized_; 317 static bool initialized_;
318 #endif 318 #endif
319 }; 319 };
320 320
321 321
322 class Assembler : public ValueObject { 322 class Assembler : public ValueObject {
323 public: 323 public:
324 Assembler() 324 explicit Assembler(bool use_far_branches = false)
325 : buffer_(), 325 : buffer_(),
326 object_pool_(GrowableObjectArray::Handle()), 326 object_pool_(GrowableObjectArray::Handle()),
327 prologue_offset_(-1), 327 prologue_offset_(-1),
328 comments_() { } 328 comments_() {
329 // This mode is only needed and implemented for MIPS and ARM.
330 ASSERT(!use_far_branches);
331 }
329 ~Assembler() { } 332 ~Assembler() { }
330 333
331 static const bool kNearJump = true; 334 static const bool kNearJump = true;
332 static const bool kFarJump = false; 335 static const bool kFarJump = false;
333 336
334 /* 337 /*
335 * Emit Machine Instructions. 338 * Emit Machine Instructions.
336 */ 339 */
337 void call(Register reg); 340 void call(Register reg);
338 void call(const Address& address); 341 void call(const Address& address);
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
932 } 935 }
933 936
934 937
935 inline void Assembler::EmitOperandSizeOverride() { 938 inline void Assembler::EmitOperandSizeOverride() {
936 EmitUint8(0x66); 939 EmitUint8(0x66);
937 } 940 }
938 941
939 } // namespace dart 942 } // namespace dart
940 943
941 #endif // VM_ASSEMBLER_X64_H_ 944 #endif // VM_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « runtime/vm/assembler_mips.cc ('k') | runtime/vm/compiler.cc » ('j') | runtime/vm/compiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698