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

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

Issue 11973008: Replace special IC builtins and stubs in the map's cache by codestubs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 7 years, 11 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 // -- esp[0] : return address 223 // -- esp[0] : return address
224 // ----------------------------------- 224 // -----------------------------------
225 Label miss; 225 Label miss;
226 226
227 StubCompiler::GenerateLoadArrayLength(masm, edx, eax, &miss); 227 StubCompiler::GenerateLoadArrayLength(masm, edx, eax, &miss);
228 __ bind(&miss); 228 __ bind(&miss);
229 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC); 229 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC);
230 } 230 }
231 231
232 232
233 void LoadIC::GenerateStringLength(MacroAssembler* masm,
234 bool support_wrappers) {
235 // ----------- S t a t e -------------
236 // -- ecx : name
237 // -- edx : receiver
238 // -- esp[0] : return address
239 // -----------------------------------
240 Label miss;
241
242 StubCompiler::GenerateLoadStringLength(masm, edx, eax, ebx, &miss,
243 support_wrappers);
244 __ bind(&miss);
245 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC);
246 }
247
248
249 void LoadIC::GenerateFunctionPrototype(MacroAssembler* masm) { 233 void LoadIC::GenerateFunctionPrototype(MacroAssembler* masm) {
250 // ----------- S t a t e ------------- 234 // ----------- S t a t e -------------
251 // -- ecx : name 235 // -- ecx : name
252 // -- edx : receiver 236 // -- edx : receiver
253 // -- esp[0] : return address 237 // -- esp[0] : return address
254 // ----------------------------------- 238 // -----------------------------------
255 Label miss; 239 Label miss;
256 240
257 StubCompiler::GenerateLoadFunctionPrototype(masm, edx, eax, ebx, &miss); 241 StubCompiler::GenerateLoadFunctionPrototype(masm, edx, eax, ebx, &miss);
258 __ bind(&miss); 242 __ bind(&miss);
(...skipping 1509 matching lines...) Expand 10 before | Expand all | Expand 10 after
1768 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) 1752 Condition cc = (check == ENABLE_INLINED_SMI_CHECK)
1769 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) 1753 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero)
1770 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); 1754 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry);
1771 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); 1755 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc);
1772 } 1756 }
1773 1757
1774 1758
1775 } } // namespace v8::internal 1759 } } // namespace v8::internal
1776 1760
1777 #endif // V8_TARGET_ARCH_IA32 1761 #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