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

Side by Side Diff: src/code-stubs.h

Issue 1700993002: Remove strong mode support from property loads. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix comment. Created 4 years, 10 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-factory.cc ('k') | src/code-stubs.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #ifndef V8_CODE_STUBS_H_ 5 #ifndef V8_CODE_STUBS_H_
6 #define V8_CODE_STUBS_H_ 6 #define V8_CODE_STUBS_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assembler.h" 9 #include "src/assembler.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 2056 matching lines...) Expand 10 before | Expand all | Expand 10 after
2067 public: 2067 public:
2068 explicit LoadDictionaryElementStub(Isolate* isolate, const LoadICState& state) 2068 explicit LoadDictionaryElementStub(Isolate* isolate, const LoadICState& state)
2069 : HydrogenCodeStub(isolate) { 2069 : HydrogenCodeStub(isolate) {
2070 minor_key_ = state.GetExtraICState(); 2070 minor_key_ = state.GetExtraICState();
2071 } 2071 }
2072 2072
2073 CallInterfaceDescriptor GetCallInterfaceDescriptor() const override { 2073 CallInterfaceDescriptor GetCallInterfaceDescriptor() const override {
2074 return LoadWithVectorDescriptor(isolate()); 2074 return LoadWithVectorDescriptor(isolate());
2075 } 2075 }
2076 2076
2077 LanguageMode language_mode() const {
2078 return LoadICState::GetLanguageMode(MinorKey());
2079 }
2080
2081 DEFINE_HYDROGEN_CODE_STUB(LoadDictionaryElement, HydrogenCodeStub); 2077 DEFINE_HYDROGEN_CODE_STUB(LoadDictionaryElement, HydrogenCodeStub);
2082 }; 2078 };
2083 2079
2084 2080
2085 class KeyedLoadGenericStub : public HydrogenCodeStub { 2081 class KeyedLoadGenericStub : public HydrogenCodeStub {
2086 public: 2082 public:
2087 explicit KeyedLoadGenericStub(Isolate* isolate, const LoadICState& state) 2083 explicit KeyedLoadGenericStub(Isolate* isolate, const LoadICState& state)
2088 : HydrogenCodeStub(isolate) { 2084 : HydrogenCodeStub(isolate) {
2089 minor_key_ = state.GetExtraICState(); 2085 minor_key_ = state.GetExtraICState();
2090 } 2086 }
2091 2087
2092 Code::Kind GetCodeKind() const override { return Code::KEYED_LOAD_IC; } 2088 Code::Kind GetCodeKind() const override { return Code::KEYED_LOAD_IC; }
2093 InlineCacheState GetICState() const override { return GENERIC; } 2089 InlineCacheState GetICState() const override { return GENERIC; }
2094 2090
2095 LanguageMode language_mode() const {
2096 return LoadICState::GetLanguageMode(MinorKey());
2097 }
2098
2099 DEFINE_CALL_INTERFACE_DESCRIPTOR(Load); 2091 DEFINE_CALL_INTERFACE_DESCRIPTOR(Load);
2100 2092
2101 DEFINE_HYDROGEN_CODE_STUB(KeyedLoadGeneric, HydrogenCodeStub); 2093 DEFINE_HYDROGEN_CODE_STUB(KeyedLoadGeneric, HydrogenCodeStub);
2102 }; 2094 };
2103 2095
2104 2096
2105 class LoadICTrampolineStub : public PlatformCodeStub { 2097 class LoadICTrampolineStub : public PlatformCodeStub {
2106 public: 2098 public:
2107 LoadICTrampolineStub(Isolate* isolate, const LoadICState& state) 2099 LoadICTrampolineStub(Isolate* isolate, const LoadICState& state)
2108 : PlatformCodeStub(isolate) { 2100 : PlatformCodeStub(isolate) {
(...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after
2964 #undef DEFINE_HYDROGEN_CODE_STUB 2956 #undef DEFINE_HYDROGEN_CODE_STUB
2965 #undef DEFINE_CODE_STUB 2957 #undef DEFINE_CODE_STUB
2966 #undef DEFINE_CODE_STUB_BASE 2958 #undef DEFINE_CODE_STUB_BASE
2967 2959
2968 extern Representation RepresentationFromType(Type* type); 2960 extern Representation RepresentationFromType(Type* type);
2969 2961
2970 } // namespace internal 2962 } // namespace internal
2971 } // namespace v8 2963 } // namespace v8
2972 2964
2973 #endif // V8_CODE_STUBS_H_ 2965 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/code-factory.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698