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

Side by Side Diff: runtime/vm/instructions_ia32.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
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_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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698