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

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

Issue 2244673002: [regexp][liveedit] Fix inconsistent JSArrays (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/ppc/code-stubs-ppc.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 #if V8_TARGET_ARCH_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 #include "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/api-arguments.h" 8 #include "src/api-arguments.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 1610 matching lines...) Expand 10 before | Expand all | Expand 10 after
1621 1621
1622 __ lw(a1, UntagSmiFieldMemOperand( 1622 __ lw(a1, UntagSmiFieldMemOperand(
1623 regexp_data, JSRegExp::kIrregexpCaptureCountOffset)); 1623 regexp_data, JSRegExp::kIrregexpCaptureCountOffset));
1624 // Calculate number of capture registers (number_of_captures + 1) * 2. 1624 // Calculate number of capture registers (number_of_captures + 1) * 2.
1625 __ Daddu(a1, a1, Operand(1)); 1625 __ Daddu(a1, a1, Operand(1));
1626 __ dsll(a1, a1, 1); // Multiply by 2. 1626 __ dsll(a1, a1, 1); // Multiply by 2.
1627 1627
1628 __ ld(a0, MemOperand(sp, kLastMatchInfoOffset)); 1628 __ ld(a0, MemOperand(sp, kLastMatchInfoOffset));
1629 __ JumpIfSmi(a0, &runtime); 1629 __ JumpIfSmi(a0, &runtime);
1630 __ GetObjectType(a0, a2, a2); 1630 __ GetObjectType(a0, a2, a2);
1631 __ Branch(&runtime, ne, a2, Operand(JS_ARRAY_TYPE)); 1631 __ Branch(&runtime, ne, a2, Operand(JS_OBJECT_TYPE));
1632 // Check that the JSArray is in fast case. 1632 // Check that the object has fast elements.
1633 __ ld(last_match_info_elements, 1633 __ ld(last_match_info_elements,
1634 FieldMemOperand(a0, JSArray::kElementsOffset)); 1634 FieldMemOperand(a0, JSArray::kElementsOffset));
1635 __ ld(a0, FieldMemOperand(last_match_info_elements, HeapObject::kMapOffset)); 1635 __ ld(a0, FieldMemOperand(last_match_info_elements, HeapObject::kMapOffset));
1636 __ LoadRoot(at, Heap::kFixedArrayMapRootIndex); 1636 __ LoadRoot(at, Heap::kFixedArrayMapRootIndex);
1637 __ Branch(&runtime, ne, a0, Operand(at)); 1637 __ Branch(&runtime, ne, a0, Operand(at));
1638 // Check that the last match info has space for the capture registers and the 1638 // Check that the last match info has space for the capture registers and the
1639 // additional information. 1639 // additional information.
1640 __ ld(a0, 1640 __ ld(a0,
1641 FieldMemOperand(last_match_info_elements, FixedArray::kLengthOffset)); 1641 FieldMemOperand(last_match_info_elements, FixedArray::kLengthOffset));
1642 __ Daddu(a2, a1, Operand(RegExpImpl::kLastMatchOverhead)); 1642 __ Daddu(a2, a1, Operand(RegExpImpl::kLastMatchOverhead));
(...skipping 3793 matching lines...) Expand 10 before | Expand all | Expand 10 after
5436 kStackUnwindSpace, kInvalidStackOffset, 5436 kStackUnwindSpace, kInvalidStackOffset,
5437 return_value_operand, NULL); 5437 return_value_operand, NULL);
5438 } 5438 }
5439 5439
5440 #undef __ 5440 #undef __
5441 5441
5442 } // namespace internal 5442 } // namespace internal
5443 } // namespace v8 5443 } // namespace v8
5444 5444
5445 #endif // V8_TARGET_ARCH_MIPS64 5445 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/ppc/code-stubs-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698