Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(663)

Side by Side Diff: src/x64/ic-x64.cc

Issue 5754004: Revert 5973 as well (related to previous commit) (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1933 matching lines...) Expand 10 before | Expand all | Expand 10 after
1944 default: 1944 default:
1945 UNREACHABLE(); 1945 UNREACHABLE();
1946 return no_condition; 1946 return no_condition;
1947 } 1947 }
1948 } 1948 }
1949 1949
1950 1950
1951 void CompareIC::UpdateCaches(Handle<Object> x, Handle<Object> y) { 1951 void CompareIC::UpdateCaches(Handle<Object> x, Handle<Object> y) {
1952 HandleScope scope; 1952 HandleScope scope;
1953 Handle<Code> rewritten; 1953 Handle<Code> rewritten;
1954 #ifdef DEBUG
1954 State previous_state = GetState(); 1955 State previous_state = GetState();
1955 State state = TargetState(previous_state, x, y); 1956 #endif
1957 State state = TargetState(x, y);
1956 if (state == GENERIC) { 1958 if (state == GENERIC) {
1957 CompareStub stub(GetCondition(), strict(), NO_COMPARE_FLAGS); 1959 CompareStub stub(GetCondition(), strict(), NO_COMPARE_FLAGS);
1958 rewritten = stub.GetCode(); 1960 rewritten = stub.GetCode();
1959 } else { 1961 } else {
1960 ICCompareStub stub(op_, state); 1962 ICCompareStub stub(op_, state);
1961 rewritten = stub.GetCode(); 1963 rewritten = stub.GetCode();
1962 } 1964 }
1963 set_target(*rewritten); 1965 set_target(*rewritten);
1964 1966
1965 #ifdef DEBUG 1967 #ifdef DEBUG
1966 if (FLAG_trace_ic) { 1968 if (FLAG_trace_ic) {
1967 PrintF("[CompareIC (%s->%s)#%s]\n", 1969 PrintF("[CompareIC (%s->%s)#%s]\n",
1968 GetStateName(previous_state), 1970 GetStateName(previous_state),
1969 GetStateName(state), 1971 GetStateName(state),
1970 Token::Name(op_)); 1972 Token::Name(op_));
1971 } 1973 }
1972 #endif 1974 #endif
1973 } 1975 }
1974 1976
1975 void PatchInlinedSmiCode(Address address) {
1976 UNIMPLEMENTED();
1977 }
1978
1979 } } // namespace v8::internal 1977 } } // namespace v8::internal
1980 1978
1981 #endif // V8_TARGET_ARCH_X64 1979 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698