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

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

Issue 2116523002: [ic] [stubs] Add missing GetExtraICState method to CompareICStub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: [ic] [stubs] Add missing GetExtraICState method to CompareICStub. Created 4 years, 5 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 | « no previous file | no next file » | 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/code-stub-assembler.h" 10 #include "src/code-stub-assembler.h"
(...skipping 1954 matching lines...) Expand 10 before | Expand all | Expand 10 after
1965 DCHECK(OpBits::is_valid(op - Token::EQ)); 1965 DCHECK(OpBits::is_valid(op - Token::EQ));
1966 minor_key_ = OpBits::encode(op - Token::EQ) | 1966 minor_key_ = OpBits::encode(op - Token::EQ) |
1967 LeftStateBits::encode(left) | RightStateBits::encode(right) | 1967 LeftStateBits::encode(left) | RightStateBits::encode(right) |
1968 StateBits::encode(state); 1968 StateBits::encode(state);
1969 } 1969 }
1970 CompareICStub(Isolate* isolate, ExtraICState extra_ic_state) 1970 CompareICStub(Isolate* isolate, ExtraICState extra_ic_state)
1971 : PlatformCodeStub(isolate) { 1971 : PlatformCodeStub(isolate) {
1972 minor_key_ = extra_ic_state; 1972 minor_key_ = extra_ic_state;
1973 } 1973 }
1974 1974
1975 ExtraICState GetExtraICState() const final {
1976 return static_cast<ExtraICState>(minor_key_);
1977 }
1978
1975 void set_known_map(Handle<Map> map) { known_map_ = map; } 1979 void set_known_map(Handle<Map> map) { known_map_ = map; }
1976 1980
1977 InlineCacheState GetICState() const; 1981 InlineCacheState GetICState() const;
1978 1982
1979 Token::Value op() const { 1983 Token::Value op() const {
1980 return static_cast<Token::Value>(Token::EQ + OpBits::decode(minor_key_)); 1984 return static_cast<Token::Value>(Token::EQ + OpBits::decode(minor_key_));
1981 } 1985 }
1982 1986
1983 CompareICState::State left() const { 1987 CompareICState::State left() const {
1984 return LeftStateBits::decode(minor_key_); 1988 return LeftStateBits::decode(minor_key_);
(...skipping 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after
3114 #undef DEFINE_HYDROGEN_CODE_STUB 3118 #undef DEFINE_HYDROGEN_CODE_STUB
3115 #undef DEFINE_CODE_STUB 3119 #undef DEFINE_CODE_STUB
3116 #undef DEFINE_CODE_STUB_BASE 3120 #undef DEFINE_CODE_STUB_BASE
3117 3121
3118 extern Representation RepresentationFromType(Type* type); 3122 extern Representation RepresentationFromType(Type* type);
3119 3123
3120 } // namespace internal 3124 } // namespace internal
3121 } // namespace v8 3125 } // namespace v8
3122 3126
3123 #endif // V8_CODE_STUBS_H_ 3127 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698