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

Side by Side Diff: runtime/vm/flow_graph_compiler_x64.cc

Issue 9559012: Adding Native Call node : a native function consists of that node, it does call into C runtime. In … (Closed) Base URL: http://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_builder.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_X64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
7 7
8 #include "vm/flow_graph_compiler.h" 8 #include "vm/flow_graph_compiler.h"
9 9
10 #include "vm/ast_printer.h" 10 #include "vm/ast_printer.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 void FlowGraphCompiler::VisitStoreLocal(StoreLocalComp* comp) { 93 void FlowGraphCompiler::VisitStoreLocal(StoreLocalComp* comp) {
94 if (comp->local().is_captured()) { 94 if (comp->local().is_captured()) {
95 Bailout("store to context variable"); 95 Bailout("store to context variable");
96 } 96 }
97 LoadValue(comp->value()); 97 LoadValue(comp->value());
98 __ movq(Address(RBP, comp->local().index() * kWordSize), RAX); 98 __ movq(Address(RBP, comp->local().index() * kWordSize), RAX);
99 } 99 }
100 100
101 101
102 void FlowGraphCompiler::VisitNativeCall(NativeCallComp* comp) {
103 Bailout("NativeCallComp");
104 }
105
106
102 void FlowGraphCompiler::VisitJoinEntry(JoinEntryInstr* instr) { 107 void FlowGraphCompiler::VisitJoinEntry(JoinEntryInstr* instr) {
103 Bailout("JoinEntryInstr"); 108 Bailout("JoinEntryInstr");
104 } 109 }
105 110
106 111
107 void FlowGraphCompiler::VisitTargetEntry(TargetEntryInstr* instr) { 112 void FlowGraphCompiler::VisitTargetEntry(TargetEntryInstr* instr) {
108 // Since we don't handle branching control flow yet, there is nothing to do. 113 // Since we don't handle branching control flow yet, there is nothing to do.
109 } 114 }
110 115
111 116
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 void FlowGraphCompiler::FinalizeExceptionHandlers(const Code& code) { 302 void FlowGraphCompiler::FinalizeExceptionHandlers(const Code& code) {
298 // We don't compile exception handlers yet. 303 // We don't compile exception handlers yet.
299 code.set_exception_handlers( 304 code.set_exception_handlers(
300 ExceptionHandlers::Handle(ExceptionHandlers::New(0))); 305 ExceptionHandlers::Handle(ExceptionHandlers::New(0)));
301 } 306 }
302 307
303 308
304 } // namespace dart 309 } // namespace dart
305 310
306 #endif // defined TARGET_ARCH_X64 311 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698