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

Side by Side Diff: src/x64/code-stubs-x64.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/version.cc ('k') | test/mjsunit/regress/regress-regexp-codeflush.js » ('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 2221 matching lines...) Expand 10 before | Expand all | Expand 10 after
2232 2232
2233 __ bind(&seq_two_byte_string); 2233 __ bind(&seq_two_byte_string);
2234 // rdi: subject string (flat two-byte) 2234 // rdi: subject string (flat two-byte)
2235 // rax: RegExp data (FixedArray) 2235 // rax: RegExp data (FixedArray)
2236 __ movq(r11, FieldOperand(rax, JSRegExp::kDataUC16CodeOffset)); 2236 __ movq(r11, FieldOperand(rax, JSRegExp::kDataUC16CodeOffset));
2237 __ Set(rcx, 0); // Type is two byte. 2237 __ Set(rcx, 0); // Type is two byte.
2238 2238
2239 __ bind(&check_code); 2239 __ bind(&check_code);
2240 // Check that the irregexp code has been generated for the actual string 2240 // Check that the irregexp code has been generated for the actual string
2241 // encoding. If it has, the field contains a code object otherwise it contains 2241 // encoding. If it has, the field contains a code object otherwise it contains
2242 // the hole. 2242 // smi (code flushing support)
2243 __ CmpObjectType(r11, CODE_TYPE, kScratchRegister); 2243 __ JumpIfSmi(r11, &runtime);
2244 __ j(not_equal, &runtime);
2245 2244
2246 // rdi: subject string 2245 // rdi: subject string
2247 // rcx: encoding of subject string (1 if ascii, 0 if two_byte); 2246 // rcx: encoding of subject string (1 if ascii, 0 if two_byte);
2248 // r11: code 2247 // r11: code
2249 // Load used arguments before starting to push arguments for call to native 2248 // Load used arguments before starting to push arguments for call to native
2250 // RegExp code to avoid handling changing stack height. 2249 // RegExp code to avoid handling changing stack height.
2251 __ SmiToInteger64(rbx, Operand(rsp, kPreviousIndexOffset)); 2250 __ SmiToInteger64(rbx, Operand(rsp, kPreviousIndexOffset));
2252 2251
2253 // rdi: subject string 2252 // rdi: subject string
2254 // rbx: previous index 2253 // rbx: previous index
(...skipping 2872 matching lines...) Expand 10 before | Expand all | Expand 10 after
5127 __ Drop(1); 5126 __ Drop(1);
5128 __ ret(2 * kPointerSize); 5127 __ ret(2 * kPointerSize);
5129 } 5128 }
5130 5129
5131 5130
5132 #undef __ 5131 #undef __
5133 5132
5134 } } // namespace v8::internal 5133 } } // namespace v8::internal
5135 5134
5136 #endif // V8_TARGET_ARCH_X64 5135 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/version.cc ('k') | test/mjsunit/regress/regress-regexp-codeflush.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698