| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/ic/keyed-store-generic.h" | 5 #include "src/ic/keyed-store-generic.h" |
| 6 | 6 |
| 7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
| 8 #include "src/code-stub-assembler.h" | 8 #include "src/code-stub-assembler.h" |
| 9 #include "src/contexts.h" | 9 #include "src/contexts.h" |
| 10 #include "src/ic/accessor-assembler.h" | 10 #include "src/ic/accessor-assembler.h" |
| (...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 855 Return(p->value); | 855 Return(p->value); |
| 856 } | 856 } |
| 857 } | 857 } |
| 858 } | 858 } |
| 859 | 859 |
| 860 Bind(&readonly); | 860 Bind(&readonly); |
| 861 { | 861 { |
| 862 if (language_mode == STRICT) { | 862 if (language_mode == STRICT) { |
| 863 Node* message = | 863 Node* message = |
| 864 SmiConstant(Smi::FromInt(MessageTemplate::kStrictReadOnlyProperty)); | 864 SmiConstant(Smi::FromInt(MessageTemplate::kStrictReadOnlyProperty)); |
| 865 Node* type = Typeof(p->receiver, p->context); | 865 Node* type = Typeof(p->receiver); |
| 866 TailCallRuntime(Runtime::kThrowTypeError, p->context, message, p->name, | 866 TailCallRuntime(Runtime::kThrowTypeError, p->context, message, p->name, |
| 867 type, p->receiver); | 867 type, p->receiver); |
| 868 } else { | 868 } else { |
| 869 DCHECK_EQ(SLOPPY, language_mode); | 869 DCHECK_EQ(SLOPPY, language_mode); |
| 870 Return(p->value); | 870 Return(p->value); |
| 871 } | 871 } |
| 872 } | 872 } |
| 873 | 873 |
| 874 Bind(&stub_cache); | 874 Bind(&stub_cache); |
| 875 { | 875 { |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 936 Bind(&slow); | 936 Bind(&slow); |
| 937 { | 937 { |
| 938 Comment("KeyedStoreGeneric_slow"); | 938 Comment("KeyedStoreGeneric_slow"); |
| 939 TailCallRuntime(Runtime::kSetProperty, context, receiver, name, value, | 939 TailCallRuntime(Runtime::kSetProperty, context, receiver, name, value, |
| 940 SmiConstant(language_mode)); | 940 SmiConstant(language_mode)); |
| 941 } | 941 } |
| 942 } | 942 } |
| 943 | 943 |
| 944 } // namespace internal | 944 } // namespace internal |
| 945 } // namespace v8 | 945 } // namespace v8 |
| OLD | NEW |