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 1315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1326 // -- rsp[0] : return address | 1326 // -- rsp[0] : return address |
1327 // ----------------------------------- | 1327 // ----------------------------------- |
1328 | 1328 |
1329 // Probe the stub cache. | 1329 // Probe the stub cache. |
1330 Code::Flags flags = Code::ComputeFlags( | 1330 Code::Flags flags = Code::ComputeFlags( |
1331 Code::STUB, MONOMORPHIC, Code::kNoExtraICState, | 1331 Code::STUB, MONOMORPHIC, Code::kNoExtraICState, |
1332 Code::NORMAL, Code::LOAD_IC); | 1332 Code::NORMAL, Code::LOAD_IC); |
1333 Isolate::Current()->stub_cache()->GenerateProbe( | 1333 Isolate::Current()->stub_cache()->GenerateProbe( |
1334 masm, flags, rax, rcx, rbx, rdx); | 1334 masm, flags, rax, rcx, rbx, rdx); |
1335 | 1335 |
1336 // Cache miss: Jump to runtime. | 1336 GenerateMiss(masm); |
1337 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC); | |
1338 } | 1337 } |
1339 | 1338 |
1340 | 1339 |
1341 void LoadIC::GenerateNormal(MacroAssembler* masm) { | 1340 void LoadIC::GenerateNormal(MacroAssembler* masm) { |
1342 // ----------- S t a t e ------------- | 1341 // ----------- S t a t e ------------- |
1343 // -- rax : receiver | 1342 // -- rax : receiver |
1344 // -- rcx : name | 1343 // -- rcx : name |
1345 // -- rsp[0] : return address | 1344 // -- rsp[0] : return address |
1346 // ----------------------------------- | 1345 // ----------------------------------- |
1347 Label miss; | 1346 Label miss; |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1688 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) | 1687 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) |
1689 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) | 1688 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) |
1690 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); | 1689 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); |
1691 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); | 1690 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); |
1692 } | 1691 } |
1693 | 1692 |
1694 | 1693 |
1695 } } // namespace v8::internal | 1694 } } // namespace v8::internal |
1696 | 1695 |
1697 #endif // V8_TARGET_ARCH_X64 | 1696 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |