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

Side by Side Diff: src/arm/code-stubs-arm.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 | « no previous file | src/factory.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 4208 matching lines...) Expand 10 before | Expand all | Expand 10 after
4219 STATIC_ASSERT(4 == kAsciiStringTag); 4219 STATIC_ASSERT(4 == kAsciiStringTag);
4220 STATIC_ASSERT(kTwoByteStringTag == 0); 4220 STATIC_ASSERT(kTwoByteStringTag == 0);
4221 // Find the code object based on the assumptions above. 4221 // Find the code object based on the assumptions above.
4222 __ and_(r0, r0, Operand(kStringEncodingMask)); 4222 __ and_(r0, r0, Operand(kStringEncodingMask));
4223 __ mov(r3, Operand(r0, ASR, 2), SetCC); 4223 __ mov(r3, Operand(r0, ASR, 2), SetCC);
4224 __ ldr(r7, FieldMemOperand(regexp_data, JSRegExp::kDataAsciiCodeOffset), ne); 4224 __ ldr(r7, FieldMemOperand(regexp_data, JSRegExp::kDataAsciiCodeOffset), ne);
4225 __ ldr(r7, FieldMemOperand(regexp_data, JSRegExp::kDataUC16CodeOffset), eq); 4225 __ ldr(r7, FieldMemOperand(regexp_data, JSRegExp::kDataUC16CodeOffset), eq);
4226 4226
4227 // Check that the irregexp code has been generated for the actual string 4227 // Check that the irregexp code has been generated for the actual string
4228 // encoding. If it has, the field contains a code object otherwise it contains 4228 // encoding. If it has, the field contains a code object otherwise it contains
4229 // the hole. 4229 // a smi (code flushing support).
4230 __ CompareObjectType(r7, r0, r0, CODE_TYPE); 4230 __ JumpIfSmi(r7, &runtime);
4231 __ b(ne, &runtime);
4232 4231
4233 // r3: encoding of subject string (1 if ASCII, 0 if two_byte); 4232 // r3: encoding of subject string (1 if ASCII, 0 if two_byte);
4234 // r7: code 4233 // r7: code
4235 // subject: Subject string 4234 // subject: Subject string
4236 // regexp_data: RegExp data (FixedArray) 4235 // regexp_data: RegExp data (FixedArray)
4237 // Load used arguments before starting to push arguments for call to native 4236 // Load used arguments before starting to push arguments for call to native
4238 // RegExp code to avoid handling changing stack height. 4237 // RegExp code to avoid handling changing stack height.
4239 __ ldr(r1, MemOperand(sp, kPreviousIndexOffset)); 4238 __ ldr(r1, MemOperand(sp, kPreviousIndexOffset));
4240 __ mov(r1, Operand(r1, ASR, kSmiTagSize)); 4239 __ mov(r1, Operand(r1, ASR, kSmiTagSize));
4241 4240
(...skipping 2170 matching lines...) Expand 10 before | Expand all | Expand 10 after
6412 __ mov(result, Operand(0)); 6411 __ mov(result, Operand(0));
6413 __ Ret(); 6412 __ Ret();
6414 } 6413 }
6415 6414
6416 6415
6417 #undef __ 6416 #undef __
6418 6417
6419 } } // namespace v8::internal 6418 } } // namespace v8::internal
6420 6419
6421 #endif // V8_TARGET_ARCH_ARM 6420 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698