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

Unified Diff: src/ia32/code-stubs-ia32.cc

Issue 7282026: Introduce code flushing of RegExp code. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 6 months 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
Index: src/ia32/code-stubs-ia32.cc
===================================================================
--- src/ia32/code-stubs-ia32.cc (revision 8431)
+++ src/ia32/code-stubs-ia32.cc (working copy)
@@ -3380,8 +3380,8 @@
__ bind(&check_code);
// Check that the irregexp code has been generated for the actual string
// encoding. If it has, the field contains a code object otherwise it contains
- // the hole.
- __ CmpObjectType(edx, CODE_TYPE, ebx);
+ // a smi (code flushing support).
+ __ JumpIfSmi(edx, &runtime);
__ j(not_equal, &runtime);
Erik Corry 2011/06/30 18:48:25 This j is superfluous.
Rico 2011/07/01 05:58:09 Done.
// eax: subject string

Powered by Google App Engine
This is Rietveld 408576698