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

Side by Side 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, 9 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32.
6 #if defined(TARGET_ARCH_IA32)
7
8 #include "vm/flow_graph_compiler.h"
9
10 #include "vm/longjump.h"
11
12 namespace dart {
13
14 void FlowGraphCompiler::Bailout(const char* reason) {
15 const char* kFormat = "FlowGraphCompiler Bailout: %s.";
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 }
24
25
26 void FlowGraphCompiler::CompileGraph() {
27 Bailout("CompileGraph");
28 }
29
30
31 void FlowGraphCompiler::FinalizePcDescriptors(const Code& code) {
32 UNIMPLEMENTED();
33 }
34
35
36 void FlowGraphCompiler::FinalizeVarDescriptors(const Code& code) {
37 UNIMPLEMENTED();
38 }
39
40
41 void FlowGraphCompiler::FinalizeExceptionHandlers(const Code& code) {
42 UNIMPLEMENTED();
43 }
44
45
46 } // namespace dart
47
48 #endif // defined TARGET_ARCH_IA32
OLDNEW
« 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