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

Unified Diff: src/ia32/stub-cache-ia32.cc

Issue 90643003: Experimental implementation: Exposing SIMD instructions into JavaScript Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/ic.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ia32/stub-cache-ia32.cc
diff --git a/src/ia32/stub-cache-ia32.cc b/src/ia32/stub-cache-ia32.cc
index 1c98c9876b7e2afcdaa2979cc54a37e0be8017f9..254bf504fdef7cb940db19557411d42849c4c47d 100644
--- a/src/ia32/stub-cache-ia32.cc
+++ b/src/ia32/stub-cache-ia32.cc
@@ -2760,6 +2760,37 @@ void CallStubCompiler::CompileHandlerFrontend(Handle<Object> object,
eax, holder, ebx, edx, edi, name, &miss);
break;
}
+
+ case FLOAT32x4_CHECK: {
+ Label fast;
+ // Check that the object is a float32x4.
+ __ CmpObjectType(edx, FLOAT32x4_TYPE, eax);
+ __ j(not_equal, &miss);
+ // Check that the maps starting from the prototype haven't changed.
+ GenerateDirectLoadGlobalFunctionPrototype(
+ masm(), Context::FLOAT32x4_FUNCTION_INDEX, eax, &miss);
+ Handle<Object> prototype(object->GetPrototype(isolate()), isolate());
+ CheckPrototypes(
+ IC::CurrentTypeOf(prototype, isolate()),
+ eax, holder, ebx, edx, edi, name, &miss);
+ break;
+ }
+
+ case INT32x4_CHECK: {
+ Label fast;
+ // Check that the object is a int32x4.
+ __ CmpObjectType(edx, INT32x4_TYPE, eax);
+ __ j(not_equal, &miss);
+ // Check that the maps starting from the prototype haven't changed.
+ GenerateDirectLoadGlobalFunctionPrototype(
+ masm(), Context::INT32x4_FUNCTION_INDEX, eax, &miss);
+ Handle<Object> prototype(object->GetPrototype(isolate()), isolate());
+ CheckPrototypes(
+ IC::CurrentTypeOf(prototype, isolate()),
+ eax, holder, ebx, edx, edi, name, &miss);
+ break;
+ }
+
case BOOLEAN_CHECK: {
GenerateBooleanCheck(edx, &miss);
// Check that the maps starting from the prototype haven't changed.
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698