| Index: src/x64/ic-x64.cc
|
| diff --git a/src/x64/ic-x64.cc b/src/x64/ic-x64.cc
|
| index efa07a80b5a3ad52abbd8afa349115d35f6e89ec..641e243300e011429465f501ec0b03124ee7cf21 100644
|
| --- a/src/x64/ic-x64.cc
|
| +++ b/src/x64/ic-x64.cc
|
| @@ -1729,7 +1729,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;
|
| @@ -1740,39 +1740,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 =
|
|
|