| 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 2361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2372 // Restore context register. | 2372 // Restore context register. |
| 2373 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset)); | 2373 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset)); |
| 2374 | 2374 |
| 2375 __ bind(&done); | 2375 __ bind(&done); |
| 2376 __ IncrementCounter(counters->math_pow(), 1); | 2376 __ IncrementCounter(counters->math_pow(), 1); |
| 2377 __ ret(0); | 2377 __ ret(0); |
| 2378 } | 2378 } |
| 2379 } | 2379 } |
| 2380 | 2380 |
| 2381 | 2381 |
| 2382 void ArrayLengthStub::Generate(MacroAssembler* masm) { | |
| 2383 Label miss; | |
| 2384 Register receiver; | |
| 2385 if (kind() == Code::KEYED_LOAD_IC) { | |
| 2386 // ----------- S t a t e ------------- | |
| 2387 // -- rax : key | |
| 2388 // -- rdx : receiver | |
| 2389 // -- rsp[0] : return address | |
| 2390 // ----------------------------------- | |
| 2391 __ Cmp(rax, masm->isolate()->factory()->length_string()); | |
| 2392 __ j(not_equal, &miss); | |
| 2393 receiver = rdx; | |
| 2394 } else { | |
| 2395 ASSERT(kind() == Code::LOAD_IC); | |
| 2396 // ----------- S t a t e ------------- | |
| 2397 // -- rax : receiver | |
| 2398 // -- rcx : name | |
| 2399 // -- rsp[0] : return address | |
| 2400 // ----------------------------------- | |
| 2401 receiver = rax; | |
| 2402 } | |
| 2403 | |
| 2404 StubCompiler::GenerateLoadArrayLength(masm, receiver, r8, &miss); | |
| 2405 __ bind(&miss); | |
| 2406 StubCompiler::GenerateLoadMiss(masm, kind()); | |
| 2407 } | |
| 2408 | |
| 2409 | |
| 2410 void FunctionPrototypeStub::Generate(MacroAssembler* masm) { | 2382 void FunctionPrototypeStub::Generate(MacroAssembler* masm) { |
| 2411 Label miss; | 2383 Label miss; |
| 2412 Register receiver; | 2384 Register receiver; |
| 2413 if (kind() == Code::KEYED_LOAD_IC) { | 2385 if (kind() == Code::KEYED_LOAD_IC) { |
| 2414 // ----------- S t a t e ------------- | 2386 // ----------- S t a t e ------------- |
| 2415 // -- rax : key | 2387 // -- rax : key |
| 2416 // -- rdx : receiver | 2388 // -- rdx : receiver |
| 2417 // -- rsp[0] : return address | 2389 // -- rsp[0] : return address |
| 2418 // ----------------------------------- | 2390 // ----------------------------------- |
| 2419 __ Cmp(rax, masm->isolate()->factory()->prototype_string()); | 2391 __ Cmp(rax, masm->isolate()->factory()->prototype_string()); |
| (...skipping 4465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6885 #endif | 6857 #endif |
| 6886 | 6858 |
| 6887 __ Ret(); | 6859 __ Ret(); |
| 6888 } | 6860 } |
| 6889 | 6861 |
| 6890 #undef __ | 6862 #undef __ |
| 6891 | 6863 |
| 6892 } } // namespace v8::internal | 6864 } } // namespace v8::internal |
| 6893 | 6865 |
| 6894 #endif // V8_TARGET_ARCH_X64 | 6866 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |