Chromium Code Reviews| OLD | NEW |
|---|---|
| 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_H_ | 5 #ifndef VM_ASSEMBLER_H_ |
| 6 #define VM_ASSEMBLER_H_ | 6 #define VM_ASSEMBLER_H_ |
| 7 | 7 |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 #include "vm/allocation.h" | 9 #include "vm/allocation.h" |
| 10 #include "vm/globals.h" | 10 #include "vm/globals.h" |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 189 // description of kMinimumGap for the reasoning behind the value. | 189 // description of kMinimumGap for the reasoning behind the value. |
| 190 static uword ComputeLimit(uword data, intptr_t capacity) { | 190 static uword ComputeLimit(uword data, intptr_t capacity) { |
| 191 return data + capacity - kMinimumGap; | 191 return data + capacity - kMinimumGap; |
| 192 } | 192 } |
| 193 | 193 |
| 194 void ExtendCapacity(); | 194 void ExtendCapacity(); |
| 195 | 195 |
| 196 friend class AssemblerFixup; | 196 friend class AssemblerFixup; |
| 197 }; | 197 }; |
| 198 | 198 |
| 199 | |
| 200 enum ValueSminess { | |
|
Ivan Posva
2013/03/22 04:11:35
You need to get a better name for this enum or jus
Vyacheslav Egorov (Google)
2013/03/22 11:22:50
Killed enum, using boolean instead.
| |
| 201 kValueCanBeSmi, | |
| 202 kValueIsNotSmi | |
| 203 }; | |
| 204 | |
| 199 } // namespace dart | 205 } // namespace dart |
| 200 | 206 |
| 201 | 207 |
| 202 #if defined(TARGET_ARCH_IA32) | 208 #if defined(TARGET_ARCH_IA32) |
| 203 #include "vm/assembler_ia32.h" | 209 #include "vm/assembler_ia32.h" |
| 204 #elif defined(TARGET_ARCH_X64) | 210 #elif defined(TARGET_ARCH_X64) |
| 205 #include "vm/assembler_x64.h" | 211 #include "vm/assembler_x64.h" |
| 206 #elif defined(TARGET_ARCH_ARM) | 212 #elif defined(TARGET_ARCH_ARM) |
| 207 #include "vm/assembler_arm.h" | 213 #include "vm/assembler_arm.h" |
| 208 #elif defined(TARGET_ARCH_MIPS) | 214 #elif defined(TARGET_ARCH_MIPS) |
| 209 #include "vm/assembler_mips.h" | 215 #include "vm/assembler_mips.h" |
| 210 #else | 216 #else |
| 211 #error Unknown architecture. | 217 #error Unknown architecture. |
| 212 #endif | 218 #endif |
| 213 | 219 |
| 214 #endif // VM_ASSEMBLER_H_ | 220 #endif // VM_ASSEMBLER_H_ |
| OLD | NEW |