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

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

Issue 10656018: Separate stub types from property types. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Also moving all other bits to the left Created 8 years, 5 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/type-info.cc ('k') | src/x64/stub-cache-x64.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 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 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 // ----------- S t a t e ------------- 816 // ----------- S t a t e -------------
817 // rcx : function name 817 // rcx : function name
818 // rdx : receiver 818 // rdx : receiver
819 // ----------------------------------- 819 // -----------------------------------
820 Label number, non_number, non_string, boolean, probe, miss; 820 Label number, non_number, non_string, boolean, probe, miss;
821 821
822 // Probe the stub cache. 822 // Probe the stub cache.
823 Code::Flags flags = Code::ComputeFlags(kind, 823 Code::Flags flags = Code::ComputeFlags(kind,
824 MONOMORPHIC, 824 MONOMORPHIC,
825 extra_state, 825 extra_state,
826 NORMAL, 826 Code::NORMAL,
827 argc); 827 argc);
828 Isolate::Current()->stub_cache()->GenerateProbe(masm, flags, rdx, rcx, rbx, 828 Isolate::Current()->stub_cache()->GenerateProbe(masm, flags, rdx, rcx, rbx,
829 rax); 829 rax);
830 830
831 // If the stub cache probing failed, the receiver might be a value. 831 // If the stub cache probing failed, the receiver might be a value.
832 // For value objects, we use the map of the prototype objects for 832 // For value objects, we use the map of the prototype objects for
833 // the corresponding JSValue for the cache and that is what we need 833 // the corresponding JSValue for the cache and that is what we need
834 // to probe. 834 // to probe.
835 // 835 //
836 // Check for number. 836 // Check for number.
(...skipping 941 matching lines...) Expand 10 before | Expand all | Expand 10 after
1778 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) 1778 Condition cc = (check == ENABLE_INLINED_SMI_CHECK)
1779 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) 1779 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero)
1780 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); 1780 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry);
1781 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); 1781 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc);
1782 } 1782 }
1783 1783
1784 1784
1785 } } // namespace v8::internal 1785 } } // namespace v8::internal
1786 1786
1787 #endif // V8_TARGET_ARCH_X64 1787 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/type-info.cc ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698