Chromium Code Reviews| 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 14 matching lines...) Expand all Loading... | |
| 25 DEFINE_FLAG(bool, inline_alloc, true, "Inline allocation of objects."); | 25 DEFINE_FLAG(bool, inline_alloc, true, "Inline allocation of objects."); |
| 26 DEFINE_FLAG(bool, use_slow_path, false, | 26 DEFINE_FLAG(bool, use_slow_path, false, |
| 27 "Set to true for debugging & verifying the slow paths."); | 27 "Set to true for debugging & verifying the slow paths."); |
| 28 DECLARE_FLAG(bool, trace_optimized_ic_calls); | 28 DECLARE_FLAG(bool, trace_optimized_ic_calls); |
| 29 | 29 |
| 30 void StubCode::GenerateLazyCompileStub(Assembler* assembler) { | 30 void StubCode::GenerateLazyCompileStub(Assembler* assembler) { |
| 31 __ Compile(); | 31 __ Compile(); |
| 32 } | 32 } |
| 33 | 33 |
| 34 | 34 |
| 35 // Not executed, but used as a stack marker when calling | |
| 36 // DRT_OptimizeInvokedFunction. | |
| 37 void StubCode::GenerateOptimizeFunctionStub(Assembler* assembler) { | |
| 38 __ Trap(); | |
|
zra
2016/11/04 16:01:05
Oh okay, great.
| |
| 39 } | |
| 40 | |
| 41 | |
| 35 // TODO(vegorov) Don't generate this stub. | 42 // TODO(vegorov) Don't generate this stub. |
| 36 void StubCode::GenerateFixCallersTargetStub(Assembler* assembler) { | 43 void StubCode::GenerateFixCallersTargetStub(Assembler* assembler) { |
| 37 __ Trap(); | 44 __ Trap(); |
| 38 } | 45 } |
| 39 | 46 |
| 40 | 47 |
| 41 // TODO(vegorov) Don't generate these stubs. | 48 // TODO(vegorov) Don't generate these stubs. |
| 42 void StubCode::GenerateAllocationStubForClass(Assembler* assembler, | 49 void StubCode::GenerateAllocationStubForClass(Assembler* assembler, |
| 43 const Class& cls) { | 50 const Class& cls) { |
| 44 __ Trap(); | 51 __ Trap(); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 76 | 83 |
| 77 // Print the stop message. | 84 // Print the stop message. |
| 78 DEFINE_LEAF_RUNTIME_ENTRY(void, PrintStopMessage, 1, const char* message) { | 85 DEFINE_LEAF_RUNTIME_ENTRY(void, PrintStopMessage, 1, const char* message) { |
| 79 OS::Print("Stop message: %s\n", message); | 86 OS::Print("Stop message: %s\n", message); |
| 80 } | 87 } |
| 81 END_LEAF_RUNTIME_ENTRY | 88 END_LEAF_RUNTIME_ENTRY |
| 82 | 89 |
| 83 } // namespace dart | 90 } // namespace dart |
| 84 | 91 |
| 85 #endif // defined TARGET_ARCH_DBC | 92 #endif // defined TARGET_ARCH_DBC |
| OLD | NEW |