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

Side by Side Diff: src/ic.cc

Issue 25044002: Tag handlers as HANDLER rather than STUB. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comment Created 7 years, 2 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/ia32/ic-ia32.cc ('k') | src/log.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 981 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 receiver_maps->Add(new_receiver_map); 992 receiver_maps->Add(new_receiver_map);
993 return true; 993 return true;
994 } 994 }
995 995
996 996
997 bool IC::UpdatePolymorphicIC(State state, 997 bool IC::UpdatePolymorphicIC(State state,
998 Handle<HeapObject> receiver, 998 Handle<HeapObject> receiver,
999 Handle<String> name, 999 Handle<String> name,
1000 Handle<Code> code, 1000 Handle<Code> code,
1001 StrictModeFlag strict_mode) { 1001 StrictModeFlag strict_mode) {
1002 if (code->type() == Code::NORMAL) return false; 1002 if (code->kind() != Code::HANDLER) return false;
1003 if (target()->ic_state() == MONOMORPHIC && 1003 if (target()->ic_state() == MONOMORPHIC &&
1004 target()->type() == Code::NORMAL) { 1004 target()->type() == Code::NORMAL) {
1005 return false; 1005 return false;
1006 } 1006 }
1007 1007
1008 MapHandleList receiver_maps; 1008 MapHandleList receiver_maps;
1009 CodeHandleList handlers; 1009 CodeHandleList handlers;
1010 1010
1011 int number_of_valid_maps; 1011 int number_of_valid_maps;
1012 int handler_to_overwrite = -1; 1012 int handler_to_overwrite = -1;
(...skipping 2149 matching lines...) Expand 10 before | Expand all | Expand 10 after
3162 #undef ADDR 3162 #undef ADDR
3163 }; 3163 };
3164 3164
3165 3165
3166 Address IC::AddressFromUtilityId(IC::UtilityId id) { 3166 Address IC::AddressFromUtilityId(IC::UtilityId id) {
3167 return IC_utilities[id]; 3167 return IC_utilities[id];
3168 } 3168 }
3169 3169
3170 3170
3171 } } // namespace v8::internal 3171 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/ic-ia32.cc ('k') | src/log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698