Chromium Code Reviews

Unified Diff: src/ic/ic-inl.h

Issue 1219943002: Expose SIMD.Float32x4 type to Javascript. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove SIMD_OBJECT from native context fields. Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: src/ic/ic-inl.h
diff --git a/src/ic/ic-inl.h b/src/ic/ic-inl.h
index b6ee6b13e53a812ddc0626cecf2604cbe90848d7..68288de3145f161fedafae69a7c1755392e3fcca 100644
--- a/src/ic/ic-inl.h
+++ b/src/ic/ic-inl.h
@@ -177,6 +177,8 @@ JSFunction* IC::GetRootConstructor(Map* receiver_map, Context* native_context) {
return native_context->string_function();
} else if (receiver_map->instance_type() == SYMBOL_TYPE) {
return native_context->symbol_function();
+ } else if (receiver_map->instance_type() == FLOAT32X4_TYPE) {
+ return native_context->float32x4_function();
} else {
return NULL;
}
« no previous file with comments | « src/ic/handler-compiler.cc ('k') | src/macros.py » ('j') | test/mjsunit/harmony/reflect-apply.js » ('J')

Powered by Google App Engine