OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |