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 1327 matching lines...) Loading... |
1338 GenerateUnmappedArgumentsLookup(masm, rcx, rbx, rax, &slow); | 1338 GenerateUnmappedArgumentsLookup(masm, rcx, rbx, rax, &slow); |
1339 __ CompareRoot(unmapped_location, Heap::kTheHoleValueRootIndex); | 1339 __ CompareRoot(unmapped_location, Heap::kTheHoleValueRootIndex); |
1340 __ j(equal, &slow); | 1340 __ j(equal, &slow); |
1341 __ movq(rdi, unmapped_location); | 1341 __ movq(rdi, unmapped_location); |
1342 GenerateFunctionTailCall(masm, argc, &slow); | 1342 GenerateFunctionTailCall(masm, argc, &slow); |
1343 __ bind(&slow); | 1343 __ bind(&slow); |
1344 GenerateMiss(masm, argc); | 1344 GenerateMiss(masm, argc); |
1345 } | 1345 } |
1346 | 1346 |
1347 | 1347 |
1348 void LoadIC::GenerateMegamorphic(MacroAssembler* masm) { | 1348 void LoadIC::GenerateMegamorphic(MacroAssembler* masm, ContextualMode mode) { |
1349 // ----------- S t a t e ------------- | 1349 // ----------- S t a t e ------------- |
1350 // -- rax : receiver | 1350 // -- rax : receiver |
1351 // -- rcx : name | 1351 // -- rcx : name |
1352 // -- rsp[0] : return address | 1352 // -- rsp[0] : return address |
1353 // ----------------------------------- | 1353 // ----------------------------------- |
1354 | 1354 |
1355 // Probe the stub cache. | 1355 // Probe the stub cache. |
| 1356 ExtraICState extra_ic_state = IC::ComputeExtraICState(mode); |
1356 Code::Flags flags = Code::ComputeFlags( | 1357 Code::Flags flags = Code::ComputeFlags( |
1357 Code::HANDLER, MONOMORPHIC, kNoExtraICState, | 1358 Code::HANDLER, MONOMORPHIC, extra_ic_state, |
1358 Code::NORMAL, Code::LOAD_IC); | 1359 Code::NORMAL, Code::LOAD_IC); |
1359 masm->isolate()->stub_cache()->GenerateProbe( | 1360 masm->isolate()->stub_cache()->GenerateProbe( |
1360 masm, flags, rax, rcx, rbx, rdx); | 1361 masm, flags, rax, rcx, rbx, rdx); |
1361 | 1362 |
1362 GenerateMiss(masm); | 1363 GenerateMiss(masm); |
1363 } | 1364 } |
1364 | 1365 |
1365 | 1366 |
1366 void LoadIC::GenerateNormal(MacroAssembler* masm) { | 1367 void LoadIC::GenerateNormal(MacroAssembler* masm) { |
1367 // ----------- S t a t e ------------- | 1368 // ----------- S t a t e ------------- |
(...skipping 330 matching lines...) Loading... |
1698 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) | 1699 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) |
1699 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) | 1700 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) |
1700 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); | 1701 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); |
1701 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); | 1702 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); |
1702 } | 1703 } |
1703 | 1704 |
1704 | 1705 |
1705 } } // namespace v8::internal | 1706 } } // namespace v8::internal |
1706 | 1707 |
1707 #endif // V8_TARGET_ARCH_X64 | 1708 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |