Index: src/ia32/ic-ia32.cc |
diff --git a/src/ia32/ic-ia32.cc b/src/ia32/ic-ia32.cc |
index dae3bbd63b8f3c94b770cd1f765506f723d442b6..ac5af2bf66a3f504a9e130ed6e866e2ae7a89814 100644 |
--- a/src/ia32/ic-ia32.cc |
+++ b/src/ia32/ic-ia32.cc |
@@ -1715,7 +1715,7 @@ Condition CompareIC::ComputeCondition(Token::Value op) { |
} |
-static bool HasInlinedSmiCode(Address address) { |
+bool CompareIC::HasInlinedSmiCode(Address address) { |
// The address of the instruction following the call. |
Address test_instruction_address = |
address + Assembler::kCallTargetAddressOffset; |
@@ -1726,40 +1726,6 @@ static bool HasInlinedSmiCode(Address address) { |
} |
-void CompareIC::UpdateCaches(Handle<Object> x, Handle<Object> y) { |
- HandleScope scope; |
- Handle<Code> rewritten; |
- State previous_state = GetState(); |
- |
- State state = TargetState(previous_state, HasInlinedSmiCode(address()), x, y); |
- if (state == GENERIC) { |
- CompareStub stub(GetCondition(), strict(), NO_COMPARE_FLAGS); |
- rewritten = stub.GetCode(); |
- } else { |
- ICCompareStub stub(op_, state); |
- if (state == KNOWN_OBJECTS) { |
- stub.set_known_map(Handle<Map>(Handle<JSObject>::cast(x)->map())); |
- } |
- rewritten = stub.GetCode(); |
- } |
- set_target(*rewritten); |
- |
-#ifdef DEBUG |
- if (FLAG_trace_ic) { |
- PrintF("[CompareIC (%s->%s)#%s]\n", |
- GetStateName(previous_state), |
- GetStateName(state), |
- Token::Name(op_)); |
- } |
-#endif |
- |
- // Activate inlined smi code. |
- if (previous_state == UNINITIALIZED) { |
- PatchInlinedSmiCode(address(), ENABLE_INLINED_SMI_CHECK); |
- } |
-} |
- |
- |
void PatchInlinedSmiCode(Address address, InlinedSmiCheck check) { |
// The address of the instruction following the call. |
Address test_instruction_address = |