| Index: src/x64/full-codegen-x64.cc
|
| diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc
|
| index 2ccd923f73be814c66aa714be28ced5bcd291d56..304f2dbb4f22aa1097eff97ad67b290d913c38c5 100644
|
| --- a/src/x64/full-codegen-x64.cc
|
| +++ b/src/x64/full-codegen-x64.cc
|
| @@ -1514,7 +1514,8 @@ void FullCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) {
|
| __ bind(&materialized);
|
| int size = JSRegExp::kSize + JSRegExp::kInObjectFieldCount * kPointerSize;
|
| Label allocated, runtime_allocate;
|
| - __ AllocateInNewSpace(size, rax, rcx, rdx, &runtime_allocate, TAG_OBJECT);
|
| + __ Allocate(size, rax, rcx, rdx, &runtime_allocate, TAG_OBJECT,
|
| + MacroAssembler::NEW_SPACE);
|
| __ jmp(&allocated);
|
|
|
| __ bind(&runtime_allocate);
|
|
|