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 89% |
copy from src/ic/arm/ic-compiler-arm.cc |
copy to src/ic/ppc/ic-compiler-ppc.cc |
index 7bef56e94de091e68cdc02f0da296a925286b84f..c86845646efcf7502511b794db1536039afd044c 100644 |
--- a/src/ic/arm/ic-compiler-arm.cc |
+++ b/src/ic/ppc/ic-compiler-ppc.cc |
@@ -4,7 +4,7 @@ |
#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" |
@@ -46,12 +46,12 @@ Handle<Code> PropertyICCompiler::CompilePolymorphic(TypeHandleList* types, |
if (name.is_identical_to(isolate()->factory()->normal_ic_symbol())) { |
Register tmp = scratch1(); |
__ JumpIfSmi(this->name(), &miss); |
- __ ldr(tmp, FieldMemOperand(this->name(), HeapObject::kMapOffset)); |
- __ ldrb(tmp, FieldMemOperand(tmp, Map::kInstanceTypeOffset)); |
+ __ LoadP(tmp, FieldMemOperand(this->name(), HeapObject::kMapOffset)); |
+ __ lbz(tmp, FieldMemOperand(tmp, Map::kInstanceTypeOffset)); |
__ JumpIfNotUniqueNameInstanceType(tmp, &miss); |
} else { |
- __ cmp(this->name(), Operand(name)); |
- __ b(ne, &miss); |
+ __ Cmpi(this->name(), Operand(name), r0); |
+ __ bne(&miss); |
} |
} |
@@ -66,7 +66,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()); |
@@ -100,7 +100,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); |
@@ -108,7 +108,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); |
@@ -127,4 +127,4 @@ Handle<Code> PropertyICCompiler::CompileKeyedStorePolymorphic( |
} |
} // namespace v8::internal |
-#endif // V8_TARGET_ARCH_ARM |
+#endif // V8_TARGET_ARCH_PPC |