| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 1941 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1952 default: | 1952 default: |
| 1953 UNREACHABLE(); | 1953 UNREACHABLE(); |
| 1954 return no_condition; | 1954 return no_condition; |
| 1955 } | 1955 } |
| 1956 } | 1956 } |
| 1957 | 1957 |
| 1958 | 1958 |
| 1959 void CompareIC::UpdateCaches(Handle<Object> x, Handle<Object> y) { | 1959 void CompareIC::UpdateCaches(Handle<Object> x, Handle<Object> y) { |
| 1960 HandleScope scope; | 1960 HandleScope scope; |
| 1961 Handle<Code> rewritten; | 1961 Handle<Code> rewritten; |
| 1962 #ifdef DEBUG | |
| 1963 State previous_state = GetState(); | 1962 State previous_state = GetState(); |
| 1964 #endif | 1963 State state = TargetState(previous_state, false, x, y); |
| 1965 State state = TargetState(x, y); | |
| 1966 if (state == GENERIC) { | 1964 if (state == GENERIC) { |
| 1967 CompareStub stub(GetCondition(), strict(), NO_COMPARE_FLAGS); | 1965 CompareStub stub(GetCondition(), strict(), NO_COMPARE_FLAGS); |
| 1968 rewritten = stub.GetCode(); | 1966 rewritten = stub.GetCode(); |
| 1969 } else { | 1967 } else { |
| 1970 ICCompareStub stub(op_, state); | 1968 ICCompareStub stub(op_, state); |
| 1971 rewritten = stub.GetCode(); | 1969 rewritten = stub.GetCode(); |
| 1972 } | 1970 } |
| 1973 set_target(*rewritten); | 1971 set_target(*rewritten); |
| 1974 | 1972 |
| 1975 #ifdef DEBUG | 1973 #ifdef DEBUG |
| 1976 if (FLAG_trace_ic) { | 1974 if (FLAG_trace_ic) { |
| 1977 PrintF("[CompareIC (%s->%s)#%s]\n", | 1975 PrintF("[CompareIC (%s->%s)#%s]\n", |
| 1978 GetStateName(previous_state), | 1976 GetStateName(previous_state), |
| 1979 GetStateName(state), | 1977 GetStateName(state), |
| 1980 Token::Name(op_)); | 1978 Token::Name(op_)); |
| 1981 } | 1979 } |
| 1982 #endif | 1980 #endif |
| 1983 } | 1981 } |
| 1984 | 1982 |
| 1983 void PatchInlinedSmiCode(Address address) { |
| 1984 UNIMPLEMENTED(); |
| 1985 } |
| 1986 |
| 1985 } } // namespace v8::internal | 1987 } } // namespace v8::internal |
| 1986 | 1988 |
| 1987 #endif // V8_TARGET_ARCH_X64 | 1989 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |