| OLD | NEW | 
|---|
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_S390 | 5 #if V8_TARGET_ARCH_S390 | 
| 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/base/bits.h" | 9 #include "src/base/bits.h" | 
| 10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" | 
| (...skipping 1570 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1581   __ LoadP(r3, | 1581   __ LoadP(r3, | 
| 1582            FieldMemOperand(regexp_data, JSRegExp::kIrregexpCaptureCountOffset)); | 1582            FieldMemOperand(regexp_data, JSRegExp::kIrregexpCaptureCountOffset)); | 
| 1583   // Calculate number of capture registers (number_of_captures + 1) * 2. | 1583   // Calculate number of capture registers (number_of_captures + 1) * 2. | 
| 1584   // SmiToShortArrayOffset accomplishes the multiplication by 2 and | 1584   // SmiToShortArrayOffset accomplishes the multiplication by 2 and | 
| 1585   // SmiUntag (which is a nop for 32-bit). | 1585   // SmiUntag (which is a nop for 32-bit). | 
| 1586   __ SmiToShortArrayOffset(r3, r3); | 1586   __ SmiToShortArrayOffset(r3, r3); | 
| 1587   __ AddP(r3, Operand(2)); | 1587   __ AddP(r3, Operand(2)); | 
| 1588 | 1588 | 
| 1589   __ LoadP(r2, MemOperand(sp, kLastMatchInfoOffset)); | 1589   __ LoadP(r2, MemOperand(sp, kLastMatchInfoOffset)); | 
| 1590   __ JumpIfSmi(r2, &runtime); | 1590   __ JumpIfSmi(r2, &runtime); | 
| 1591   __ CompareObjectType(r2, r4, r4, JS_ARRAY_TYPE); | 1591   __ CompareObjectType(r2, r4, r4, JS_OBJECT_TYPE); | 
| 1592   __ bne(&runtime); | 1592   __ bne(&runtime); | 
| 1593   // Check that the JSArray is in fast case. | 1593   // Check that the object has fast elements. | 
| 1594   __ LoadP(last_match_info_elements, | 1594   __ LoadP(last_match_info_elements, | 
| 1595            FieldMemOperand(r2, JSArray::kElementsOffset)); | 1595            FieldMemOperand(r2, JSArray::kElementsOffset)); | 
| 1596   __ LoadP(r2, | 1596   __ LoadP(r2, | 
| 1597            FieldMemOperand(last_match_info_elements, HeapObject::kMapOffset)); | 1597            FieldMemOperand(last_match_info_elements, HeapObject::kMapOffset)); | 
| 1598   __ CompareRoot(r2, Heap::kFixedArrayMapRootIndex); | 1598   __ CompareRoot(r2, Heap::kFixedArrayMapRootIndex); | 
| 1599   __ bne(&runtime); | 1599   __ bne(&runtime); | 
| 1600   // Check that the last match info has space for the capture registers and the | 1600   // Check that the last match info has space for the capture registers and the | 
| 1601   // additional information. | 1601   // additional information. | 
| 1602   __ LoadP( | 1602   __ LoadP( | 
| 1603       r2, FieldMemOperand(last_match_info_elements, FixedArray::kLengthOffset)); | 1603       r2, FieldMemOperand(last_match_info_elements, FixedArray::kLengthOffset)); | 
| (...skipping 3783 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 5387   CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, | 5387   CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, | 
| 5388                            kStackUnwindSpace, NULL, return_value_operand, NULL); | 5388                            kStackUnwindSpace, NULL, return_value_operand, NULL); | 
| 5389 } | 5389 } | 
| 5390 | 5390 | 
| 5391 #undef __ | 5391 #undef __ | 
| 5392 | 5392 | 
| 5393 }  // namespace internal | 5393 }  // namespace internal | 
| 5394 }  // namespace v8 | 5394 }  // namespace v8 | 
| 5395 | 5395 | 
| 5396 #endif  // V8_TARGET_ARCH_S390 | 5396 #endif  // V8_TARGET_ARCH_S390 | 
| OLD | NEW | 
|---|