OLD | NEW |
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" | 5 #include "vm/globals.h" |
6 #if defined(TARGET_ARCH_DBC) | 6 #if defined(TARGET_ARCH_DBC) |
7 | 7 |
8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
9 #include "vm/code_generator.h" | 9 #include "vm/code_generator.h" |
10 #include "vm/cpu.h" | 10 #include "vm/cpu.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 __ Trap(); | 44 __ Trap(); |
45 } | 45 } |
46 | 46 |
47 | 47 |
48 // TODO(vegorov) Don't generate this stub. | 48 // TODO(vegorov) Don't generate this stub. |
49 void StubCode::GenerateMegamorphicMissStub(Assembler* assembler) { | 49 void StubCode::GenerateMegamorphicMissStub(Assembler* assembler) { |
50 __ Trap(); | 50 __ Trap(); |
51 } | 51 } |
52 | 52 |
53 | 53 |
| 54 // These deoptimization stubs are only used to populate stack frames |
| 55 // with something meaningful to make sure GC can scan the stack during |
| 56 // the last phase of deoptimization which materializes objects. |
| 57 void StubCode::GenerateDeoptimizeLazyStub(Assembler* assembler) { |
| 58 __ Trap(); |
| 59 } |
| 60 |
| 61 |
| 62 void StubCode::GenerateDeoptimizeStub(Assembler* assembler) { |
| 63 __ Trap(); |
| 64 } |
| 65 |
| 66 |
54 // Print the stop message. | 67 // Print the stop message. |
55 DEFINE_LEAF_RUNTIME_ENTRY(void, PrintStopMessage, 1, const char* message) { | 68 DEFINE_LEAF_RUNTIME_ENTRY(void, PrintStopMessage, 1, const char* message) { |
56 OS::Print("Stop message: %s\n", message); | 69 OS::Print("Stop message: %s\n", message); |
57 } | 70 } |
58 END_LEAF_RUNTIME_ENTRY | 71 END_LEAF_RUNTIME_ENTRY |
59 | 72 |
60 | 73 |
61 } // namespace dart | 74 } // namespace dart |
62 | 75 |
63 #endif // defined TARGET_ARCH_DBC | 76 #endif // defined TARGET_ARCH_DBC |
OLD | NEW |