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

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

Issue 7869009: Remove in-loop tracking for call ICs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 3 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/full-codegen-x64.cc ('k') | src/x64/lithium-codegen-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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 Code::Kind kind, 713 Code::Kind kind,
714 Code::ExtraICState extra_ic_state) { 714 Code::ExtraICState extra_ic_state) {
715 // ----------- S t a t e ------------- 715 // ----------- S t a t e -------------
716 // rcx : function name 716 // rcx : function name
717 // rdx : receiver 717 // rdx : receiver
718 // ----------------------------------- 718 // -----------------------------------
719 Label number, non_number, non_string, boolean, probe, miss; 719 Label number, non_number, non_string, boolean, probe, miss;
720 720
721 // Probe the stub cache. 721 // Probe the stub cache.
722 Code::Flags flags = Code::ComputeFlags(kind, 722 Code::Flags flags = Code::ComputeFlags(kind,
723 NOT_IN_LOOP,
724 MONOMORPHIC, 723 MONOMORPHIC,
725 extra_ic_state, 724 extra_ic_state,
726 NORMAL, 725 NORMAL,
727 argc); 726 argc);
728 Isolate::Current()->stub_cache()->GenerateProbe(masm, flags, rdx, rcx, rbx, 727 Isolate::Current()->stub_cache()->GenerateProbe(masm, flags, rdx, rcx, rbx,
729 rax); 728 rax);
730 729
731 // If the stub cache probing failed, the receiver might be a value. 730 // If the stub cache probing failed, the receiver might be a value.
732 // For value objects, we use the map of the prototype objects for 731 // For value objects, we use the map of the prototype objects for
733 // the corresponding JSValue for the cache and that is what we need 732 // the corresponding JSValue for the cache and that is what we need
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
1260 1259
1261 1260
1262 void LoadIC::GenerateMegamorphic(MacroAssembler* masm) { 1261 void LoadIC::GenerateMegamorphic(MacroAssembler* masm) {
1263 // ----------- S t a t e ------------- 1262 // ----------- S t a t e -------------
1264 // -- rax : receiver 1263 // -- rax : receiver
1265 // -- rcx : name 1264 // -- rcx : name
1266 // -- rsp[0] : return address 1265 // -- rsp[0] : return address
1267 // ----------------------------------- 1266 // -----------------------------------
1268 1267
1269 // Probe the stub cache. 1268 // Probe the stub cache.
1270 Code::Flags flags = Code::ComputeFlags(Code::LOAD_IC, 1269 Code::Flags flags = Code::ComputeFlags(Code::LOAD_IC, MONOMORPHIC);
1271 NOT_IN_LOOP,
1272 MONOMORPHIC);
1273 Isolate::Current()->stub_cache()->GenerateProbe(masm, flags, rax, rcx, rbx, 1270 Isolate::Current()->stub_cache()->GenerateProbe(masm, flags, rax, rcx, rbx,
1274 rdx); 1271 rdx);
1275 1272
1276 // Cache miss: Jump to runtime. 1273 // Cache miss: Jump to runtime.
1277 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC); 1274 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC);
1278 } 1275 }
1279 1276
1280 1277
1281 void LoadIC::GenerateNormal(MacroAssembler* masm) { 1278 void LoadIC::GenerateNormal(MacroAssembler* masm) {
1282 // ----------- S t a t e ------------- 1279 // ----------- S t a t e -------------
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
1365 void StoreIC::GenerateMegamorphic(MacroAssembler* masm, 1362 void StoreIC::GenerateMegamorphic(MacroAssembler* masm,
1366 StrictModeFlag strict_mode) { 1363 StrictModeFlag strict_mode) {
1367 // ----------- S t a t e ------------- 1364 // ----------- S t a t e -------------
1368 // -- rax : value 1365 // -- rax : value
1369 // -- rcx : name 1366 // -- rcx : name
1370 // -- rdx : receiver 1367 // -- rdx : receiver
1371 // -- rsp[0] : return address 1368 // -- rsp[0] : return address
1372 // ----------------------------------- 1369 // -----------------------------------
1373 1370
1374 // Get the receiver from the stack and probe the stub cache. 1371 // Get the receiver from the stack and probe the stub cache.
1375 Code::Flags flags = Code::ComputeFlags(Code::STORE_IC, 1372 Code::Flags flags =
1376 NOT_IN_LOOP, 1373 Code::ComputeFlags(Code::STORE_IC, MONOMORPHIC, strict_mode);
1377 MONOMORPHIC,
1378 strict_mode);
1379 Isolate::Current()->stub_cache()->GenerateProbe(masm, flags, rdx, rcx, rbx, 1374 Isolate::Current()->stub_cache()->GenerateProbe(masm, flags, rdx, rcx, rbx,
1380 no_reg); 1375 no_reg);
1381 1376
1382 // Cache miss: Jump to runtime. 1377 // Cache miss: Jump to runtime.
1383 GenerateMiss(masm); 1378 GenerateMiss(masm);
1384 } 1379 }
1385 1380
1386 1381
1387 void StoreIC::GenerateMiss(MacroAssembler* masm) { 1382 void StoreIC::GenerateMiss(MacroAssembler* masm) {
1388 // ----------- S t a t e ------------- 1383 // ----------- S t a t e -------------
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
1662 Condition cc = *jmp_address == Assembler::kJncShortOpcode 1657 Condition cc = *jmp_address == Assembler::kJncShortOpcode
1663 ? not_zero 1658 ? not_zero
1664 : zero; 1659 : zero;
1665 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); 1660 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc);
1666 } 1661 }
1667 1662
1668 1663
1669 } } // namespace v8::internal 1664 } } // namespace v8::internal
1670 1665
1671 #endif // V8_TARGET_ARCH_X64 1666 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698