From 1e3743a4ddcaee40f8845438048ec52970923e5f Mon Sep 17 00:00:00 2001 From: "kaznacheev@chromium.org" Date: Thu, 24 Jun 2010 12:31:49 +0000 Subject: [PATCH] Fixing the regression introduced in r4716. The regression made 2 tests fail on ia32 with --always-full-compiler. Review URL: http://codereview.chromium.org/2862028 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4940 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/ia32/full-codegen-ia32.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc index c75044402c..13173e2b92 100644 --- a/src/ia32/full-codegen-ia32.cc +++ b/src/ia32/full-codegen-ia32.cc @@ -2175,7 +2175,7 @@ void FullCodeGenerator::EmitClassOf(ZoneList* args) { // LAST_JS_OBJECT_TYPE. ASSERT(LAST_TYPE == JS_FUNCTION_TYPE); ASSERT(JS_FUNCTION_TYPE == LAST_JS_OBJECT_TYPE + 1); - __ cmp(ebx, JS_FUNCTION_TYPE); + __ CmpInstanceType(eax, JS_FUNCTION_TYPE); __ j(equal, &function); // Check if the constructor in the map is a function.