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

Issue 2084663004: WIP: prototype ffi support

Created:
4 years, 6 months ago by ofrobots
Modified:
4 years, 6 months ago
Reviewers:
Benedikt Meurer
CC:
v8-reviews_googlegroups.com, Yang, Benedikt Meurer, Franzi
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

WIP: prototype ffi support BUG=

Patch Set 1 #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+952 lines, -1 line) Patch
M BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A src/compiler/ffi-compiler.h View 1 chunk +117 lines, -0 lines 0 comments Download
A src/compiler/ffi-compiler.cc View 1 chunk +622 lines, -0 lines 6 comments Download
M src/contexts.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/factory.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/log.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M src/objects.h View 1 chunk +2 lines, -1 line 3 comments Download
M src/snapshot/code-serializer.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/v8.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M test/cctest/cctest.gyp View 1 chunk +1 line, -0 lines 0 comments Download
A test/cctest/test-ffi.cc View 1 chunk +199 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
ofrobots
bmeurer@: this is WIP, but if you could take a peek to see if this ...
4 years, 6 months ago (2016-06-21 00:39:16 UTC) #2
Benedikt Meurer
Nice prototype. Looks promising. https://codereview.chromium.org/2084663004/diff/1/src/compiler/ffi-compiler.cc File src/compiler/ffi-compiler.cc (right): https://codereview.chromium.org/2084663004/diff/1/src/compiler/ffi-compiler.cc#newcode214 src/compiler/ffi-compiler.cc:214: static bool CanCover(Node* value, IrOpcode::Value ...
4 years, 6 months ago (2016-06-21 03:26:02 UTC) #4
ofrobots
https://codereview.chromium.org/2084663004/diff/1/src/compiler/ffi-compiler.cc File src/compiler/ffi-compiler.cc (right): https://codereview.chromium.org/2084663004/diff/1/src/compiler/ffi-compiler.cc#newcode214 src/compiler/ffi-compiler.cc:214: static bool CanCover(Node* value, IrOpcode::Value opcode) { On 2016/06/21 ...
4 years, 6 months ago (2016-06-23 01:02:51 UTC) #5
Benedikt Meurer
4 years, 6 months ago (2016-06-23 03:34:07 UTC) #6
https://codereview.chromium.org/2084663004/diff/1/src/compiler/ffi-compiler.cc
File src/compiler/ffi-compiler.cc (right):

https://codereview.chromium.org/2084663004/diff/1/src/compiler/ffi-compiler.c...
src/compiler/ffi-compiler.cc:462: ApiFunction api_func(func.start);
I think it's OK for prototyping. Long-term you'll have to chat with Yang about
serializability and appropriate reloc infos for these guys.

https://codereview.chromium.org/2084663004/diff/1/src/objects.h
File src/objects.h (right):

https://codereview.chromium.org/2084663004/diff/1/src/objects.h#newcode4874
src/objects.h:4874: V(JS_TO_NATIVE_FUNCTION)
JS_TO_WASM is somewhat special and likely subject to change in some way.
But I you are right, I forgot about the implication of BUILTIN for logging. So,
yes, JS_TO_NATIVE_FUNCTION sounds good to me.

Powered by Google App Engine
This is Rietveld 408576698