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

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

Issue 6321012: Version 3.0.9... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 9 years, 11 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/x64/frames-x64.h ('k') | src/x64/lithium-codegen-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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after
1171 static void GenerateMonomorphicCacheProbe(MacroAssembler* masm, 1171 static void GenerateMonomorphicCacheProbe(MacroAssembler* masm,
1172 int argc, 1172 int argc,
1173 Code::Kind kind) { 1173 Code::Kind kind) {
1174 // ----------- S t a t e ------------- 1174 // ----------- S t a t e -------------
1175 // rcx : function name 1175 // rcx : function name
1176 // rdx : receiver 1176 // rdx : receiver
1177 // ----------------------------------- 1177 // -----------------------------------
1178 Label number, non_number, non_string, boolean, probe, miss; 1178 Label number, non_number, non_string, boolean, probe, miss;
1179 1179
1180 // Probe the stub cache. 1180 // Probe the stub cache.
1181 Code::Flags flags = 1181 Code::Flags flags = Code::ComputeFlags(kind,
1182 Code::ComputeFlags(kind, NOT_IN_LOOP, MONOMORPHIC, NORMAL, argc); 1182 NOT_IN_LOOP,
1183 MONOMORPHIC,
1184 Code::kNoExtraICState,
1185 NORMAL,
1186 argc);
1183 StubCache::GenerateProbe(masm, flags, rdx, rcx, rbx, rax); 1187 StubCache::GenerateProbe(masm, flags, rdx, rcx, rbx, rax);
1184 1188
1185 // If the stub cache probing failed, the receiver might be a value. 1189 // If the stub cache probing failed, the receiver might be a value.
1186 // For value objects, we use the map of the prototype objects for 1190 // For value objects, we use the map of the prototype objects for
1187 // the corresponding JSValue for the cache and that is what we need 1191 // the corresponding JSValue for the cache and that is what we need
1188 // to probe. 1192 // to probe.
1189 // 1193 //
1190 // Check for number. 1194 // Check for number.
1191 __ JumpIfSmi(rdx, &number); 1195 __ JumpIfSmi(rdx, &number);
1192 __ CmpObjectType(rdx, HEAP_NUMBER_TYPE, rbx); 1196 __ CmpObjectType(rdx, HEAP_NUMBER_TYPE, rbx);
(...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after
1966 } 1970 }
1967 1971
1968 void PatchInlinedSmiCode(Address address) { 1972 void PatchInlinedSmiCode(Address address) {
1969 UNIMPLEMENTED(); 1973 UNIMPLEMENTED();
1970 } 1974 }
1971 1975
1972 1976
1973 } } // namespace v8::internal 1977 } } // namespace v8::internal
1974 1978
1975 #endif // V8_TARGET_ARCH_X64 1979 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/frames-x64.h ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698