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

Side by Side Diff: src/ic.cc

Issue 10701054: Enable stub generation using Hydrogen/Lithium (again) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback Created 8 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
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 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after
1047 1047
1048 TRACE_IC("LoadIC", name, state, target()); 1048 TRACE_IC("LoadIC", name, state, target());
1049 } 1049 }
1050 1050
1051 1051
1052 Handle<Code> KeyedLoadIC::GetElementStubWithoutMapCheck( 1052 Handle<Code> KeyedLoadIC::GetElementStubWithoutMapCheck(
1053 bool is_js_array, 1053 bool is_js_array,
1054 ElementsKind elements_kind, 1054 ElementsKind elements_kind,
1055 KeyedAccessGrowMode grow_mode) { 1055 KeyedAccessGrowMode grow_mode) {
1056 ASSERT(grow_mode == DO_NOT_ALLOW_JSARRAY_GROWTH); 1056 ASSERT(grow_mode == DO_NOT_ALLOW_JSARRAY_GROWTH);
1057 return KeyedLoadElementStub(elements_kind).GetCode(); 1057 if (IsFastElementsKind(elements_kind) ||
1058 IsExternalArrayElementsKind(elements_kind)) {
1059 return KeyedLoadFastElementStub(is_js_array,
1060 elements_kind).GetCode();
Jakob Kummerow 2012/11/28 16:28:22 nit: fits on one line
danno 2012/11/30 16:23:24 Done.
1061 } else {
1062 ASSERT(elements_kind == DICTIONARY_ELEMENTS);
1063 return KeyedLoadDictionaryElementStub().GetCode();
1064 }
1058 } 1065 }
1059 1066
1060 1067
1061 Handle<Code> KeyedLoadIC::ComputePolymorphicStub( 1068 Handle<Code> KeyedLoadIC::ComputePolymorphicStub(
1062 MapHandleList* receiver_maps, 1069 MapHandleList* receiver_maps,
1063 StrictModeFlag strict_mode, 1070 StrictModeFlag strict_mode,
1064 KeyedAccessGrowMode growth_mode) { 1071 KeyedAccessGrowMode growth_mode) {
1065 CodeHandleList handler_ics(receiver_maps->length()); 1072 CodeHandleList handler_ics(receiver_maps->length());
1066 for (int i = 0; i < receiver_maps->length(); ++i) { 1073 for (int i = 0; i < receiver_maps->length(); ++i) {
1067 Handle<Map> receiver_map = receiver_maps->at(i); 1074 Handle<Map> receiver_map = receiver_maps->at(i);
(...skipping 1701 matching lines...) Expand 10 before | Expand all | Expand 10 after
2769 #undef ADDR 2776 #undef ADDR
2770 }; 2777 };
2771 2778
2772 2779
2773 Address IC::AddressFromUtilityId(IC::UtilityId id) { 2780 Address IC::AddressFromUtilityId(IC::UtilityId id) {
2774 return IC_utilities[id]; 2781 return IC_utilities[id];
2775 } 2782 }
2776 2783
2777 2784
2778 } } // namespace v8::internal 2785 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698