OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |