v8/test
Simon Zünd 9ef4df2f30 [torque] Add unsafe cast to Torque.
This CL is a proposal to add "checked" casts (CAST in CSA) to the Torque language.
The CL adds the "unsafe_cast<>" operator that emits a "CAST".

Example:

let n: Number = ...;
...
if (TaggedIsSmi(n)) {
  let m: Smi = unsafe_cast<Smi>(n);
  ...
}

The cast wont incur a runtime overhead now.

R=tebbi@chromium.org

Change-Id: I9fca90d1d11e61617ba0270e5022fd66200e2195
Reviewed-on: https://chromium-review.googlesource.com/1070151
Commit-Queue: Simon Zünd <szuend@google.com>
Reviewed-by: Tobias Tebbi <tebbi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53416}
2018-05-29 14:59:58 +00:00
..
benchmarks Reland "[build] Remove legacy isolate configurations" 2018-03-28 12:36:55 +00:00
cctest [torque] Add unsafe cast to Torque. 2018-05-29 14:59:58 +00:00
common [wasm] Make wasm::ValueType independent of the MachineRepresentation 2018-05-07 11:54:56 +00:00
debugger [generators] Store parameters in the generator object. 2018-05-24 11:41:37 +00:00
fuzzer [wasm] Reimplement WebAssembly.instantiate without desugaring 2018-05-24 22:15:52 +00:00
inspector [generators] Store parameters in the generator object. 2018-05-24 11:41:37 +00:00
intl Implementing Intl.Locale proposal. 2018-05-15 22:25:02 +00:00
js-perf-test [js-perf-test] Fix tests on android 2018-05-24 09:09:59 +00:00
memory Reland "[tools] Add benchmark owners to the config" 2018-05-16 13:53:49 +00:00
message [builtins] Fix error message in Proxy set trap 2018-05-14 16:37:20 +00:00
mjsunit [wasm] Add missing WebAssembly.instantiate regression test. 2018-05-29 10:37:32 +00:00
mkgrokdump Disable embedded builtins 2018-05-08 11:21:37 +00:00
mozilla [test] Reverse sense of wasm_traps variant 2018-05-08 17:49:14 +00:00
preparser Reland "[build] Remove legacy isolate configurations" 2018-03-28 12:36:55 +00:00
test262 [esnext] Rename Array#flatten to flat 2018-05-23 02:13:05 +00:00
torque [torque] Add unsafe cast to Torque. 2018-05-29 14:59:58 +00:00
unittests [wasm] Inline helpers of WasmModule::origin 2018-05-25 16:47:52 +00:00
wasm-spec-tests [wasm] Update spec tests 2018-05-22 09:47:41 +00:00
webkit [test] Skip slow tests 2018-05-23 14:14:34 +00:00
BUILD.gn Reland "[build] Remove legacy isolate configurations" 2018-03-28 12:36:55 +00:00