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

Side by Side Diff: src/ic.cc

Issue 7849017: Mechanical refactor to move ElementsKind type out of JSObject. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: latest changes Created 9 years, 3 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/ic.h ('k') | src/lithium.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1075 matching lines...) Expand 10 before | Expand all | Expand 10 after
1086 } 1086 }
1087 1087
1088 #ifdef DEBUG 1088 #ifdef DEBUG
1089 TraceIC("LoadIC", name, state, target()); 1089 TraceIC("LoadIC", name, state, target());
1090 #endif 1090 #endif
1091 } 1091 }
1092 1092
1093 1093
1094 MaybeObject* KeyedLoadIC::GetElementStubWithoutMapCheck( 1094 MaybeObject* KeyedLoadIC::GetElementStubWithoutMapCheck(
1095 bool is_js_array, 1095 bool is_js_array,
1096 JSObject::ElementsKind elements_kind) { 1096 ElementsKind elements_kind) {
1097 return KeyedLoadElementStub(elements_kind).TryGetCode(); 1097 return KeyedLoadElementStub(elements_kind).TryGetCode();
1098 } 1098 }
1099 1099
1100 1100
1101 MaybeObject* KeyedLoadIC::ConstructMegamorphicStub( 1101 MaybeObject* KeyedLoadIC::ConstructMegamorphicStub(
1102 MapList* receiver_maps, 1102 MapList* receiver_maps,
1103 CodeList* targets, 1103 CodeList* targets,
1104 StrictModeFlag strict_mode) { 1104 StrictModeFlag strict_mode) {
1105 Object* object; 1105 Object* object;
1106 KeyedLoadStubCompiler compiler; 1106 KeyedLoadStubCompiler compiler;
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
1714 if (!maybe_stub->To(&result)) return maybe_stub; 1714 if (!maybe_stub->To(&result)) return maybe_stub;
1715 } else { 1715 } else {
1716 result = generic_stub; 1716 result = generic_stub;
1717 } 1717 }
1718 return result; 1718 return result;
1719 } 1719 }
1720 1720
1721 1721
1722 MaybeObject* KeyedStoreIC::GetElementStubWithoutMapCheck( 1722 MaybeObject* KeyedStoreIC::GetElementStubWithoutMapCheck(
1723 bool is_js_array, 1723 bool is_js_array,
1724 JSObject::ElementsKind elements_kind) { 1724 ElementsKind elements_kind) {
1725 return KeyedStoreElementStub(is_js_array, elements_kind).TryGetCode(); 1725 return KeyedStoreElementStub(is_js_array, elements_kind).TryGetCode();
1726 } 1726 }
1727 1727
1728 1728
1729 MaybeObject* KeyedStoreIC::ConstructMegamorphicStub( 1729 MaybeObject* KeyedStoreIC::ConstructMegamorphicStub(
1730 MapList* receiver_maps, 1730 MapList* receiver_maps,
1731 CodeList* targets, 1731 CodeList* targets,
1732 StrictModeFlag strict_mode) { 1732 StrictModeFlag strict_mode) {
1733 Object* object; 1733 Object* object;
1734 KeyedStoreStubCompiler compiler(strict_mode); 1734 KeyedStoreStubCompiler compiler(strict_mode);
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after
2532 #undef ADDR 2532 #undef ADDR
2533 }; 2533 };
2534 2534
2535 2535
2536 Address IC::AddressFromUtilityId(IC::UtilityId id) { 2536 Address IC::AddressFromUtilityId(IC::UtilityId id) {
2537 return IC_utilities[id]; 2537 return IC_utilities[id];
2538 } 2538 }
2539 2539
2540 2540
2541 } } // namespace v8::internal 2541 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ic.h ('k') | src/lithium.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698