History log of /frameworks/compile/slang/slang_rs_export_var.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
1f6c331d622ac645ab68a016aa4c577998547373 04-Jul-2012 Stephen Hines <srhines@google.com> Fix reflection of setters for unsigned primitive types.


We now generate set_*() functions for unsigned types by creating a single
element FieldPacker and stuffing it with the larger Dalvik type. Reusing
FieldPacker in this way allows us to validate that the input is non-negative
and within the appropriate range (i.e. not really using more bits than the
unsigned C type should).

This change also fixes a subtle race where the Dalvik and script side can
disagree about a variable's value. All set_*() methods need to be synchronized,
and we must do the Dalvik update after validating the input data.

Change-Id: I7b2371206848ebbf0b0752779cb6c98cec1ab5f6
d369cda199b11ae28a1935e06398c2162cf146f3 13-Feb-2012 Stephen Hines <srhines@google.com> Support initialization of constant array exports.


Change-Id: Ibdc74323080518223bbf79caef0c91030c501f17
f5eeaa6aac0c5ac612ec69f808609e95b97d6829 13-Feb-2012 Stephen Hines <srhines@google.com> Revert "Support initialization of constant array exports."

This reverts commit dc8853ace563c3a7e1976d570bf8fe96cfb11446.
dc8853ace563c3a7e1976d570bf8fe96cfb11446 07-Feb-2012 Stephen Hines <srhines@google.com> Support initialization of constant array exports.


Change-Id: I61fba1cdf54a5e3289da01730e8bc3d0d2e72050
e639eb5caa2c386b4a60659a4929e8a6141a2cbe 09-Nov-2010 Stephen Hines <srhines@google.com> Improve code style.

Change-Id: I26e043849bce2a4b41ae132fbe0c882f4a6f112f
641558f02fe6ce0ee3ae5076eb366c25e2ad5903 12-Oct-2010 Zonr Chang <zonr@google.com> Implement one-definition-rule (ODR) feature.

When compiling multiple RS files, we say two RS files A and B break ODR

1. They have at least one common struct named [S] and [S] will be reflected
to ScriptField_[S].java, and
2. [S] defined in A is not *exactly the same* (number of fields, field
type and field name) as the one defined in B.

This CL detects such error.
c383a500aa59423264811be3874461bf8adbfea0 11-Oct-2010 Zonr Chang <zonr@google.com> Prepend legal announcement in all files.

Release libslang/llvm-rs-cc/llvm-rs-link under Apache 2.0 license.
a41ce1d98094da84643995d40d71c529905123fc 05-Oct-2010 Zonr Chang <zonr@google.com> Fix memory leak of RSExport* object create in processExport(). Now, they will
properly be freed after their associated RSContext was destroyed.
6315f76e3cc6ff2d012d1183a0b030d4ff0dc808 05-Oct-2010 zonr <zonr@google.com> More coding style fixing to improve the readability. No actual semantics
changed. This also makes cpplint happy.