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

Unified Diff: runtime/vm/flow_graph_compiler_ia32.cc

Issue 9479004: Add a stubbed-out implementation of FlowGraphCompiler for ia32 and arm. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/flow_graph_compiler_ia32.h ('k') | runtime/vm/flow_graph_compiler_x64.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_compiler_ia32.cc
diff --git a/runtime/vm/flow_graph_compiler_ia32.cc b/runtime/vm/flow_graph_compiler_ia32.cc
new file mode 100644
index 0000000000000000000000000000000000000000..3edf716c01e698debe8718e7c07c5d3d5272d6aa
--- /dev/null
+++ b/runtime/vm/flow_graph_compiler_ia32.cc
@@ -0,0 +1,48 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+#include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32.
+#if defined(TARGET_ARCH_IA32)
+
+#include "vm/flow_graph_compiler.h"
+
+#include "vm/longjump.h"
+
+namespace dart {
+
+void FlowGraphCompiler::Bailout(const char* reason) {
+ const char* kFormat = "FlowGraphCompiler Bailout: %s.";
+ intptr_t len = OS::SNPrint(NULL, 0, kFormat, reason) + 1;
+ char* chars = reinterpret_cast<char*>(
+ Isolate::Current()->current_zone()->Allocate(len));
+ OS::SNPrint(chars, len, kFormat, reason);
+ const Error& error = Error::Handle(
+ LanguageError::New(String::Handle(String::New(chars))));
+ Isolate::Current()->long_jump_base()->Jump(1, error);
+}
+
+
+void FlowGraphCompiler::CompileGraph() {
+ Bailout("CompileGraph");
+}
+
+
+void FlowGraphCompiler::FinalizePcDescriptors(const Code& code) {
+ UNIMPLEMENTED();
+}
+
+
+void FlowGraphCompiler::FinalizeVarDescriptors(const Code& code) {
+ UNIMPLEMENTED();
+}
+
+
+void FlowGraphCompiler::FinalizeExceptionHandlers(const Code& code) {
+ UNIMPLEMENTED();
+}
+
+
+} // namespace dart
+
+#endif // defined TARGET_ARCH_IA32
« no previous file with comments | « runtime/vm/flow_graph_compiler_ia32.h ('k') | runtime/vm/flow_graph_compiler_x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698