Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(568)

Side by Side Diff: src/ic/keyed-store-generic.cc

Issue 2744173002: [csa] Remove context inputs from StrictEqual, SameValue and Typeof. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/code-stub-assembler.cc ('k') | src/interpreter/interpreter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/code-stub-assembler.cc ('k') | src/interpreter/interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698