| Index: src/ic/arm/handler-compiler-arm.cc
|
| diff --git a/src/ic/arm/handler-compiler-arm.cc b/src/ic/arm/handler-compiler-arm.cc
|
| index 61f8f86a55d0257e6f0d22ec3c2238616a42b563..6145d4364152c1f9c2f261b08c3fe2ee2efac706 100644
|
| --- a/src/ic/arm/handler-compiler-arm.cc
|
| +++ b/src/ic/arm/handler-compiler-arm.cc
|
| @@ -407,6 +407,31 @@ 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.
|
| + __ ldr(scratch1, NativeContextMemOperand());
|
| + // Load expected native context.
|
| + __ LoadWeakValue(scratch2, native_context_cell, miss);
|
| + __ cmp(scratch1, scratch2);
|
| +
|
| + if (!compare_native_contexts_only) {
|
| + __ b(eq, &done);
|
| +
|
| + // Compare security tokens of current and expected native contexts.
|
| + __ ldr(scratch1,
|
| + ContextMemOperand(scratch1, Context::SECURITY_TOKEN_INDEX));
|
| + __ ldr(scratch2,
|
| + ContextMemOperand(scratch2, Context::SECURITY_TOKEN_INDEX));
|
| + __ cmp(scratch1, scratch2);
|
| + }
|
| + __ b(ne, miss);
|
| +
|
| + __ bind(&done);
|
| +}
|
| +
|
| Register PropertyHandlerCompiler::CheckPrototypes(
|
| Register object_reg, Register holder_reg, Register scratch1,
|
| Register scratch2, Handle<Name> name, Label* miss,
|
|
|