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

Side by Side Diff: src/ia32/ic-ia32.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, 6 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/disassembler.cc ('k') | src/ia32/stub-cache-ia32.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 925 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 // ----------- S t a t e ------------- 936 // ----------- S t a t e -------------
937 // -- ecx : name 937 // -- ecx : name
938 // -- edx : receiver 938 // -- edx : receiver
939 // ----------------------------------- 939 // -----------------------------------
940 Label number, non_number, non_string, boolean, probe, miss; 940 Label number, non_number, non_string, boolean, probe, miss;
941 941
942 // Probe the stub cache. 942 // Probe the stub cache.
943 Code::Flags flags = Code::ComputeFlags(kind, 943 Code::Flags flags = Code::ComputeFlags(kind,
944 MONOMORPHIC, 944 MONOMORPHIC,
945 extra_state, 945 extra_state,
946 NORMAL, 946 Code::NORMAL,
947 argc); 947 argc);
948 Isolate* isolate = masm->isolate(); 948 Isolate* isolate = masm->isolate();
949 isolate->stub_cache()->GenerateProbe(masm, flags, edx, ecx, ebx, eax); 949 isolate->stub_cache()->GenerateProbe(masm, flags, edx, ecx, ebx, eax);
950 950
951 // If the stub cache probing failed, the receiver might be a value. 951 // If the stub cache probing failed, the receiver might be a value.
952 // For value objects, we use the map of the prototype objects for 952 // For value objects, we use the map of the prototype objects for
953 // the corresponding JSValue for the cache and that is what we need 953 // the corresponding JSValue for the cache and that is what we need
954 // to probe. 954 // to probe.
955 // 955 //
956 // Check for number. 956 // Check for number.
(...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after
1765 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) 1765 Condition cc = (check == ENABLE_INLINED_SMI_CHECK)
1766 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) 1766 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero)
1767 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); 1767 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry);
1768 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); 1768 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc);
1769 } 1769 }
1770 1770
1771 1771
1772 } } // namespace v8::internal 1772 } } // namespace v8::internal
1773 1773
1774 #endif // V8_TARGET_ARCH_IA32 1774 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/disassembler.cc ('k') | src/ia32/stub-cache-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698