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 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. |
6 #if defined(TARGET_ARCH_IA32) | 6 #if defined(TARGET_ARCH_IA32) |
7 | 7 |
8 #include "vm/cpu.h" | 8 #include "vm/cpu.h" |
9 #include "vm/instructions.h" | 9 #include "vm/instructions.h" |
10 #include "vm/object.h" | 10 #include "vm/object.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 return kCallPattern; | 42 return kCallPattern; |
43 } | 43 } |
44 | 44 |
45 | 45 |
46 const int* JumpPattern::pattern() const { | 46 const int* JumpPattern::pattern() const { |
47 static const int kJumpPattern[kLengthInBytes] = {0xE9, -1, -1, -1, -1}; | 47 static const int kJumpPattern[kLengthInBytes] = {0xE9, -1, -1, -1, -1}; |
48 return kJumpPattern; | 48 return kJumpPattern; |
49 } | 49 } |
50 | 50 |
51 | 51 |
| 52 const int* ReturnPattern::pattern() const { |
| 53 static const int kReturnPattern[kLengthInBytes] = { 0xC3 }; |
| 54 return kReturnPattern; |
| 55 } |
| 56 |
| 57 |
52 } // namespace dart | 58 } // namespace dart |
53 | 59 |
54 #endif // defined TARGET_ARCH_IA32 | 60 #endif // defined TARGET_ARCH_IA32 |
OLD | NEW |