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

Side by Side Diff: src/ia32/code-stubs-ia32.cc

Issue 7540025: Merge regexp codeflushing (r8532+r8560) to the 3.3 branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/3.3/
Patch Set: '' Created 9 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/heap.cc ('k') | src/jsregexp.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 3181 matching lines...) Expand 10 before | Expand all | Expand 10 after
3192 3192
3193 __ bind(&seq_two_byte_string); 3193 __ bind(&seq_two_byte_string);
3194 // eax: subject string (flat two byte) 3194 // eax: subject string (flat two byte)
3195 // ecx: RegExp data (FixedArray) 3195 // ecx: RegExp data (FixedArray)
3196 __ mov(edx, FieldOperand(ecx, JSRegExp::kDataUC16CodeOffset)); 3196 __ mov(edx, FieldOperand(ecx, JSRegExp::kDataUC16CodeOffset));
3197 __ Set(edi, Immediate(0)); // Type is two byte. 3197 __ Set(edi, Immediate(0)); // Type is two byte.
3198 3198
3199 __ bind(&check_code); 3199 __ bind(&check_code);
3200 // Check that the irregexp code has been generated for the actual string 3200 // Check that the irregexp code has been generated for the actual string
3201 // encoding. If it has, the field contains a code object otherwise it contains 3201 // encoding. If it has, the field contains a code object otherwise it contains
3202 // the hole. 3202 // a smi (code flushing support).
3203 __ CmpObjectType(edx, CODE_TYPE, ebx); 3203 __ JumpIfSmi(edx, &runtime);
3204 __ j(not_equal, &runtime);
3205 3204
3206 // eax: subject string 3205 // eax: subject string
3207 // edx: code 3206 // edx: code
3208 // edi: encoding of subject string (1 if ascii, 0 if two_byte); 3207 // edi: encoding of subject string (1 if ascii, 0 if two_byte);
3209 // Load used arguments before starting to push arguments for call to native 3208 // Load used arguments before starting to push arguments for call to native
3210 // RegExp code to avoid handling changing stack height. 3209 // RegExp code to avoid handling changing stack height.
3211 __ mov(ebx, Operand(esp, kPreviousIndexOffset)); 3210 __ mov(ebx, Operand(esp, kPreviousIndexOffset));
3212 __ SmiUntag(ebx); // Previous index from smi. 3211 __ SmiUntag(ebx); // Previous index from smi.
3213 3212
3214 // eax: subject string 3213 // eax: subject string
(...skipping 2978 matching lines...) Expand 10 before | Expand all | Expand 10 after
6193 __ Drop(1); 6192 __ Drop(1);
6194 __ ret(2 * kPointerSize); 6193 __ ret(2 * kPointerSize);
6195 } 6194 }
6196 6195
6197 6196
6198 #undef __ 6197 #undef __
6199 6198
6200 } } // namespace v8::internal 6199 } } // namespace v8::internal
6201 6200
6202 #endif // V8_TARGET_ARCH_IA32 6201 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/jsregexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698