Chromium Code Reviews| Index: src/heap.h |
| diff --git a/src/heap.h b/src/heap.h |
| index 0127933fc72287cf4df4dbe51902582ec9ccc9a2..a03595711839501873d30d0f427a82ad71b2b75b 100644 |
| --- a/src/heap.h |
| +++ b/src/heap.h |
| @@ -583,11 +583,16 @@ class Heap : public AllStatic { |
| Object* prototype, |
| PretenureFlag pretenure = TENURED); |
| - // Indicies for direct access into argument objects. |
| + // Arguments object size. |
| static const int kArgumentsObjectSize = |
| JSObject::kHeaderSize + 2 * kPointerSize; |
| - static const int arguments_callee_index = 0; |
| - static const int arguments_length_index = 1; |
| + // Strict mode arguments has no callee so it is smaller. |
| + static const int kArgumentsObjectSizeStrict = |
| + JSObject::kHeaderSize + 1 * kPointerSize; |
| + // Indicies for direct access into argument objects. |
| + static const int arguments_length_index = 0; |
| + // callee is only valid in non-strict mode. |
| + static const int arguments_callee_index = 1; |
|
Martin Maly
2011/03/15 02:50:36
The length and callee properties switch places in
|
| // Allocates an arguments object - optionally with an elements array. |
| // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |