OLD | NEW |
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 1529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1540 __ mov(r3, Operand(Smi::FromInt(expr->literal_index()))); | 1540 __ mov(r3, Operand(Smi::FromInt(expr->literal_index()))); |
1541 __ mov(r2, Operand(expr->pattern())); | 1541 __ mov(r2, Operand(expr->pattern())); |
1542 __ mov(r1, Operand(expr->flags())); | 1542 __ mov(r1, Operand(expr->flags())); |
1543 __ Push(r4, r3, r2, r1); | 1543 __ Push(r4, r3, r2, r1); |
1544 __ CallRuntime(Runtime::kMaterializeRegExpLiteral, 4); | 1544 __ CallRuntime(Runtime::kMaterializeRegExpLiteral, 4); |
1545 __ mov(r5, r0); | 1545 __ mov(r5, r0); |
1546 | 1546 |
1547 __ bind(&materialized); | 1547 __ bind(&materialized); |
1548 int size = JSRegExp::kSize + JSRegExp::kInObjectFieldCount * kPointerSize; | 1548 int size = JSRegExp::kSize + JSRegExp::kInObjectFieldCount * kPointerSize; |
1549 Label allocated, runtime_allocate; | 1549 Label allocated, runtime_allocate; |
1550 __ AllocateInNewSpace(size, r0, r2, r3, &runtime_allocate, TAG_OBJECT); | 1550 __ Allocate(size, r0, r2, r3, &runtime_allocate, TAG_OBJECT, |
| 1551 MacroAssembler::NEW_SPACE); |
1551 __ jmp(&allocated); | 1552 __ jmp(&allocated); |
1552 | 1553 |
1553 __ bind(&runtime_allocate); | 1554 __ bind(&runtime_allocate); |
1554 __ push(r5); | 1555 __ push(r5); |
1555 __ mov(r0, Operand(Smi::FromInt(size))); | 1556 __ mov(r0, Operand(Smi::FromInt(size))); |
1556 __ push(r0); | 1557 __ push(r0); |
1557 __ CallRuntime(Runtime::kAllocateInNewSpace, 1); | 1558 __ CallRuntime(Runtime::kAllocateInNewSpace, 1); |
1558 __ pop(r5); | 1559 __ pop(r5); |
1559 | 1560 |
1560 __ bind(&allocated); | 1561 __ bind(&allocated); |
(...skipping 3005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4566 *context_length = 0; | 4567 *context_length = 0; |
4567 return previous_; | 4568 return previous_; |
4568 } | 4569 } |
4569 | 4570 |
4570 | 4571 |
4571 #undef __ | 4572 #undef __ |
4572 | 4573 |
4573 } } // namespace v8::internal | 4574 } } // namespace v8::internal |
4574 | 4575 |
4575 #endif // V8_TARGET_ARCH_ARM | 4576 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |