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

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

Issue 1009373002: Remove BLACKLIST from check-name-clashes.py, it's wrong nowadays. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « src/math.js ('k') | src/mips64/code-stubs-mips64.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 2069 matching lines...) Expand 10 before | Expand all | Expand 10 after
2080 __ bind(&runtime); 2080 __ bind(&runtime);
2081 __ TailCallRuntime(Runtime::kNewRestParam, 3, 1); 2081 __ TailCallRuntime(Runtime::kNewRestParam, 3, 1);
2082 } 2082 }
2083 2083
2084 2084
2085 void RegExpExecStub::Generate(MacroAssembler* masm) { 2085 void RegExpExecStub::Generate(MacroAssembler* masm) {
2086 // Just jump directly to runtime if native RegExp is not selected at compile 2086 // Just jump directly to runtime if native RegExp is not selected at compile
2087 // time or if regexp entry in generated code is turned off runtime switch or 2087 // time or if regexp entry in generated code is turned off runtime switch or
2088 // at compilation. 2088 // at compilation.
2089 #ifdef V8_INTERPRETED_REGEXP 2089 #ifdef V8_INTERPRETED_REGEXP
2090 __ TailCallRuntime(Runtime::kRegExpExecRT, 4, 1); 2090 __ TailCallRuntime(Runtime::kRegExpExec, 4, 1);
2091 #else // V8_INTERPRETED_REGEXP 2091 #else // V8_INTERPRETED_REGEXP
2092 2092
2093 // Stack frame on entry. 2093 // Stack frame on entry.
2094 // sp[0]: last_match_info (expected JSArray) 2094 // sp[0]: last_match_info (expected JSArray)
2095 // sp[4]: previous index 2095 // sp[4]: previous index
2096 // sp[8]: subject string 2096 // sp[8]: subject string
2097 // sp[12]: JSRegExp object 2097 // sp[12]: JSRegExp object
2098 2098
2099 const int kLastMatchInfoOffset = 0 * kPointerSize; 2099 const int kLastMatchInfoOffset = 0 * kPointerSize;
2100 const int kPreviousIndexOffset = 1 * kPointerSize; 2100 const int kPreviousIndexOffset = 1 * kPointerSize;
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
2462 __ addiu(a0, a0, kPointerSize); // In branch delay slot. 2462 __ addiu(a0, a0, kPointerSize); // In branch delay slot.
2463 2463
2464 __ bind(&done); 2464 __ bind(&done);
2465 2465
2466 // Return last match info. 2466 // Return last match info.
2467 __ lw(v0, MemOperand(sp, kLastMatchInfoOffset)); 2467 __ lw(v0, MemOperand(sp, kLastMatchInfoOffset));
2468 __ DropAndRet(4); 2468 __ DropAndRet(4);
2469 2469
2470 // Do the runtime call to execute the regexp. 2470 // Do the runtime call to execute the regexp.
2471 __ bind(&runtime); 2471 __ bind(&runtime);
2472 __ TailCallRuntime(Runtime::kRegExpExecRT, 4, 1); 2472 __ TailCallRuntime(Runtime::kRegExpExec, 4, 1);
2473 2473
2474 // Deferred code for string handling. 2474 // Deferred code for string handling.
2475 // (6) Not a long external string? If yes, go to (8). 2475 // (6) Not a long external string? If yes, go to (8).
2476 __ bind(&not_seq_nor_cons); 2476 __ bind(&not_seq_nor_cons);
2477 // Go to (8). 2477 // Go to (8).
2478 __ Branch(&not_long_external, gt, a1, Operand(kExternalStringTag)); 2478 __ Branch(&not_long_external, gt, a1, Operand(kExternalStringTag));
2479 2479
2480 // (7) External string. Make it, offset-wise, look like a sequential string. 2480 // (7) External string. Make it, offset-wise, look like a sequential string.
2481 __ bind(&external_string); 2481 __ bind(&external_string);
2482 __ lw(a0, FieldMemOperand(subject, HeapObject::kMapOffset)); 2482 __ lw(a0, FieldMemOperand(subject, HeapObject::kMapOffset));
(...skipping 2781 matching lines...) Expand 10 before | Expand all | Expand 10 after
5264 kStackUnwindSpace, kInvalidStackOffset, 5264 kStackUnwindSpace, kInvalidStackOffset,
5265 MemOperand(fp, 6 * kPointerSize), NULL); 5265 MemOperand(fp, 6 * kPointerSize), NULL);
5266 } 5266 }
5267 5267
5268 5268
5269 #undef __ 5269 #undef __
5270 5270
5271 } } // namespace v8::internal 5271 } } // namespace v8::internal
5272 5272
5273 #endif // V8_TARGET_ARCH_MIPS 5273 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/math.js ('k') | src/mips64/code-stubs-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698