Index: src/runtime/runtime-proxy.cc |
diff --git a/src/runtime/runtime-proxy.cc b/src/runtime/runtime-proxy.cc |
index 3a521c6b7c49831e8cbcc6f0be1fd2c7b589f191..7764d25c5823d24ff880b32ad47a29d90877ee33 100644 |
--- a/src/runtime/runtime-proxy.cc |
+++ b/src/runtime/runtime-proxy.cc |
@@ -58,9 +58,8 @@ RUNTIME_FUNCTION(Runtime_JSProxyCall) { |
ElementsAccessor* accessor = arg_array->GetElementsAccessor(); |
{ |
DisallowHeapAllocation no_gc; |
- FixedArrayBase* elements = arg_array->elements(); |
for (int i = 0; i < arguments_length; i++) { |
- accessor->Set(elements, i, args[i + 1]); |
+ accessor->Set(arg_array, i, args[i + 1]); |
} |
} |
// 8. Return Call(trap, handler, «target, thisArgument, argArray»). |
@@ -119,9 +118,8 @@ RUNTIME_FUNCTION(Runtime_JSProxyConstruct) { |
ElementsAccessor* accessor = arg_array->GetElementsAccessor(); |
{ |
DisallowHeapAllocation no_gc; |
- FixedArrayBase* elements = arg_array->elements(); |
for (int i = 0; i < arguments_length; i++) { |
- accessor->Set(elements, i, args[i + 1]); |
+ accessor->Set(arg_array, i, args[i + 1]); |
} |
} |
// 8. Let newObj be ? Call(trap, handler, «target, argArray, newTarget »). |