| 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 MacroAssembler::NEW_SPACE); |
| 1493 __ jmp(&allocated); | 1494 __ jmp(&allocated); |
| 1494 | 1495 |
| 1495 __ bind(&runtime_allocate); | 1496 __ bind(&runtime_allocate); |
| 1496 __ push(ebx); | 1497 __ push(ebx); |
| 1497 __ push(Immediate(Smi::FromInt(size))); | 1498 __ push(Immediate(Smi::FromInt(size))); |
| 1498 __ CallRuntime(Runtime::kAllocateInNewSpace, 1); | 1499 __ CallRuntime(Runtime::kAllocateInNewSpace, 1); |
| 1499 __ pop(ebx); | 1500 __ pop(ebx); |
| 1500 | 1501 |
| 1501 __ bind(&allocated); | 1502 __ bind(&allocated); |
| 1502 // Copy the content into the newly allocated memory. | 1503 // Copy the content into the newly allocated memory. |
| (...skipping 3036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4539 *stack_depth = 0; | 4540 *stack_depth = 0; |
| 4540 *context_length = 0; | 4541 *context_length = 0; |
| 4541 return previous_; | 4542 return previous_; |
| 4542 } | 4543 } |
| 4543 | 4544 |
| 4544 #undef __ | 4545 #undef __ |
| 4545 | 4546 |
| 4546 } } // namespace v8::internal | 4547 } } // namespace v8::internal |
| 4547 | 4548 |
| 4548 #endif // V8_TARGET_ARCH_IA32 | 4549 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |