| Index: src/ia32/builtins-ia32.cc
|
| diff --git a/src/ia32/builtins-ia32.cc b/src/ia32/builtins-ia32.cc
|
| index 3d274f2e6b8130ab671634b9ab0856b195af519b..55f66f1df8e9edb9e0225cda6a87fb2feacf134c 100644
|
| --- a/src/ia32/builtins-ia32.cc
|
| +++ b/src/ia32/builtins-ia32.cc
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2011 the V8 project authors. All rights reserved.
|
| +// Copyright 2012 the V8 project authors. All rights reserved.
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| // met:
|
| @@ -1297,6 +1297,7 @@ static void ArrayNativeCode(MacroAssembler* masm,
|
| __ bind(&has_non_smi_element);
|
| // Throw away the array that's only been partially constructed.
|
| __ pop(eax);
|
| + __ UndoAllocationInNewSpace(eax);
|
|
|
| // Restore argc and constructor before running the generic code.
|
| __ bind(&prepare_generic_code_call);
|
|
|