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

Side by Side Diff: src/arm/code-stubs-arm.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, 5 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') | src/ia32/code-stubs-ia32.cc » ('J')
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 4402 matching lines...) Expand 10 before | Expand all | Expand 10 after
4413 STATIC_ASSERT(4 == kAsciiStringTag); 4413 STATIC_ASSERT(4 == kAsciiStringTag);
4414 STATIC_ASSERT(kTwoByteStringTag == 0); 4414 STATIC_ASSERT(kTwoByteStringTag == 0);
4415 // Find the code object based on the assumptions above. 4415 // Find the code object based on the assumptions above.
4416 __ and_(r0, r0, Operand(kStringEncodingMask)); 4416 __ and_(r0, r0, Operand(kStringEncodingMask));
4417 __ mov(r3, Operand(r0, ASR, 2), SetCC); 4417 __ mov(r3, Operand(r0, ASR, 2), SetCC);
4418 __ ldr(r7, FieldMemOperand(regexp_data, JSRegExp::kDataAsciiCodeOffset), ne); 4418 __ ldr(r7, FieldMemOperand(regexp_data, JSRegExp::kDataAsciiCodeOffset), ne);
4419 __ ldr(r7, FieldMemOperand(regexp_data, JSRegExp::kDataUC16CodeOffset), eq); 4419 __ ldr(r7, FieldMemOperand(regexp_data, JSRegExp::kDataUC16CodeOffset), eq);
4420 4420
4421 // Check that the irregexp code has been generated for the actual string 4421 // Check that the irregexp code has been generated for the actual string
4422 // encoding. If it has, the field contains a code object otherwise it contains 4422 // encoding. If it has, the field contains a code object otherwise it contains
4423 // the hole. 4423 // a smi (code flushing support).
4424 __ CompareObjectType(r7, r0, r0, CODE_TYPE); 4424 __ JumpIfSmi(r7, &runtime);
4425 __ b(ne, &runtime); 4425 __ b(ne, &runtime);
Erik Corry 2011/06/30 18:48:25 This b is superfluous
Rico 2011/07/01 05:58:09 Done.
4426 4426
4427 // r3: encoding of subject string (1 if ASCII, 0 if two_byte); 4427 // r3: encoding of subject string (1 if ASCII, 0 if two_byte);
4428 // r7: code 4428 // r7: code
4429 // subject: Subject string 4429 // subject: Subject string
4430 // regexp_data: RegExp data (FixedArray) 4430 // regexp_data: RegExp data (FixedArray)
4431 // Load used arguments before starting to push arguments for call to native 4431 // Load used arguments before starting to push arguments for call to native
4432 // RegExp code to avoid handling changing stack height. 4432 // RegExp code to avoid handling changing stack height.
4433 __ ldr(r1, MemOperand(sp, kPreviousIndexOffset)); 4433 __ ldr(r1, MemOperand(sp, kPreviousIndexOffset));
4434 __ mov(r1, Operand(r1, ASR, kSmiTagSize)); 4434 __ mov(r1, Operand(r1, ASR, kSmiTagSize));
4435 4435
(...skipping 2165 matching lines...) Expand 10 before | Expand all | Expand 10 after
6601 __ mov(result, Operand(0)); 6601 __ mov(result, Operand(0));
6602 __ Ret(); 6602 __ Ret();
6603 } 6603 }
6604 6604
6605 6605
6606 #undef __ 6606 #undef __
6607 6607
6608 } } // namespace v8::internal 6608 } } // namespace v8::internal
6609 6609
6610 #endif // V8_TARGET_ARCH_ARM 6610 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/factory.cc » ('j') | src/ia32/code-stubs-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698