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

Side by Side Diff: vm/assembler_arm.h

Issue 10664004: Fix issue 1968, replace usage of inline 'asm' constructs in 'stack alignment', 'jump to exception h… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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
« no previous file with comments | « no previous file | vm/assembler_ia32.h » ('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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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_ARM_H_ 5 #ifndef VM_ASSEMBLER_ARM_H_
6 #define VM_ASSEMBLER_ARM_H_ 6 #define VM_ASSEMBLER_ARM_H_
7 7
8 #ifndef VM_ASSEMBLER_H_ 8 #ifndef VM_ASSEMBLER_H_
9 #error Do not include assembler_arm.h directly; use assembler.h instead. 9 #error Do not include assembler_arm.h directly; use assembler.h instead.
10 #endif 10 #endif
11 11
12 #include "platform/assert.h" 12 #include "platform/assert.h"
13 #include "vm/constants_arm.h" 13 #include "vm/constants_arm.h"
14 14
15 namespace dart { 15 namespace dart {
16 16
17 #if defined(TESTING) || defined(DEBUG)
18
19 #define CHECK_STACK_ALIGNMENT { \
20 UNIMPLEMENTED(); \
21 }
22
23 #else
24
25 #define CHECK_STACK_ALIGNMENT { }
26
27 #endif
28
29
30 class Label : public ValueObject { 17 class Label : public ValueObject {
31 public: 18 public:
32 Label() : position_(0) { } 19 Label() : position_(0) { }
33 20
34 ~Label() { 21 ~Label() {
35 // Assert if label is being destroyed with unresolved branches pending. 22 // Assert if label is being destroyed with unresolved branches pending.
36 ASSERT(!IsLinked()); 23 ASSERT(!IsLinked());
37 } 24 }
38 25
39 // Returns the position for bound and linked labels. Cannot be used 26 // Returns the position for bound and linked labels. Cannot be used
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 97
111 private: 98 private:
112 ZoneGrowableArray<int>* pointer_offsets_; 99 ZoneGrowableArray<int>* pointer_offsets_;
113 DISALLOW_ALLOCATION(); 100 DISALLOW_ALLOCATION();
114 DISALLOW_COPY_AND_ASSIGN(Assembler); 101 DISALLOW_COPY_AND_ASSIGN(Assembler);
115 }; 102 };
116 103
117 } // namespace dart 104 } // namespace dart
118 105
119 #endif // VM_ASSEMBLER_ARM_H_ 106 #endif // VM_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | vm/assembler_ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698