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

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

Issue 2149993006: DBC: Make unoptimized static calls call through ICData (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address comments Created 4 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
« no previous file with comments | « runtime/vm/constants_dbc.h ('k') | runtime/vm/intermediate_language.cc » ('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) 2016, 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_DBC. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_DBC.
6 #if defined(TARGET_ARCH_DBC) 6 #if defined(TARGET_ARCH_DBC)
7 7
8 #include "vm/instructions.h" 8 #include "vm/instructions.h"
9 #include "vm/instructions_dbc.h" 9 #include "vm/instructions_dbc.h"
10 10
11 #include "vm/assembler.h" 11 #include "vm/assembler.h"
12 #include "vm/constants_dbc.h" 12 #include "vm/constants_dbc.h"
13 #include "vm/cpu.h" 13 #include "vm/cpu.h"
14 #include "vm/object.h" 14 #include "vm/object.h"
15 15
16 namespace dart { 16 namespace dart {
17 17
18 static bool HasLoadFromPool(Instr instr) { 18 static bool HasLoadFromPool(Instr instr) {
19 switch (Bytecode::DecodeOpcode(instr)) { 19 switch (Bytecode::DecodeOpcode(instr)) {
20 case Bytecode::kLoadConstant: 20 case Bytecode::kLoadConstant:
21 case Bytecode::kPushConstant: 21 case Bytecode::kPushConstant:
22 case Bytecode::kStaticCall: 22 case Bytecode::kStaticCall:
23 case Bytecode::kIndirectStaticCall:
23 case Bytecode::kInstanceCall1: 24 case Bytecode::kInstanceCall1:
24 case Bytecode::kInstanceCall2: 25 case Bytecode::kInstanceCall2:
25 case Bytecode::kInstanceCall1Opt: 26 case Bytecode::kInstanceCall1Opt:
26 case Bytecode::kInstanceCall2Opt: 27 case Bytecode::kInstanceCall2Opt:
27 case Bytecode::kStoreStaticTOS: 28 case Bytecode::kStoreStaticTOS:
28 case Bytecode::kPushStatic: 29 case Bytecode::kPushStatic:
29 case Bytecode::kAllocate: 30 case Bytecode::kAllocate:
30 case Bytecode::kInstantiateType: 31 case Bytecode::kInstantiateType:
31 case Bytecode::kInstantiateTypeArgumentsTOS: 32 case Bytecode::kInstantiateTypeArgumentsTOS:
32 case Bytecode::kAssertAssignable: 33 case Bytecode::kAssertAssignable:
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 220
220 221
221 bool ReturnPattern::IsValid() const { 222 bool ReturnPattern::IsValid() const {
222 UNIMPLEMENTED(); 223 UNIMPLEMENTED();
223 return false; 224 return false;
224 } 225 }
225 226
226 } // namespace dart 227 } // namespace dart
227 228
228 #endif // defined TARGET_ARCH_DBC 229 #endif // defined TARGET_ARCH_DBC
OLDNEW
« no previous file with comments | « runtime/vm/constants_dbc.h ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698