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

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

Issue 12340112: Polymorphism support for load IC. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added ARM port, introduced GenerateTailCall Created 7 years, 9 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 1303 matching lines...) Expand 10 before | Expand all | Expand 10 after
1314 1314
1315 1315
1316 void LoadIC::GenerateMegamorphic(MacroAssembler* masm) { 1316 void LoadIC::GenerateMegamorphic(MacroAssembler* masm) {
1317 // ----------- S t a t e ------------- 1317 // ----------- S t a t e -------------
1318 // -- rax : receiver 1318 // -- rax : receiver
1319 // -- rcx : name 1319 // -- rcx : name
1320 // -- rsp[0] : return address 1320 // -- rsp[0] : return address
1321 // ----------------------------------- 1321 // -----------------------------------
1322 1322
1323 // Probe the stub cache. 1323 // Probe the stub cache.
1324 Code::Flags flags = Code::ComputeFlags(Code::LOAD_IC, MONOMORPHIC); 1324 Code::Flags flags = Code::ComputeFlags(
1325 Isolate::Current()->stub_cache()->GenerateProbe(masm, flags, rax, rcx, rbx, 1325 Code::LOAD_IC, MONOMORPHIC, Code::HANDLER_FRAGMENT);
1326 rdx); 1326 Isolate::Current()->stub_cache()->GenerateProbe(
1327 masm, flags, rax, rcx, rbx, rdx);
1327 1328
1328 // Cache miss: Jump to runtime. 1329 // Cache miss: Jump to runtime.
1329 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC); 1330 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC);
1330 } 1331 }
1331 1332
1332 1333
1333 void LoadIC::GenerateNormal(MacroAssembler* masm) { 1334 void LoadIC::GenerateNormal(MacroAssembler* masm) {
1334 // ----------- S t a t e ------------- 1335 // ----------- S t a t e -------------
1335 // -- rax : receiver 1336 // -- rax : receiver
1336 // -- rcx : name 1337 // -- rcx : name
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
1680 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) 1681 Condition cc = (check == ENABLE_INLINED_SMI_CHECK)
1681 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) 1682 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero)
1682 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); 1683 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry);
1683 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); 1684 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc);
1684 } 1685 }
1685 1686
1686 1687
1687 } } // namespace v8::internal 1688 } } // namespace v8::internal
1688 1689
1689 #endif // V8_TARGET_ARCH_X64 1690 #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