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

Side by Side Diff: src/ic.cc

Issue 8002019: Add Crankshaft support for smi-only elements (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments, added tests Created 9 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/lithium-codegen-ia32.cc ('k') | src/runtime.cc » ('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 1671 matching lines...) Expand 10 before | Expand all | Expand 10 after
1682 } 1682 }
1683 } 1683 }
1684 1684
1685 1685
1686 MaybeObject* KeyedIC::ComputeMonomorphicStub(JSObject* receiver, 1686 MaybeObject* KeyedIC::ComputeMonomorphicStub(JSObject* receiver,
1687 bool is_store, 1687 bool is_store,
1688 StrictModeFlag strict_mode, 1688 StrictModeFlag strict_mode,
1689 Code* generic_stub) { 1689 Code* generic_stub) {
1690 Code* result = NULL; 1690 Code* result = NULL;
1691 if (receiver->HasFastElements() || 1691 if (receiver->HasFastElements() ||
1692 receiver->HasFastSmiOnlyElements() ||
1692 receiver->HasExternalArrayElements() || 1693 receiver->HasExternalArrayElements() ||
1693 receiver->HasFastDoubleElements() || 1694 receiver->HasFastDoubleElements() ||
1694 receiver->HasDictionaryElements()) { 1695 receiver->HasDictionaryElements()) {
1695 MaybeObject* maybe_stub = 1696 MaybeObject* maybe_stub =
1696 isolate()->stub_cache()->ComputeKeyedLoadOrStoreElement( 1697 isolate()->stub_cache()->ComputeKeyedLoadOrStoreElement(
1697 receiver, is_store, strict_mode); 1698 receiver, is_store, strict_mode);
1698 if (!maybe_stub->To(&result)) return maybe_stub; 1699 if (!maybe_stub->To(&result)) return maybe_stub;
1699 } else { 1700 } else {
1700 result = generic_stub; 1701 result = generic_stub;
1701 } 1702 }
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
2507 #undef ADDR 2508 #undef ADDR
2508 }; 2509 };
2509 2510
2510 2511
2511 Address IC::AddressFromUtilityId(IC::UtilityId id) { 2512 Address IC::AddressFromUtilityId(IC::UtilityId id) {
2512 return IC_utilities[id]; 2513 return IC_utilities[id];
2513 } 2514 }
2514 2515
2515 2516
2516 } } // namespace v8::internal 2517 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698