Revision: 3544
Author: [email protected]
Date: Wed Jan  6 04:21:28 2010
Log: Make the direct call to native RegExp work

Single glitch in r3542 which caused the direct call to native regexp code to always bail out to the runtime system.

[email protected]
Review URL: http://codereview.chromium.org/523091
http://code.google.com/p/v8/source/detail?r=3544

Modified:
 /branches/bleeding_edge/src/ia32/codegen-ia32.cc

=======================================
--- /branches/bleeding_edge/src/ia32/codegen-ia32.cc Wed Jan 6 03:09:30 2010 +++ /branches/bleeding_edge/src/ia32/codegen-ia32.cc Wed Jan 6 04:21:28 2010
@@ -8011,6 +8011,7 @@
   __ j(not_equal, &runtime);
   // Check that the JSArray is in fast case.
   __ mov(ebx, FieldOperand(eax, JSArray::kElementsOffset));
+  __ mov(eax, FieldOperand(ebx, HeapObject::kMapOffset));
   __ cmp(eax, Factory::fixed_array_map());
   __ j(not_equal, &runtime);
// Check that the last match info has space for the capture registers and the
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to