| Index: src/ic/mips64/handler-compiler-mips64.cc
|
| diff --git a/src/ic/mips64/handler-compiler-mips64.cc b/src/ic/mips64/handler-compiler-mips64.cc
|
| index 181534c3bc39ac07547384d191ba9f8fb583ebba..249f8fedb3e23ce2a163738a1ce1cbab2846d3e8 100644
|
| --- a/src/ic/mips64/handler-compiler-mips64.cc
|
| +++ b/src/ic/mips64/handler-compiler-mips64.cc
|
| @@ -393,6 +393,27 @@ void NamedStoreHandlerCompiler::GenerateFieldTypeChecks(FieldType* field_type,
|
| }
|
| }
|
|
|
| +void PropertyHandlerCompiler::GenerateAccessCheck(
|
| + Handle<WeakCell> native_context_cell, Register scratch1, Register scratch2,
|
| + Label* miss, bool compare_native_contexts_only) {
|
| + Label done;
|
| + // Load current native context.
|
| + __ ld(scratch1, NativeContextMemOperand());
|
| + // Load expected native context.
|
| + __ LoadWeakValue(scratch2, native_context_cell, miss);
|
| +
|
| + if (!compare_native_contexts_only) {
|
| + __ Branch(&done, eq, scratch1, Operand(scratch2));
|
| +
|
| + // Compare security tokens of current and expected native contexts.
|
| + __ ld(scratch1, ContextMemOperand(scratch1, Context::SECURITY_TOKEN_INDEX));
|
| + __ ld(scratch2, ContextMemOperand(scratch2, Context::SECURITY_TOKEN_INDEX));
|
| + }
|
| + __ Branch(miss, ne, scratch1, Operand(scratch2));
|
| +
|
| + __ bind(&done);
|
| +}
|
| +
|
| Register PropertyHandlerCompiler::CheckPrototypes(
|
| Register object_reg, Register holder_reg, Register scratch1,
|
| Register scratch2, Handle<Name> name, Label* miss,
|
|
|