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

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

Issue 14142005: Implement Polymorphic Store ICs (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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/code-stubs-x64.cc ('k') | src/x64/stub-cache-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 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 1431 matching lines...) Expand 10 before | Expand all | Expand 10 after
1442 void StoreIC::GenerateMegamorphic(MacroAssembler* masm, 1442 void StoreIC::GenerateMegamorphic(MacroAssembler* masm,
1443 StrictModeFlag strict_mode) { 1443 StrictModeFlag strict_mode) {
1444 // ----------- S t a t e ------------- 1444 // ----------- S t a t e -------------
1445 // -- rax : value 1445 // -- rax : value
1446 // -- rcx : name 1446 // -- rcx : name
1447 // -- rdx : receiver 1447 // -- rdx : receiver
1448 // -- rsp[0] : return address 1448 // -- rsp[0] : return address
1449 // ----------------------------------- 1449 // -----------------------------------
1450 1450
1451 // Get the receiver from the stack and probe the stub cache. 1451 // Get the receiver from the stack and probe the stub cache.
1452 Code::Flags flags = 1452 Code::Flags flags = Code::ComputeFlags(
1453 Code::ComputeFlags(Code::STORE_IC, MONOMORPHIC, strict_mode); 1453 Code::STUB, MONOMORPHIC, strict_mode,
1454 Code::NORMAL, Code::STORE_IC);
1454 Isolate::Current()->stub_cache()->GenerateProbe(masm, flags, rdx, rcx, rbx, 1455 Isolate::Current()->stub_cache()->GenerateProbe(masm, flags, rdx, rcx, rbx,
1455 no_reg); 1456 no_reg);
1456 1457
1457 // Cache miss: Jump to runtime. 1458 // Cache miss: Jump to runtime.
1458 GenerateMiss(masm); 1459 GenerateMiss(masm);
1459 } 1460 }
1460 1461
1461 1462
1462 void StoreIC::GenerateMiss(MacroAssembler* masm) { 1463 void StoreIC::GenerateMiss(MacroAssembler* masm) {
1463 // ----------- S t a t e ------------- 1464 // ----------- S t a t e -------------
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
1725 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) 1726 Condition cc = (check == ENABLE_INLINED_SMI_CHECK)
1726 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) 1727 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero)
1727 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); 1728 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry);
1728 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); 1729 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc);
1729 } 1730 }
1730 1731
1731 1732
1732 } } // namespace v8::internal 1733 } } // namespace v8::internal
1733 1734
1734 #endif // V8_TARGET_ARCH_X64 1735 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698