Chromium Code Reviews| Index: src/objects-inl.h |
| diff --git a/src/objects-inl.h b/src/objects-inl.h |
| index 779fd39ef96f9c9b78456d0c22a1cb87efc05a15..aaa3b930b7414fa096f86ad04bd143372b113dc1 100644 |
| --- a/src/objects-inl.h |
| +++ b/src/objects-inl.h |
| @@ -761,6 +761,14 @@ bool Object::IsDeoptimizationOutputData() const { |
| } |
| +bool Object::IsHandlerTable() const { |
| + if (!IsFixedArray()) return false; |
| + // There's actually no way to see the difference between a fixed array and |
| + // a handler table array. |
|
Yang
2015/03/17 10:21:22
Maybe we want to introduce a special fixed array m
Michael Starzinger
2015/03/18 10:42:35
Acknowledged. As discussed offline, Benedikt and I
|
| + return true; |
| +} |
| + |
| + |
| bool Object::IsDependentCode() const { |
| if (!IsFixedArray()) return false; |
| // There's actually no way to see the difference between a fixed array and |
| @@ -3356,6 +3364,7 @@ CAST_ACCESSOR(FixedDoubleArray) |
| CAST_ACCESSOR(FixedTypedArrayBase) |
| CAST_ACCESSOR(Foreign) |
| CAST_ACCESSOR(GlobalObject) |
| +CAST_ACCESSOR(HandlerTable) |
| CAST_ACCESSOR(HeapObject) |
| CAST_ACCESSOR(JSArray) |
| CAST_ACCESSOR(JSArrayBuffer) |
| @@ -6242,7 +6251,6 @@ ACCESSORS(JSGeneratorObject, context, Context, kContextOffset) |
| ACCESSORS(JSGeneratorObject, receiver, Object, kReceiverOffset) |
| SMI_ACCESSORS(JSGeneratorObject, continuation, kContinuationOffset) |
| ACCESSORS(JSGeneratorObject, operand_stack, FixedArray, kOperandStackOffset) |
| -SMI_ACCESSORS(JSGeneratorObject, stack_handler_index, kStackHandlerIndexOffset) |
| bool JSGeneratorObject::is_suspended() { |
| DCHECK_LT(kGeneratorExecuting, kGeneratorClosed); |