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 1545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1556 __ mov(r0, Operand(Smi::FromInt(size))); | 1556 __ mov(r0, Operand(Smi::FromInt(size))); |
1557 __ push(r0); | 1557 __ push(r0); |
1558 __ CallRuntime(Runtime::kAllocateInNewSpace, 1); | 1558 __ CallRuntime(Runtime::kAllocateInNewSpace, 1); |
1559 __ pop(r5); | 1559 __ pop(r5); |
1560 | 1560 |
1561 __ bind(&allocated); | 1561 __ bind(&allocated); |
1562 // After this, registers are used as follows: | 1562 // After this, registers are used as follows: |
1563 // r0: Newly allocated regexp. | 1563 // r0: Newly allocated regexp. |
1564 // r5: Materialized regexp. | 1564 // r5: Materialized regexp. |
1565 // r2: temp. | 1565 // r2: temp. |
1566 __ CopyFields(r0, r5, r2.bit(), size / kPointerSize); | 1566 __ CopyFields(r0, r5, d0, s0, size / kPointerSize); |
1567 context()->Plug(r0); | 1567 context()->Plug(r0); |
1568 } | 1568 } |
1569 | 1569 |
1570 | 1570 |
1571 void FullCodeGenerator::EmitAccessor(Expression* expression) { | 1571 void FullCodeGenerator::EmitAccessor(Expression* expression) { |
1572 if (expression == NULL) { | 1572 if (expression == NULL) { |
1573 __ LoadRoot(r1, Heap::kNullValueRootIndex); | 1573 __ LoadRoot(r1, Heap::kNullValueRootIndex); |
1574 __ push(r1); | 1574 __ push(r1); |
1575 } else { | 1575 } else { |
1576 VisitForStackValue(expression); | 1576 VisitForStackValue(expression); |
(...skipping 2991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4568 *context_length = 0; | 4568 *context_length = 0; |
4569 return previous_; | 4569 return previous_; |
4570 } | 4570 } |
4571 | 4571 |
4572 | 4572 |
4573 #undef __ | 4573 #undef __ |
4574 | 4574 |
4575 } } // namespace v8::internal | 4575 } } // namespace v8::internal |
4576 | 4576 |
4577 #endif // V8_TARGET_ARCH_ARM | 4577 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |