| Index: src/ic/ppc/ic-compiler-ppc.cc
|
| diff --git a/src/ic/arm/ic-compiler-arm.cc b/src/ic/ppc/ic-compiler-ppc.cc
|
| similarity index 90%
|
| copy from src/ic/arm/ic-compiler-arm.cc
|
| copy to src/ic/ppc/ic-compiler-ppc.cc
|
| index c9ce6e3b18fc01645ab52f5bef3ab8dfbd55dcfd..fbbc9dd1b3fe2f4da4197ba4c5349aee63efee19 100644
|
| --- a/src/ic/arm/ic-compiler-arm.cc
|
| +++ b/src/ic/ppc/ic-compiler-ppc.cc
|
| @@ -1,11 +1,15 @@
|
| // Copyright 2014 the V8 project authors. All rights reserved.
|
| +//
|
| +// Copyright IBM Corp. 2012, 2013. All rights reserved.
|
| +//
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| #include "src/v8.h"
|
|
|
| -#if V8_TARGET_ARCH_ARM
|
| +#if V8_TARGET_ARCH_PPC
|
|
|
| +#include "src/ic/ic.h"
|
| #include "src/ic/ic-compiler.h"
|
|
|
| namespace v8 {
|
| @@ -45,8 +49,8 @@ Handle<Code> PropertyICCompiler::CompilePolymorphic(TypeHandleList* types,
|
| if (name.is_identical_to(isolate()->factory()->normal_ic_symbol())) {
|
| __ JumpIfNotUniqueName(this->name(), &miss);
|
| } else {
|
| - __ cmp(this->name(), Operand(name));
|
| - __ b(ne, &miss);
|
| + __ Cmpi(this->name(), Operand(name), r0);
|
| + __ bne(&miss);
|
| }
|
| }
|
|
|
| @@ -61,7 +65,7 @@ Handle<Code> PropertyICCompiler::CompilePolymorphic(TypeHandleList* types,
|
|
|
| int receiver_count = types->length();
|
| int number_of_handled_maps = 0;
|
| - __ ldr(map_reg, FieldMemOperand(receiver(), HeapObject::kMapOffset));
|
| + __ LoadP(map_reg, FieldMemOperand(receiver(), HeapObject::kMapOffset));
|
| for (int current = 0; current < receiver_count; ++current) {
|
| Handle<HeapType> type = types->at(current);
|
| Handle<Map> map = IC::TypeToMap(*type, isolate());
|
| @@ -95,7 +99,7 @@ Handle<Code> PropertyICCompiler::CompileKeyedStorePolymorphic(
|
| __ JumpIfSmi(receiver(), &miss);
|
|
|
| int receiver_count = receiver_maps->length();
|
| - __ ldr(scratch1(), FieldMemOperand(receiver(), HeapObject::kMapOffset));
|
| + __ LoadP(scratch1(), FieldMemOperand(receiver(), HeapObject::kMapOffset));
|
| for (int i = 0; i < receiver_count; ++i) {
|
| __ mov(ip, Operand(receiver_maps->at(i)));
|
| __ cmp(scratch1(), ip);
|
| @@ -103,7 +107,7 @@ Handle<Code> PropertyICCompiler::CompileKeyedStorePolymorphic(
|
| __ Jump(handler_stubs->at(i), RelocInfo::CODE_TARGET, eq);
|
| } else {
|
| Label next_map;
|
| - __ b(ne, &next_map);
|
| + __ bne(&next_map);
|
| __ mov(transition_map(), Operand(transitioned_maps->at(i)));
|
| __ Jump(handler_stubs->at(i), RelocInfo::CODE_TARGET, al);
|
| __ bind(&next_map);
|
| @@ -122,4 +126,4 @@ Handle<Code> PropertyICCompiler::CompileKeyedStorePolymorphic(
|
| }
|
| } // namespace v8::internal
|
|
|
| -#endif // V8_TARGET_ARCH_ARM
|
| +#endif // V8_TARGET_ARCH_PPC
|
|
|