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

Issue 1217803004: Add a type for objects with typed properties. (Closed)

Created:
5 years, 5 months ago by bradn
Modified:
4 years, 9 months ago
Reviewers:
titzer, rossberg
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Add a type for objects with typed properties. asm.js assumes a standard library object, exposing a subset of window + window.Math, will be passed to modules. Expanding the type system to allow an object with an explicitly typed set of named properties. Adding a test of object types to test-types. LOG=N BUG= https://code.google.com/p/v8/issues/detail?id=4203 TEST=test-types R=rossberg@chromium.org,titzer@chromium.org

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -1 line) Patch
M src/types.h View 7 chunks +54 lines, -0 lines 0 comments Download
M src/types.cc View 2 chunks +13 lines, -0 lines 0 comments Download
M src/types-inl.h View 1 chunk +2 lines, -1 line 0 comments Download
M test/cctest/test-types.cc View 1 2 2 chunks +42 lines, -0 lines 0 comments Download
M test/cctest/types-fuzz.h View 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
bradn
Any thoughts on naming with this? I'm a little concerned "Object" is overused generally.
5 years, 5 months ago (2015-07-01 01:36:25 UTC) #1
rossberg
Yeah, unfortunately, it won't be that simple. You will need to extend almost all operations ...
5 years, 5 months ago (2015-07-01 08:05:40 UTC) #2
bradn
Thank Andreas, that might explain some of the oddnesses I've encountered applying this! Since use ...
5 years, 5 months ago (2015-07-01 12:16:57 UTC) #3
rossberg
On 2015/07/01 12:16:57, bradn wrote: > Some other type system questions: > > * Should ...
5 years, 5 months ago (2015-07-01 17:47:23 UTC) #4
titzer
On 2015/07/01 17:47:23, rossberg wrote: > On 2015/07/01 12:16:57, bradn wrote: > > Some other ...
4 years, 9 months ago (2016-03-10 10:14:55 UTC) #5
bradn
So I ended up doing roughly what Andreas suggested. For example Abs is a Number ...
4 years, 9 months ago (2016-03-14 00:46:54 UTC) #6
bradn
Adding more tests did turn up an intedirectly related issue. +fround(x) wasn't begin handled correctly. ...
4 years, 9 months ago (2016-03-14 00:47:05 UTC) #7
bradn
4 years, 9 months ago (2016-03-14 00:47:12 UTC) #8
Closing.

Powered by Google App Engine
This is Rietveld 408576698