| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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_ARM. |
| 6 #if defined(TARGET_ARCH_ARM) | 6 #if defined(TARGET_ARCH_ARM) |
| 7 | 7 |
| 8 #include "vm/flow_graph_compiler.h" | 8 #include "vm/flow_graph_compiler.h" |
| 9 | 9 |
| 10 #include "vm/longjump.h" | 10 #include "vm/longjump.h" |
| 11 | 11 |
| 12 namespace dart { | 12 namespace dart { |
| 13 | 13 |
| 14 void FlowGraphCompiler::Bailout(const char* reason) { | 14 void FlowGraphCompiler::CompileGraph() { |
| 15 const char* kFormat = "FlowGraphCompiler Bailout: %s."; | 15 UNIMPLEMENTED(); |
| 16 intptr_t len = OS::SNPrint(NULL, 0, kFormat, reason) + 1; | |
| 17 char* chars = reinterpret_cast<char*>( | |
| 18 Isolate::Current()->current_zone()->Allocate(len)); | |
| 19 OS::SNPrint(chars, len, kFormat, reason); | |
| 20 const Error& error = Error::Handle( | |
| 21 LanguageError::New(String::Handle(String::New(chars)))); | |
| 22 Isolate::Current()->long_jump_base()->Jump(1, error); | |
| 23 } | 16 } |
| 24 | 17 |
| 25 | 18 |
| 26 void FlowGraphCompiler::CompileGraph() { | |
| 27 Bailout("CompileGraph"); | |
| 28 } | |
| 29 | |
| 30 | |
| 31 void FlowGraphCompiler::FinalizePcDescriptors(const Code& code) { | 19 void FlowGraphCompiler::FinalizePcDescriptors(const Code& code) { |
| 32 UNIMPLEMENTED(); | 20 UNIMPLEMENTED(); |
| 33 } | 21 } |
| 34 | 22 |
| 35 | 23 |
| 36 void FlowGraphCompiler::FinalizeStackmaps(const Code& code) { | 24 void FlowGraphCompiler::FinalizeStackmaps(const Code& code) { |
| 37 UNIMPLEMENTED(); | 25 UNIMPLEMENTED(); |
| 38 } | 26 } |
| 39 | 27 |
| 40 | 28 |
| 41 void FlowGraphCompiler::FinalizeVarDescriptors(const Code& code) { | 29 void FlowGraphCompiler::FinalizeVarDescriptors(const Code& code) { |
| 42 UNIMPLEMENTED(); | 30 UNIMPLEMENTED(); |
| 43 } | 31 } |
| 44 | 32 |
| 45 | 33 |
| 46 void FlowGraphCompiler::FinalizeExceptionHandlers(const Code& code) { | 34 void FlowGraphCompiler::FinalizeExceptionHandlers(const Code& code) { |
| 47 UNIMPLEMENTED(); | 35 UNIMPLEMENTED(); |
| 48 } | 36 } |
| 49 | 37 |
| 50 | 38 |
| 51 void FlowGraphCompiler::FinalizeComments(const Code& code) { | 39 void FlowGraphCompiler::FinalizeComments(const Code& code) { |
| 52 UNIMPLEMENTED(); | 40 UNIMPLEMENTED(); |
| 53 } | 41 } |
| 54 | 42 |
| 55 | |
| 56 } // namespace dart | 43 } // namespace dart |
| 57 | 44 |
| 58 #endif // defined TARGET_ARCH_ARM | 45 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |