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

Side by Side Diff: runtime/vm/instructions_x64.cc

Issue 1150633002: Track prologue offset of Code and use for more precise return addresses (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « runtime/vm/instructions_x64.h ('k') | runtime/vm/object.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 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 static const int kCallPattern[kLengthInBytes] = {0xE8, -1, -1, -1, -1}; 72 static const int kCallPattern[kLengthInBytes] = {0xE8, -1, -1, -1, -1};
73 return kCallPattern; 73 return kCallPattern;
74 } 74 }
75 75
76 76
77 const int* ReturnPattern::pattern() const { 77 const int* ReturnPattern::pattern() const {
78 static const int kReturnPattern[kLengthInBytes] = { 0xC3 }; 78 static const int kReturnPattern[kLengthInBytes] = { 0xC3 };
79 return kReturnPattern; 79 return kReturnPattern;
80 } 80 }
81 81
82
83 const int* ProloguePattern::pattern() const {
84 static const int kProloguePattern[kLengthInBytes] =
85 { 0x55, 0x48, 0x89, 0xe5 };
86 return kProloguePattern;
87 }
88
89
90 const int* SetFramePointerPattern::pattern() const {
91 static const int kFramePointerPattern[kLengthInBytes] = { 0x48, 0x89, 0xe5 };
92 return kFramePointerPattern;
93 }
94
82 } // namespace dart 95 } // namespace dart
83 96
84 #endif // defined TARGET_ARCH_X64 97 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/instructions_x64.h ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698