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

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

Issue 1858283002: Initial SIMDBC interpreter. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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/code_generator.cc ('k') | runtime/vm/constants_dbc.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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_DBC.
6 #if defined(TARGET_ARCH_ARM) 6 #if defined(TARGET_ARCH_DBC)
7 7
8 #include "vm/code_patcher.h" 8 #include "vm/code_patcher.h"
9 9
10 #include "vm/flow_graph_compiler.h" 10 #include "vm/flow_graph_compiler.h"
11 #include "vm/instructions.h" 11 #include "vm/instructions.h"
12 #include "vm/object.h" 12 #include "vm/object.h"
13 13
14 namespace dart { 14 namespace dart {
15 15
16 RawCode* CodePatcher::GetStaticCallTargetAt(uword return_address, 16 RawCode* CodePatcher::GetStaticCallTargetAt(uword return_address,
(...skipping 26 matching lines...) Expand all
43 ASSERT(code.ContainsInstructionAt(return_address)); 43 ASSERT(code.ContainsInstructionAt(return_address));
44 CallPattern call(return_address, code); 44 CallPattern call(return_address, code);
45 if (ic_data != NULL) { 45 if (ic_data != NULL) {
46 *ic_data = call.IcData(); 46 *ic_data = call.IcData();
47 } 47 }
48 return call.TargetCode(); 48 return call.TargetCode();
49 } 49 }
50 50
51 51
52 intptr_t CodePatcher::InstanceCallSizeInBytes() { 52 intptr_t CodePatcher::InstanceCallSizeInBytes() {
53 // The instance call instruction sequence has a variable size on ARM.
54 UNREACHABLE(); 53 UNREACHABLE();
55 return 0; 54 return 0;
56 } 55 }
57 56
58 57
59 RawFunction* CodePatcher::GetUnoptimizedStaticCallAt( 58 RawFunction* CodePatcher::GetUnoptimizedStaticCallAt(
60 uword return_address, const Code& code, ICData* ic_data_result) { 59 uword return_address, const Code& code, ICData* ic_data_result) {
61 ASSERT(code.ContainsInstructionAt(return_address)); 60 ASSERT(code.ContainsInstructionAt(return_address));
62 CallPattern static_call(return_address, code); 61 CallPattern static_call(return_address, code);
63 ICData& ic_data = ICData::Handle(); 62 ICData& ic_data = ICData::Handle();
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 const Code& code, 96 const Code& code,
98 NativeFunction* target) { 97 NativeFunction* target) {
99 ASSERT(code.ContainsInstructionAt(return_address)); 98 ASSERT(code.ContainsInstructionAt(return_address));
100 NativeCallPattern call(return_address, code); 99 NativeCallPattern call(return_address, code);
101 *target = call.native_function(); 100 *target = call.native_function();
102 return call.target(); 101 return call.target();
103 } 102 }
104 103
105 } // namespace dart 104 } // namespace dart
106 105
107 #endif // defined TARGET_ARCH_ARM 106 #endif // defined TARGET_ARCH_DBC
OLDNEW
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/constants_dbc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698