OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 #include "vm/globals.h" | |
6 #if defined(TARGET_ARCH_DBC) | |
7 | |
8 #include "vm/assembler.h" | |
9 #include "vm/code_generator.h" | |
10 #include "vm/cpu.h" | |
11 #include "vm/compiler.h" | |
12 #include "vm/dart_entry.h" | |
13 #include "vm/flow_graph_compiler.h" | |
14 #include "vm/heap.h" | |
15 #include "vm/instructions.h" | |
16 #include "vm/object_store.h" | |
17 #include "vm/stack_frame.h" | |
18 #include "vm/stub_code.h" | |
19 #include "vm/tags.h" | |
20 | |
21 #define __ assembler-> | |
22 | |
23 namespace dart { | |
24 | |
25 DEFINE_FLAG(bool, inline_alloc, true, "Inline allocation of objects."); | |
26 DEFINE_FLAG(bool, use_slow_path, false, | |
27 "Set to true for debugging & verifying the slow paths."); | |
28 DECLARE_FLAG(bool, trace_optimized_ic_calls); | |
29 DECLARE_FLAG(int, optimization_counter_threshold); | |
30 DECLARE_FLAG(bool, support_debugger); | |
31 DECLARE_FLAG(bool, lazy_dispatchers); | |
32 | |
33 void StubCode::GenerateLazyCompileStub(Assembler* assembler) { | |
34 __ Compile(); | |
35 } | |
36 | |
37 | |
38 void StubCode::GenerateFixCallersTargetStub(Assembler* assembler) { | |
39 __ Trap(); | |
zra
2016/04/14 18:27:50
So, this will fail at runtime. Should it fail at c
Vyacheslav Egorov (Google)
2016/04/18 15:56:43
Can't make this unreachable because this stub is s
| |
40 } | |
41 | |
42 | |
43 void StubCode::GenerateAllocationStubForClass(Assembler* assembler, | |
44 const Class& cls) { | |
45 __ Trap(); | |
46 } | |
47 | |
48 | |
49 void StubCode::GenerateMegamorphicMissStub(Assembler* assembler) { | |
50 __ Trap(); | |
51 } | |
52 | |
53 | |
54 // Print the stop message. | |
55 DEFINE_LEAF_RUNTIME_ENTRY(void, PrintStopMessage, 1, const char* message) { | |
56 OS::Print("Stop message: %s\n", message); | |
57 } | |
58 END_LEAF_RUNTIME_ENTRY | |
59 | |
60 | |
61 } // namespace dart | |
62 | |
63 #endif // defined TARGET_ARCH_DBC | |
OLD | NEW |