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

Issue 158643003: Move inline macro definition from typedarray.js to macros.py (Closed)

Created:
6 years, 10 months ago by haitao.feng
Modified:
6 years, 9 months ago
CC:
v8-dev
Visibility:
Public.

Description

Move inline macro definition from typedarray.js to macros.py

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -182 lines) Patch
M src/macros.py View 1 chunk +140 lines, -0 lines 0 comments Download
M src/typedarray.js View 3 chunks +0 lines, -139 lines 0 comments Download
M tools/js2c.py View 5 chunks +34 lines, -43 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
haitao.feng
This refactoring is needed when we implemented experimental Float32x4Array and Int32x4Array (https://github.com/johnmccutchan/ecmascript_simd). Otherwise we need ...
6 years, 10 months ago (2014-02-10 07:52:42 UTC) #1
Dmitry Lomov (no reviews)
On 2014/02/10 07:52:42, haitao.feng wrote: > This refactoring is needed when we implemented experimental Float32x4Array ...
6 years, 10 months ago (2014-02-10 08:11:13 UTC) #2
Yang
On 2014/02/10 08:11:13, Dmitry Lomov (chromium) wrote: > On 2014/02/10 07:52:42, haitao.feng wrote: > > ...
6 years, 10 months ago (2014-02-10 08:30:01 UTC) #3
haitao.feng
> I do not like polluting global macros space with typed-array-related macros. > The better ...
6 years, 10 months ago (2014-02-11 03:11:19 UTC) #4
Dmitry Lomov (no reviews)
6 years, 10 months ago (2014-02-11 06:30:02 UTC) #5
On 2014/02/11 03:11:19, haitao.feng wrote:
> > I do not like polluting global macros space with typed-array-related macros.

> > The better solution would be to move Float32x4Array into typedarray.js in
simd
> > patch.
> 
> The typedarray.js is a builtin library but simd is an experimental library.
The
> simd stuff should not be inside the snapshot. The problem occurs for any
> experimental feature which extends a builtin feature with inline macro
> definitions.

Tough. Polluting macros.py with typed array definitions is not the answer
either.
Here is an idea - provide for inclusion of one file into another, just for
macros, something like:
  use macros from 'typedarray.js';
Sounds appropriate, since simd.js in your patch is an experimental extension of
typedarray.js - seems like it should be able to use macros from the latter.
Other idea is to have typedarray-macros.py, just for these two files.

Either way, still does not belong on bleeding_edge.

Powered by Google App Engine
This is Rietveld 408576698