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

Unified Diff: runtime/vm/assembler_macros_x64.h

Issue 8760015: Disable x64 disassembler under win32. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/assembler_macros.h ('k') | runtime/vm/assembler_macros_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_macros_x64.h
===================================================================
--- runtime/vm/assembler_macros_x64.h (revision 0)
+++ runtime/vm/assembler_macros_x64.h (revision 0)
@@ -0,0 +1,40 @@
+// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+// The class 'AssemblerMacros' contains assembler instruction groups that
+// are used in Dart.
+
+#ifndef VM_ASSEMBLER_MACROS_X64_H_
+#define VM_ASSEMBLER_MACROS_X64_H_
+
+#ifndef VM_ASSEMBLER_MACROS_H_
+#error Do not include assembler_macros_x64.h directly; use assembler_macros.h.
+#endif
+
+#include "vm/allocation.h"
+#include "vm/constants_x64.h"
+
+namespace dart {
+
+// Forward declarations.
+class Assembler;
+class Class;
+class Label;
+
+class AssemblerMacros : public AllStatic {
+ public:
+ // Inlined allocation of an instance of class 'cls', code has no runtime
+ // calls. Jump to 'failure' if the instance cannot be allocated here.
+ // Class must be loaded in 'class_reg'. Allocated instance is returned
+ // in 'instance_reg'. Only the class field of the object is initialized.
+ // 'class_reg' and 'instance_reg' may not be the same register.
+ static void TryAllocate(Assembler* assembler,
+ const Class& cls,
+ Register class_reg,
+ Label* failure,
+ Register instance_reg);
+};
+
+} // namespace dart.
+
+#endif // VM_ASSEMBLER_MACROS_X64_H_
« no previous file with comments | « runtime/vm/assembler_macros.h ('k') | runtime/vm/assembler_macros_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698