OLD | NEW |
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 1934 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1945 public: | 1945 public: |
1946 CompareICStub(Isolate* isolate, Token::Value op, CompareICState::State left, | 1946 CompareICStub(Isolate* isolate, Token::Value op, CompareICState::State left, |
1947 CompareICState::State right, CompareICState::State state) | 1947 CompareICState::State right, CompareICState::State state) |
1948 : PlatformCodeStub(isolate) { | 1948 : PlatformCodeStub(isolate) { |
1949 DCHECK(Token::IsCompareOp(op)); | 1949 DCHECK(Token::IsCompareOp(op)); |
1950 DCHECK(OpBits::is_valid(op - Token::EQ)); | 1950 DCHECK(OpBits::is_valid(op - Token::EQ)); |
1951 minor_key_ = OpBits::encode(op - Token::EQ) | | 1951 minor_key_ = OpBits::encode(op - Token::EQ) | |
1952 LeftStateBits::encode(left) | RightStateBits::encode(right) | | 1952 LeftStateBits::encode(left) | RightStateBits::encode(right) | |
1953 StateBits::encode(state); | 1953 StateBits::encode(state); |
1954 } | 1954 } |
| 1955 // Creates uninitialized compare stub. |
| 1956 CompareICStub(Isolate* isolate, Token::Value op) |
| 1957 : CompareICStub(isolate, op, CompareICState::UNINITIALIZED, |
| 1958 CompareICState::UNINITIALIZED, |
| 1959 CompareICState::UNINITIALIZED) {} |
| 1960 |
1955 CompareICStub(Isolate* isolate, ExtraICState extra_ic_state) | 1961 CompareICStub(Isolate* isolate, ExtraICState extra_ic_state) |
1956 : PlatformCodeStub(isolate) { | 1962 : PlatformCodeStub(isolate) { |
1957 minor_key_ = extra_ic_state; | 1963 minor_key_ = extra_ic_state; |
1958 } | 1964 } |
1959 | 1965 |
1960 ExtraICState GetExtraICState() const final { | 1966 ExtraICState GetExtraICState() const final { |
1961 return static_cast<ExtraICState>(minor_key_); | 1967 return static_cast<ExtraICState>(minor_key_); |
1962 } | 1968 } |
1963 | 1969 |
1964 void set_known_map(Handle<Map> map) { known_map_ = map; } | 1970 void set_known_map(Handle<Map> map) { known_map_ = map; } |
(...skipping 1154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3119 #undef DEFINE_HYDROGEN_CODE_STUB | 3125 #undef DEFINE_HYDROGEN_CODE_STUB |
3120 #undef DEFINE_CODE_STUB | 3126 #undef DEFINE_CODE_STUB |
3121 #undef DEFINE_CODE_STUB_BASE | 3127 #undef DEFINE_CODE_STUB_BASE |
3122 | 3128 |
3123 extern Representation RepresentationFromType(Type* type); | 3129 extern Representation RepresentationFromType(Type* type); |
3124 | 3130 |
3125 } // namespace internal | 3131 } // namespace internal |
3126 } // namespace v8 | 3132 } // namespace v8 |
3127 | 3133 |
3128 #endif // V8_CODE_STUBS_H_ | 3134 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |