| 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 1471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1482 __ push(ecx); | 1482 __ push(ecx); |
| 1483 __ push(Immediate(Smi::FromInt(expr->literal_index()))); | 1483 __ push(Immediate(Smi::FromInt(expr->literal_index()))); |
| 1484 __ push(Immediate(expr->pattern())); | 1484 __ push(Immediate(expr->pattern())); |
| 1485 __ push(Immediate(expr->flags())); | 1485 __ push(Immediate(expr->flags())); |
| 1486 __ CallRuntime(Runtime::kMaterializeRegExpLiteral, 4); | 1486 __ CallRuntime(Runtime::kMaterializeRegExpLiteral, 4); |
| 1487 __ mov(ebx, eax); | 1487 __ mov(ebx, eax); |
| 1488 | 1488 |
| 1489 __ bind(&materialized); | 1489 __ bind(&materialized); |
| 1490 int size = JSRegExp::kSize + JSRegExp::kInObjectFieldCount * kPointerSize; | 1490 int size = JSRegExp::kSize + JSRegExp::kInObjectFieldCount * kPointerSize; |
| 1491 Label allocated, runtime_allocate; | 1491 Label allocated, runtime_allocate; |
| 1492 __ AllocateInNewSpace(size, eax, ecx, edx, &runtime_allocate, TAG_OBJECT); | 1492 __ Allocate(size, eax, ecx, edx, &runtime_allocate, TAG_OBJECT); |
| 1493 __ jmp(&allocated); | 1493 __ jmp(&allocated); |
| 1494 | 1494 |
| 1495 __ bind(&runtime_allocate); | 1495 __ bind(&runtime_allocate); |
| 1496 __ push(ebx); | 1496 __ push(ebx); |
| 1497 __ push(Immediate(Smi::FromInt(size))); | 1497 __ push(Immediate(Smi::FromInt(size))); |
| 1498 __ CallRuntime(Runtime::kAllocateInNewSpace, 1); | 1498 __ CallRuntime(Runtime::kAllocateInNewSpace, 1); |
| 1499 __ pop(ebx); | 1499 __ pop(ebx); |
| 1500 | 1500 |
| 1501 __ bind(&allocated); | 1501 __ bind(&allocated); |
| 1502 // Copy the content into the newly allocated memory. | 1502 // Copy the content into the newly allocated memory. |
| (...skipping 3070 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4573 *stack_depth = 0; | 4573 *stack_depth = 0; |
| 4574 *context_length = 0; | 4574 *context_length = 0; |
| 4575 return previous_; | 4575 return previous_; |
| 4576 } | 4576 } |
| 4577 | 4577 |
| 4578 #undef __ | 4578 #undef __ |
| 4579 | 4579 |
| 4580 } } // namespace v8::internal | 4580 } } // namespace v8::internal |
| 4581 | 4581 |
| 4582 #endif // V8_TARGET_ARCH_IA32 | 4582 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |