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

Side by Side Diff: src/mips/regexp-macro-assembler-mips.cc

Issue 14046026: Merged r13848, r13849, r13944, r14013, r14099, r14101, r14145, r14158, r14196 into 3.17 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.17
Patch Set: Created 7 years, 8 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/mips/macro-assembler-mips.cc ('k') | src/version.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 // 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 996 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 Pop(a0); 1007 Pop(a0);
1008 __ sw(a0, register_location(register_index)); 1008 __ sw(a0, register_location(register_index));
1009 } 1009 }
1010 1010
1011 1011
1012 void RegExpMacroAssemblerMIPS::PushBacktrack(Label* label) { 1012 void RegExpMacroAssemblerMIPS::PushBacktrack(Label* label) {
1013 if (label->is_bound()) { 1013 if (label->is_bound()) {
1014 int target = label->pos(); 1014 int target = label->pos();
1015 __ li(a0, Operand(target + Code::kHeaderSize - kHeapObjectTag)); 1015 __ li(a0, Operand(target + Code::kHeaderSize - kHeapObjectTag));
1016 } else { 1016 } else {
1017 Assembler::BlockTrampolinePoolScope block_trampoline_pool(masm_);
1017 Label after_constant; 1018 Label after_constant;
1018 __ Branch(&after_constant); 1019 __ Branch(&after_constant);
1019 int offset = masm_->pc_offset(); 1020 int offset = masm_->pc_offset();
1020 int cp_offset = offset + Code::kHeaderSize - kHeapObjectTag; 1021 int cp_offset = offset + Code::kHeaderSize - kHeapObjectTag;
1021 __ emit(0); 1022 __ emit(0);
1022 masm_->label_at_put(label, offset); 1023 masm_->label_at_put(label, offset);
1023 __ bind(&after_constant); 1024 __ bind(&after_constant);
1024 if (is_int16(cp_offset)) { 1025 if (is_int16(cp_offset)) {
1025 __ lw(a0, MemOperand(code_pointer(), cp_offset)); 1026 __ lw(a0, MemOperand(code_pointer(), cp_offset));
1026 } else { 1027 } else {
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
1388 } 1389 }
1389 1390
1390 1391
1391 #undef __ 1392 #undef __
1392 1393
1393 #endif // V8_INTERPRETED_REGEXP 1394 #endif // V8_INTERPRETED_REGEXP
1394 1395
1395 }} // namespace v8::internal 1396 }} // namespace v8::internal
1396 1397
1397 #endif // V8_TARGET_ARCH_MIPS 1398 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/macro-assembler-mips.cc ('k') | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698