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