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 __ jmp(&allocated); | 1551 __ jmp(&allocated); |
1552 | 1552 |
1553 __ bind(&runtime_allocate); | 1553 __ bind(&runtime_allocate); |
1554 __ push(r5); | 1554 __ push(r5); |
1555 __ mov(r0, Operand(Smi::FromInt(size))); | 1555 __ mov(r0, Operand(Smi::FromInt(size))); |
1556 __ push(r0); | 1556 __ push(r0); |
1557 __ CallRuntime(Runtime::kAllocateInNewSpace, 1); | 1557 __ CallRuntime(Runtime::kAllocateInNewSpace, 1); |
1558 __ pop(r5); | 1558 __ pop(r5); |
1559 | 1559 |
1560 __ bind(&allocated); | 1560 __ bind(&allocated); |
(...skipping 3041 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4602 *context_length = 0; | 4602 *context_length = 0; |
4603 return previous_; | 4603 return previous_; |
4604 } | 4604 } |
4605 | 4605 |
4606 | 4606 |
4607 #undef __ | 4607 #undef __ |
4608 | 4608 |
4609 } } // namespace v8::internal | 4609 } } // namespace v8::internal |
4610 | 4610 |
4611 #endif // V8_TARGET_ARCH_ARM | 4611 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |