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

Side by Side Diff: src/ia32/ic-ia32.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/ia32/code-stubs-ia32.cc ('k') | src/ia32/stub-cache-ia32.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 1277 matching lines...) Expand 10 before | Expand all | Expand 10 after
1288 1288
1289 1289
1290 void LoadIC::GenerateMegamorphic(MacroAssembler* masm) { 1290 void LoadIC::GenerateMegamorphic(MacroAssembler* masm) {
1291 // ----------- S t a t e ------------- 1291 // ----------- S t a t e -------------
1292 // -- ecx : name 1292 // -- ecx : name
1293 // -- edx : receiver 1293 // -- edx : receiver
1294 // -- esp[0] : return address 1294 // -- esp[0] : return address
1295 // ----------------------------------- 1295 // -----------------------------------
1296 1296
1297 // Probe the stub cache. 1297 // Probe the stub cache.
1298 Code::Flags flags = Code::ComputeFlags(Code::LOAD_IC, MONOMORPHIC); 1298 Code::Flags flags = Code::ComputeFlags(
1299 Isolate::Current()->stub_cache()->GenerateProbe(masm, flags, edx, ecx, ebx, 1299 Code::LOAD_IC, MONOMORPHIC, Code::HANDLER_FRAGMENT);
1300 eax); 1300 Isolate::Current()->stub_cache()->GenerateProbe(
1301 masm, flags, edx, ecx, ebx, eax);
1301 1302
1302 // Cache miss: Jump to runtime. 1303 // Cache miss: Jump to runtime.
1303 GenerateMiss(masm); 1304 GenerateMiss(masm);
1304 } 1305 }
1305 1306
1306 1307
1307 void LoadIC::GenerateNormal(MacroAssembler* masm) { 1308 void LoadIC::GenerateNormal(MacroAssembler* masm) {
1308 // ----------- S t a t e ------------- 1309 // ----------- S t a t e -------------
1309 // -- ecx : name 1310 // -- ecx : name
1310 // -- edx : receiver 1311 // -- edx : receiver
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
1665 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) 1666 Condition cc = (check == ENABLE_INLINED_SMI_CHECK)
1666 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) 1667 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero)
1667 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); 1668 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry);
1668 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); 1669 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc);
1669 } 1670 }
1670 1671
1671 1672
1672 } } // namespace v8::internal 1673 } } // namespace v8::internal
1673 1674
1674 #endif // V8_TARGET_ARCH_IA32 1675 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ia32/stub-cache-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698