| OLD | NEW |
| 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 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1242 &lookup_monomorphic_cache, | 1242 &lookup_monomorphic_cache, |
| 1243 DONT_DO_SMI_CHECK); | 1243 DONT_DO_SMI_CHECK); |
| 1244 | 1244 |
| 1245 GenerateDictionaryLoad(masm, &slow_load, ebx, ecx, eax, edi, edi); | 1245 GenerateDictionaryLoad(masm, &slow_load, ebx, ecx, eax, edi, edi); |
| 1246 __ IncrementCounter(counters->keyed_call_generic_lookup_dict(), 1); | 1246 __ IncrementCounter(counters->keyed_call_generic_lookup_dict(), 1); |
| 1247 __ jmp(&do_call); | 1247 __ jmp(&do_call); |
| 1248 | 1248 |
| 1249 __ bind(&lookup_monomorphic_cache); | 1249 __ bind(&lookup_monomorphic_cache); |
| 1250 __ IncrementCounter(counters->keyed_call_generic_lookup_cache(), 1); | 1250 __ IncrementCounter(counters->keyed_call_generic_lookup_cache(), 1); |
| 1251 CallICBase::GenerateMonomorphicCacheProbe(masm, argc, Code::KEYED_CALL_IC, | 1251 CallICBase::GenerateMonomorphicCacheProbe(masm, argc, Code::KEYED_CALL_IC, |
| 1252 Code::kNoExtraICState); | 1252 IC::kNoExtraICState); |
| 1253 // Fall through on miss. | 1253 // Fall through on miss. |
| 1254 | 1254 |
| 1255 __ bind(&slow_call); | 1255 __ bind(&slow_call); |
| 1256 // This branch is taken if: | 1256 // This branch is taken if: |
| 1257 // - the receiver requires boxing or access check, | 1257 // - the receiver requires boxing or access check, |
| 1258 // - the key is neither smi nor a unique name, | 1258 // - the key is neither smi nor a unique name, |
| 1259 // - the value loaded is not a function, | 1259 // - the value loaded is not a function, |
| 1260 // - there is hope that the runtime will create a monomorphic call stub | 1260 // - there is hope that the runtime will create a monomorphic call stub |
| 1261 // that will get fetched next time. | 1261 // that will get fetched next time. |
| 1262 __ IncrementCounter(counters->keyed_call_generic_slow(), 1); | 1262 __ IncrementCounter(counters->keyed_call_generic_slow(), 1); |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1320 | 1320 |
| 1321 void LoadIC::GenerateMegamorphic(MacroAssembler* masm) { | 1321 void LoadIC::GenerateMegamorphic(MacroAssembler* masm) { |
| 1322 // ----------- S t a t e ------------- | 1322 // ----------- S t a t e ------------- |
| 1323 // -- ecx : name | 1323 // -- ecx : name |
| 1324 // -- edx : receiver | 1324 // -- edx : receiver |
| 1325 // -- esp[0] : return address | 1325 // -- esp[0] : return address |
| 1326 // ----------------------------------- | 1326 // ----------------------------------- |
| 1327 | 1327 |
| 1328 // Probe the stub cache. | 1328 // Probe the stub cache. |
| 1329 Code::Flags flags = Code::ComputeFlags( | 1329 Code::Flags flags = Code::ComputeFlags( |
| 1330 Code::HANDLER, MONOMORPHIC, Code::kNoExtraICState, | 1330 Code::HANDLER, MONOMORPHIC, IC::kNoExtraICState, |
| 1331 Code::NORMAL, Code::LOAD_IC); | 1331 Code::NORMAL, Code::LOAD_IC); |
| 1332 masm->isolate()->stub_cache()->GenerateProbe( | 1332 masm->isolate()->stub_cache()->GenerateProbe( |
| 1333 masm, flags, edx, ecx, ebx, eax); | 1333 masm, flags, edx, ecx, ebx, eax); |
| 1334 | 1334 |
| 1335 // Cache miss: Jump to runtime. | 1335 // Cache miss: Jump to runtime. |
| 1336 GenerateMiss(masm); | 1336 GenerateMiss(masm); |
| 1337 } | 1337 } |
| 1338 | 1338 |
| 1339 | 1339 |
| 1340 void LoadIC::GenerateNormal(MacroAssembler* masm) { | 1340 void LoadIC::GenerateNormal(MacroAssembler* masm) { |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1677 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) | 1677 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) |
| 1678 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) | 1678 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) |
| 1679 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); | 1679 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); |
| 1680 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); | 1680 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); |
| 1681 } | 1681 } |
| 1682 | 1682 |
| 1683 | 1683 |
| 1684 } } // namespace v8::internal | 1684 } } // namespace v8::internal |
| 1685 | 1685 |
| 1686 #endif // V8_TARGET_ARCH_IA32 | 1686 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |