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 1535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1546 __ li(a3, Operand(Smi::FromInt(expr->literal_index()))); | 1546 __ li(a3, Operand(Smi::FromInt(expr->literal_index()))); |
1547 __ li(a2, Operand(expr->pattern())); | 1547 __ li(a2, Operand(expr->pattern())); |
1548 __ li(a1, Operand(expr->flags())); | 1548 __ li(a1, Operand(expr->flags())); |
1549 __ Push(t0, a3, a2, a1); | 1549 __ Push(t0, a3, a2, a1); |
1550 __ CallRuntime(Runtime::kMaterializeRegExpLiteral, 4); | 1550 __ CallRuntime(Runtime::kMaterializeRegExpLiteral, 4); |
1551 __ mov(t1, v0); | 1551 __ mov(t1, v0); |
1552 | 1552 |
1553 __ bind(&materialized); | 1553 __ bind(&materialized); |
1554 int size = JSRegExp::kSize + JSRegExp::kInObjectFieldCount * kPointerSize; | 1554 int size = JSRegExp::kSize + JSRegExp::kInObjectFieldCount * kPointerSize; |
1555 Label allocated, runtime_allocate; | 1555 Label allocated, runtime_allocate; |
1556 __ AllocateInNewSpace(size, v0, a2, a3, &runtime_allocate, TAG_OBJECT); | 1556 __ Allocate(size, v0, a2, a3, &runtime_allocate, TAG_OBJECT); |
1557 __ jmp(&allocated); | 1557 __ jmp(&allocated); |
1558 | 1558 |
1559 __ bind(&runtime_allocate); | 1559 __ bind(&runtime_allocate); |
1560 __ push(t1); | 1560 __ push(t1); |
1561 __ li(a0, Operand(Smi::FromInt(size))); | 1561 __ li(a0, Operand(Smi::FromInt(size))); |
1562 __ push(a0); | 1562 __ push(a0); |
1563 __ CallRuntime(Runtime::kAllocateInNewSpace, 1); | 1563 __ CallRuntime(Runtime::kAllocateInNewSpace, 1); |
1564 __ pop(t1); | 1564 __ pop(t1); |
1565 | 1565 |
1566 __ bind(&allocated); | 1566 __ bind(&allocated); |
(...skipping 3057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4624 *context_length = 0; | 4624 *context_length = 0; |
4625 return previous_; | 4625 return previous_; |
4626 } | 4626 } |
4627 | 4627 |
4628 | 4628 |
4629 #undef __ | 4629 #undef __ |
4630 | 4630 |
4631 } } // namespace v8::internal | 4631 } } // namespace v8::internal |
4632 | 4632 |
4633 #endif // V8_TARGET_ARCH_MIPS | 4633 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |