OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 3472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3483 // -- rax : value | 3483 // -- rax : value |
3484 // -- rcx : key | 3484 // -- rcx : key |
3485 // -- rdx : receiver | 3485 // -- rdx : receiver |
3486 // -- rsp[0] : return address | 3486 // -- rsp[0] : return address |
3487 // ----------------------------------- | 3487 // ----------------------------------- |
3488 | 3488 |
3489 __ pop(rbx); | 3489 __ pop(rbx); |
3490 __ push(rdx); // receiver | 3490 __ push(rdx); // receiver |
3491 __ push(rcx); // key | 3491 __ push(rcx); // key |
3492 __ push(rax); // value | 3492 __ push(rax); // value |
| 3493 __ Push(Smi::FromInt(NONE)); // PropertyAttributes |
| 3494 __ Push(Smi::FromInt( |
| 3495 Code::ExtractExtraICStateFromFlags(flags) == kStrictMode |
| 3496 ? kStrictMode |
| 3497 : kNonStrictMode)); |
3493 __ push(rbx); // return address | 3498 __ push(rbx); // return address |
3494 | 3499 |
3495 // Do tail-call to runtime routine. | 3500 // Do tail-call to runtime routine. |
3496 __ TailCallRuntime(Runtime::kSetProperty, 3, 1); | 3501 __ TailCallRuntime(Runtime::kSetProperty, 5, 1); |
3497 | 3502 |
3498 return GetCode(flags); | 3503 return GetCode(flags); |
3499 } | 3504 } |
3500 | 3505 |
3501 #undef __ | 3506 #undef __ |
3502 | 3507 |
3503 } } // namespace v8::internal | 3508 } } // namespace v8::internal |
3504 | 3509 |
3505 #endif // V8_TARGET_ARCH_X64 | 3510 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |