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

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

Issue 11941016: Migrate FunctionPrototype (Keyed|Named)LoadIC to CodeStub (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 times_pointer_size, 217 times_pointer_size,
218 kValueOffset - kHeapObjectTag)); 218 kValueOffset - kHeapObjectTag));
219 __ movq(Operand(scratch1, 0), value); 219 __ movq(Operand(scratch1, 0), value);
220 220
221 // Update write barrier. Make sure not to clobber the value. 221 // Update write barrier. Make sure not to clobber the value.
222 __ movq(scratch0, value); 222 __ movq(scratch0, value);
223 __ RecordWrite(elements, scratch1, scratch0, kDontSaveFPRegs); 223 __ RecordWrite(elements, scratch1, scratch0, kDontSaveFPRegs);
224 } 224 }
225 225
226 226
227 void LoadIC::GenerateFunctionPrototype(MacroAssembler* masm) {
228 // ----------- S t a t e -------------
229 // -- rax : receiver
230 // -- rcx : name
231 // -- rsp[0] : return address
232 // -----------------------------------
233 Label miss;
234
235 StubCompiler::GenerateLoadFunctionPrototype(masm, rax, rdx, rbx, &miss);
236 __ bind(&miss);
237 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC);
238 }
239
240
241 // Checks the receiver for special cases (value type, slow case bits). 227 // Checks the receiver for special cases (value type, slow case bits).
242 // Falls through for regular JS object. 228 // Falls through for regular JS object.
243 static void GenerateKeyedLoadReceiverCheck(MacroAssembler* masm, 229 static void GenerateKeyedLoadReceiverCheck(MacroAssembler* masm,
244 Register receiver, 230 Register receiver,
245 Register map, 231 Register map,
246 int interceptor_bit, 232 int interceptor_bit,
247 Label* slow) { 233 Label* slow) {
248 // Register use: 234 // Register use:
249 // receiver - holds the receiver and is unchanged. 235 // receiver - holds the receiver and is unchanged.
250 // Scratch registers: 236 // Scratch registers:
(...skipping 1502 matching lines...) Expand 10 before | Expand all | Expand 10 after
1753 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) 1739 Condition cc = (check == ENABLE_INLINED_SMI_CHECK)
1754 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) 1740 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero)
1755 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); 1741 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry);
1756 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); 1742 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc);
1757 } 1743 }
1758 1744
1759 1745
1760 } } // namespace v8::internal 1746 } } // namespace v8::internal
1761 1747
1762 #endif // V8_TARGET_ARCH_X64 1748 #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