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

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

Issue 17723002: Remove skip_static_calls_ as it uses an obsolete way to check for uncalled static calls. Will be re… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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_ARM. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM.
6 #if defined(TARGET_ARCH_ARM) 6 #if defined(TARGET_ARCH_ARM)
7 7
8 #include "vm/code_patcher.h" 8 #include "vm/code_patcher.h"
9 9
10 #include "vm/instructions.h" 10 #include "vm/instructions.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 } 65 }
66 66
67 67
68 intptr_t CodePatcher::InstanceCallSizeInBytes() { 68 intptr_t CodePatcher::InstanceCallSizeInBytes() {
69 // The instance call instruction sequence has a variable size on ARM. 69 // The instance call instruction sequence has a variable size on ARM.
70 UNREACHABLE(); 70 UNREACHABLE();
71 return 0; 71 return 0;
72 } 72 }
73 73
74 74
75 RawFunction* CodePatcher::GetUnoptimizedStaticCallTargetAt( 75 RawFunction* CodePatcher::GetUnoptimizedStaticCallAt(
76 uword return_address, const Code& code) { 76 uword return_address, const Code& code, ICData* ic_data_result) {
77 ASSERT(code.ContainsInstructionAt(return_address)); 77 ASSERT(code.ContainsInstructionAt(return_address));
78 CallPattern static_call(return_address, code); 78 CallPattern static_call(return_address, code);
79 ICData& ic_data = ICData::Handle(); 79 ICData& ic_data = ICData::Handle();
80 ic_data ^= static_call.IcData(); 80 ic_data ^= static_call.IcData();
81 if (ic_data_result != NULL) {
82 *ic_data_result = ic_data.raw();
83 }
81 return ic_data.GetTargetAt(0); 84 return ic_data.GetTargetAt(0);
82 } 85 }
83 86
84 } // namespace dart 87 } // namespace dart
85 88
86 #endif // defined TARGET_ARCH_ARM 89 #endif // defined TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698