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 2369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2380 // ----------------------------------- | 2380 // ----------------------------------- |
2381 receiver = rax; | 2381 receiver = rax; |
2382 } | 2382 } |
2383 | 2383 |
2384 StubCompiler::GenerateLoadArrayLength(masm, receiver, r8, &miss); | 2384 StubCompiler::GenerateLoadArrayLength(masm, receiver, r8, &miss); |
2385 __ bind(&miss); | 2385 __ bind(&miss); |
2386 StubCompiler::GenerateLoadMiss(masm, kind()); | 2386 StubCompiler::GenerateLoadMiss(masm, kind()); |
2387 } | 2387 } |
2388 | 2388 |
2389 | 2389 |
| 2390 void FunctionPrototypeStub::Generate(MacroAssembler* masm) { |
| 2391 Label miss; |
| 2392 Register receiver; |
| 2393 if (kind() == Code::KEYED_LOAD_IC) { |
| 2394 // ----------- S t a t e ------------- |
| 2395 // -- rax : key |
| 2396 // -- rdx : receiver |
| 2397 // -- rsp[0] : return address |
| 2398 // ----------------------------------- |
| 2399 __ Cmp(rax, masm->isolate()->factory()->prototype_symbol()); |
| 2400 receiver = rdx; |
| 2401 } else { |
| 2402 ASSERT(kind() == Code::LOAD_IC); |
| 2403 // ----------- S t a t e ------------- |
| 2404 // -- rax : receiver |
| 2405 // -- rcx : name |
| 2406 // -- rsp[0] : return address |
| 2407 // ----------------------------------- |
| 2408 receiver = rax; |
| 2409 } |
| 2410 |
| 2411 StubCompiler::GenerateLoadFunctionPrototype(masm, receiver, r8, r9, &miss); |
| 2412 __ bind(&miss); |
| 2413 StubCompiler::GenerateLoadMiss(masm, kind()); |
| 2414 } |
| 2415 |
| 2416 |
2390 void StringLengthStub::Generate(MacroAssembler* masm) { | 2417 void StringLengthStub::Generate(MacroAssembler* masm) { |
2391 Label miss; | 2418 Label miss; |
2392 Register receiver; | 2419 Register receiver; |
2393 if (kind() == Code::KEYED_LOAD_IC) { | 2420 if (kind() == Code::KEYED_LOAD_IC) { |
2394 // ----------- S t a t e ------------- | 2421 // ----------- S t a t e ------------- |
2395 // -- rax : key | 2422 // -- rax : key |
2396 // -- rdx : receiver | 2423 // -- rdx : receiver |
2397 // -- rsp[0] : return address | 2424 // -- rsp[0] : return address |
2398 // ----------------------------------- | 2425 // ----------------------------------- |
2399 __ Cmp(rax, masm->isolate()->factory()->length_symbol()); | 2426 __ Cmp(rax, masm->isolate()->factory()->length_symbol()); |
(...skipping 4195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6595 #endif | 6622 #endif |
6596 | 6623 |
6597 __ Ret(); | 6624 __ Ret(); |
6598 } | 6625 } |
6599 | 6626 |
6600 #undef __ | 6627 #undef __ |
6601 | 6628 |
6602 } } // namespace v8::internal | 6629 } } // namespace v8::internal |
6603 | 6630 |
6604 #endif // V8_TARGET_ARCH_X64 | 6631 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |