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

Issue 9559012: Adding Native Call node : a native function consists of that node, it does call into C runtime. In … (Closed)

Created:
8 years, 9 months ago by srdjan
Modified:
8 years, 9 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Adding Native Call node : a native function consists of that node, it does call into C runtime. In this case I am not sure if we should copy all fields from AstNode to Computation node or should we store the AstNode and access data indirectly. Committed: https://code.google.com/p/dart/source/detail?r=4809

Patch Set 1 #

Patch Set 2 : #

Total comments: 5

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -3 lines) Patch
M runtime/vm/flow_graph_builder.cc View 1 2 3 2 chunks +7 lines, -1 line 0 comments Download
M runtime/vm/flow_graph_compiler_x64.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/vm/intermediate_language.h View 1 2 3 4 chunks +22 lines, -2 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
srdjan
This CL also includes the yet uncommited CL 9540008
8 years, 9 months ago (2012-03-01 01:08:16 UTC) #1
Kevin Millikin (Google)
LGTM, with one suggestion below (print formatting). https://chromiumcodereview.appspot.com/9559012/diff/4001/runtime/vm/flow_graph_builder.cc File runtime/vm/flow_graph_builder.cc (right): https://chromiumcodereview.appspot.com/9559012/diff/4001/runtime/vm/flow_graph_builder.cc#newcode707 runtime/vm/flow_graph_builder.cc:707: OS::Print("NativeCall '%s'", ...
8 years, 9 months ago (2012-03-01 09:26:22 UTC) #2
srdjan
8 years, 9 months ago (2012-03-01 17:25:42 UTC) #3
https://chromiumcodereview.appspot.com/9559012/diff/4001/runtime/vm/flow_grap...
File runtime/vm/flow_graph_builder.cc (right):

https://chromiumcodereview.appspot.com/9559012/diff/4001/runtime/vm/flow_grap...
runtime/vm/flow_graph_builder.cc:707: OS::Print("NativeCall '%s'",
comp->native_name().ToCString());
On 2012/03/01 09:26:22, kmillikin wrote:
> For uniformity this should probably print as
> 
> NativeCall(%s)
> 
> (I don't care too much about the actual print representation, as long as it's
> uniform.)

Done.

https://chromiumcodereview.appspot.com/9559012/diff/4001/runtime/vm/intermedi...
File runtime/vm/intermediate_language.h (right):

https://chromiumcodereview.appspot.com/9559012/diff/4001/runtime/vm/intermedi...
runtime/vm/intermediate_language.h:18: class NativeBodyNode;
On 2012/03/01 09:26:22, kmillikin wrote:
> Do you want both the include of ast.h and the forward declaration?  I'd
probably
> GC the forward declaration.

Forgot to remove. Removed.

Powered by Google App Engine
This is Rietveld 408576698