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

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

Issue 6580038: [Isolates] Merge from bleeding_edge, revisions 5934-6100. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 years, 10 months 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 | « src/x64/full-codegen-x64.cc ('k') | src/x64/lithium-x64.h » ('j') | 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 1937 matching lines...) Expand 10 before | Expand all | Expand 10 after
1948 default: 1948 default:
1949 UNREACHABLE(); 1949 UNREACHABLE();
1950 return no_condition; 1950 return no_condition;
1951 } 1951 }
1952 } 1952 }
1953 1953
1954 1954
1955 void CompareIC::UpdateCaches(Handle<Object> x, Handle<Object> y) { 1955 void CompareIC::UpdateCaches(Handle<Object> x, Handle<Object> y) {
1956 HandleScope scope; 1956 HandleScope scope;
1957 Handle<Code> rewritten; 1957 Handle<Code> rewritten;
1958 #ifdef DEBUG
1959 State previous_state = GetState(); 1958 State previous_state = GetState();
1960 #endif 1959 State state = TargetState(previous_state, false, x, y);
1961 State state = TargetState(x, y);
1962 if (state == GENERIC) { 1960 if (state == GENERIC) {
1963 CompareStub stub(GetCondition(), strict(), NO_COMPARE_FLAGS); 1961 CompareStub stub(GetCondition(), strict(), NO_COMPARE_FLAGS);
1964 rewritten = stub.GetCode(); 1962 rewritten = stub.GetCode();
1965 } else { 1963 } else {
1966 ICCompareStub stub(op_, state); 1964 ICCompareStub stub(op_, state);
1967 rewritten = stub.GetCode(); 1965 rewritten = stub.GetCode();
1968 } 1966 }
1969 set_target(*rewritten); 1967 set_target(*rewritten);
1970 1968
1971 #ifdef DEBUG 1969 #ifdef DEBUG
1972 if (FLAG_trace_ic) { 1970 if (FLAG_trace_ic) {
1973 PrintF("[CompareIC (%s->%s)#%s]\n", 1971 PrintF("[CompareIC (%s->%s)#%s]\n",
1974 GetStateName(previous_state), 1972 GetStateName(previous_state),
1975 GetStateName(state), 1973 GetStateName(state),
1976 Token::Name(op_)); 1974 Token::Name(op_));
1977 } 1975 }
1978 #endif 1976 #endif
1979 } 1977 }
1980 1978
1979 void PatchInlinedSmiCode(Address address) {
1980 UNIMPLEMENTED();
1981 }
1982
1981 } } // namespace v8::internal 1983 } } // namespace v8::internal
1982 1984
1983 #endif // V8_TARGET_ARCH_X64 1985 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698