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 #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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 48 return kJumpPattern; | 48 return kJumpPattern; |
| 49 } | 49 } |
| 50 | 50 |
| 51 | 51 |
| 52 const int* ReturnPattern::pattern() const { | 52 const int* ReturnPattern::pattern() const { |
| 53 static const int kReturnPattern[kLengthInBytes] = { 0xC3 }; | 53 static const int kReturnPattern[kLengthInBytes] = { 0xC3 }; |
| 54 return kReturnPattern; | 54 return kReturnPattern; |
| 55 } | 55 } |
| 56 | 56 |
| 57 | 57 |
| 58 const int* ProloguePattern::pattern() const { | |
|
srdjan
2015/05/21 16:06:33
maybe describe somewhere what kind of prolog you a
Cutch
2015/05/22 01:11:14
Done.
| |
| 59 static const int kProloguePattern[kLengthInBytes] = { 0x55, 0x89, 0xe5 }; | |
| 60 return kProloguePattern; | |
| 61 } | |
| 62 | |
| 63 | |
| 64 const int* SetFramePointerPattern::pattern() const { | |
| 65 static const int kFramePointerPattern[kLengthInBytes] = { 0x89, 0xe5 }; | |
| 66 return kFramePointerPattern; | |
| 67 } | |
| 68 | |
| 58 } // namespace dart | 69 } // namespace dart |
| 59 | 70 |
| 60 #endif // defined TARGET_ARCH_IA32 | 71 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |