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

Side by Side Diff: src/arm/codegen-arm.cc

Issue 2078005: Modified codegen-arm.cc to no longer use V8_NATIVE_REGEXP, but to use... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 7 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 8544 matching lines...) Expand 10 before | Expand all | Expand 10 after
8555 // Do the runtime call to allocate the arguments object. 8555 // Do the runtime call to allocate the arguments object.
8556 __ bind(&runtime); 8556 __ bind(&runtime);
8557 __ TailCallRuntime(Runtime::kNewArgumentsFast, 3, 1); 8557 __ TailCallRuntime(Runtime::kNewArgumentsFast, 3, 1);
8558 } 8558 }
8559 8559
8560 8560
8561 void RegExpExecStub::Generate(MacroAssembler* masm) { 8561 void RegExpExecStub::Generate(MacroAssembler* masm) {
8562 // Just jump directly to runtime if native RegExp is not selected at compile 8562 // Just jump directly to runtime if native RegExp is not selected at compile
8563 // time or if regexp entry in generated code is turned off runtime switch or 8563 // time or if regexp entry in generated code is turned off runtime switch or
8564 // at compilation. 8564 // at compilation.
8565 #ifndef V8_NATIVE_REGEXP 8565 #ifdef V8_INTERPRETED_REGEXP
8566 __ TailCallRuntime(Runtime::kRegExpExec, 4, 1); 8566 __ TailCallRuntime(Runtime::kRegExpExec, 4, 1);
8567 #else // V8_NATIVE_REGEXP 8567 #else // V8_INTERPRETED_REGEXP
8568 if (!FLAG_regexp_entry_native) { 8568 if (!FLAG_regexp_entry_native) {
8569 __ TailCallRuntime(Runtime::kRegExpExec, 4, 1); 8569 __ TailCallRuntime(Runtime::kRegExpExec, 4, 1);
8570 return; 8570 return;
8571 } 8571 }
8572 8572
8573 // Stack frame on entry. 8573 // Stack frame on entry.
8574 // sp[0]: last_match_info (expected JSArray) 8574 // sp[0]: last_match_info (expected JSArray)
8575 // sp[4]: previous index 8575 // sp[4]: previous index
8576 // sp[8]: subject string 8576 // sp[8]: subject string
8577 // sp[12]: JSRegExp object 8577 // sp[12]: JSRegExp object
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
8890 __ bind(&done); 8890 __ bind(&done);
8891 8891
8892 // Return last match info. 8892 // Return last match info.
8893 __ ldr(r0, MemOperand(sp, kLastMatchInfoOffset)); 8893 __ ldr(r0, MemOperand(sp, kLastMatchInfoOffset));
8894 __ add(sp, sp, Operand(4 * kPointerSize)); 8894 __ add(sp, sp, Operand(4 * kPointerSize));
8895 __ Ret(); 8895 __ Ret();
8896 8896
8897 // Do the runtime call to execute the regexp. 8897 // Do the runtime call to execute the regexp.
8898 __ bind(&runtime); 8898 __ bind(&runtime);
8899 __ TailCallRuntime(Runtime::kRegExpExec, 4, 1); 8899 __ TailCallRuntime(Runtime::kRegExpExec, 4, 1);
8900 #endif // V8_NATIVE_REGEXP 8900 #endif // V8_INTERPRETED_REGEXP
8901 } 8901 }
8902 8902
8903 8903
8904 void CallFunctionStub::Generate(MacroAssembler* masm) { 8904 void CallFunctionStub::Generate(MacroAssembler* masm) {
8905 Label slow; 8905 Label slow;
8906 8906
8907 // If the receiver might be a value (string, number or boolean) check for this 8907 // If the receiver might be a value (string, number or boolean) check for this
8908 // and box it if it is. 8908 // and box it if it is.
8909 if (ReceiverMightBeValue()) { 8909 if (ReceiverMightBeValue()) {
8910 // Get the receiver from the stack. 8910 // Get the receiver from the stack.
(...skipping 1125 matching lines...) Expand 10 before | Expand all | Expand 10 after
10036 10036
10037 // Just jump to runtime to add the two strings. 10037 // Just jump to runtime to add the two strings.
10038 __ bind(&string_add_runtime); 10038 __ bind(&string_add_runtime);
10039 __ TailCallRuntime(Runtime::kStringAdd, 2, 1); 10039 __ TailCallRuntime(Runtime::kStringAdd, 2, 1);
10040 } 10040 }
10041 10041
10042 10042
10043 #undef __ 10043 #undef __
10044 10044
10045 } } // namespace v8::internal 10045 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698