| Index: src/ic/handler-compiler.h
|
| diff --git a/src/ic/handler-compiler.h b/src/ic/handler-compiler.h
|
| index 1023fafdec8e27d05f27965732a6d4c5dbd178b2..0dec36af2f5c9fb4ee3225acbf372becc4550aaf 100644
|
| --- a/src/ic/handler-compiler.h
|
| +++ b/src/ic/handler-compiler.h
|
| @@ -83,6 +83,18 @@ class PropertyHandlerCompiler : public PropertyAccessCompiler {
|
| Handle<Name> name, Register scratch,
|
| Label* miss);
|
|
|
| + // Generates check that current native context has the same access rights
|
| + // as the given |native_context_cell|.
|
| + // If |compare_native_contexts_only| is true then access check is considered
|
| + // passed if the execution-time native context is equal to contents of
|
| + // |native_context_cell|.
|
| + // If |compare_native_contexts_only| is false then access check is considered
|
| + // passed if the execution-time native context is equal to contents of
|
| + // |native_context_cell| or security tokens of both contexts are equal.
|
| + void GenerateAccessCheck(Handle<WeakCell> native_context_cell,
|
| + Register scratch1, Register scratch2, Label* miss,
|
| + bool compare_native_contexts_only);
|
| +
|
| // Generates code that verifies that the property holder has not changed
|
| // (checking maps of objects in the prototype chain for fast and global
|
| // objects or doing negative lookup for slow objects, ensures that the
|
|
|