Commit 21a7a106 authored by gdeepti's avatar gdeepti Committed by Commit bot

Implement type check and error raising semantics in SIMD runtime functions.

 - Throw type errors instead of runtime asserts.
 - Also required for SIMD tests ported to Test262 to work with V8

BUG=4501

LOG=N

Review URL: https://codereview.chromium.org/1461823003

Cr-Commit-Position: refs/heads/master@{#32187}
parent fe14ba45
...@@ -127,6 +127,7 @@ class CallSite { ...@@ -127,6 +127,7 @@ class CallSite {
"Function has non-object prototype '%' in instanceof check") \ "Function has non-object prototype '%' in instanceof check") \
T(InvalidArgument, "invalid_argument") \ T(InvalidArgument, "invalid_argument") \
T(InvalidInOperatorUse, "Cannot use 'in' operator to search for '%' in %") \ T(InvalidInOperatorUse, "Cannot use 'in' operator to search for '%' in %") \
T(InvalidSimdOperation, "% is not a valid type for this SIMD operation.") \
T(IteratorResultNotAnObject, "Iterator result % is not an object") \ T(IteratorResultNotAnObject, "Iterator result % is not an object") \
T(IteratorValueNotAnObject, "Iterator value % is not an entry object") \ T(IteratorValueNotAnObject, "Iterator value % is not an entry object") \
T(LanguageID, "Language ID should be string or object.") \ T(LanguageID, "Language ID should be string or object.") \
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment