| Index: src/arm/lithium-codegen-arm.cc
|
| diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc
|
| index e79caf1854b978711411a9fa434b6bff464c12ed..e1e35d251ec58c3172e6b696de0a6e0f3d352799 100644
|
| --- a/src/arm/lithium-codegen-arm.cc
|
| +++ b/src/arm/lithium-codegen-arm.cc
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2012 the V8 project authors. All rights reserved.
|
| +// Copyright 2011 the V8 project authors. All rights reserved.
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| // met:
|
| @@ -4155,26 +4155,14 @@ void LCodeGen::DoCheckFunction(LCheckFunction* instr) {
|
| }
|
|
|
|
|
| -void LCodeGen::DoCheckMapCommon(Register reg,
|
| - Register scratch,
|
| - Handle<Map> map,
|
| - CompareMapMode mode,
|
| - LEnvironment* env) {
|
| - Label success;
|
| - __ CompareMap(reg, scratch, map, &success, mode);
|
| - DeoptimizeIf(ne, env);
|
| - __ bind(&success);
|
| -}
|
| -
|
| -
|
| void LCodeGen::DoCheckMap(LCheckMap* instr) {
|
| Register scratch = scratch0();
|
| LOperand* input = instr->InputAt(0);
|
| ASSERT(input->IsRegister());
|
| Register reg = ToRegister(input);
|
| - Handle<Map> map = instr->hydrogen()->map();
|
| - DoCheckMapCommon(reg, scratch, map, instr->hydrogen()->mode(),
|
| - instr->environment());
|
| + __ ldr(scratch, FieldMemOperand(reg, HeapObject::kMapOffset));
|
| + __ cmp(scratch, Operand(instr->hydrogen()->map()));
|
| + DeoptimizeIf(ne, instr->environment());
|
| }
|
|
|
|
|
| @@ -4243,9 +4231,9 @@ void LCodeGen::DoCheckPrototypeMaps(LCheckPrototypeMaps* instr) {
|
|
|
| // Check prototype maps up to the holder.
|
| while (!current_prototype.is_identical_to(holder)) {
|
| - DoCheckMapCommon(temp1, temp2,
|
| - Handle<Map>(current_prototype->map()),
|
| - ALLOW_ELEMENT_TRANSITION_MAPS, instr->environment());
|
| + __ ldr(temp2, FieldMemOperand(temp1, HeapObject::kMapOffset));
|
| + __ cmp(temp2, Operand(Handle<Map>(current_prototype->map())));
|
| + DeoptimizeIf(ne, instr->environment());
|
| current_prototype =
|
| Handle<JSObject>(JSObject::cast(current_prototype->GetPrototype()));
|
| // Load next prototype object.
|
| @@ -4253,9 +4241,8 @@ void LCodeGen::DoCheckPrototypeMaps(LCheckPrototypeMaps* instr) {
|
| }
|
|
|
| // Check the holder map.
|
| - DoCheckMapCommon(temp1, temp2,
|
| - Handle<Map>(current_prototype->map()),
|
| - ALLOW_ELEMENT_TRANSITION_MAPS, instr->environment());
|
| + __ ldr(temp2, FieldMemOperand(temp1, HeapObject::kMapOffset));
|
| + __ cmp(temp2, Operand(Handle<Map>(current_prototype->map())));
|
| DeoptimizeIf(ne, instr->environment());
|
| }
|
|
|
|
|