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

Side by Side Diff: src/ic/ic-state.h

Issue 2028983002: Introduce IsUndefined(Isolate*) and IsTheHole(Isolate*) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase master Created 4 years, 6 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/ic/ic.cc ('k') | src/ic/ic-state.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_IC_STATE_H_ 5 #ifndef V8_IC_STATE_H_
6 #define V8_IC_STATE_H_ 6 #define V8_IC_STATE_H_
7 7
8 #include "src/macro-assembler.h" 8 #include "src/macro-assembler.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 GENERIC 186 GENERIC
187 }; 187 };
188 188
189 static Type* StateToType(Zone* zone, State state, 189 static Type* StateToType(Zone* zone, State state,
190 Handle<Map> map = Handle<Map>()); 190 Handle<Map> map = Handle<Map>());
191 191
192 static State NewInputState(State old_state, Handle<Object> value); 192 static State NewInputState(State old_state, Handle<Object> value);
193 193
194 static const char* GetStateName(CompareICState::State state); 194 static const char* GetStateName(CompareICState::State state);
195 195
196 static State TargetState(State old_state, State old_left, State old_right, 196 static State TargetState(Isolate* isolate, State old_state, State old_left,
197 Token::Value op, bool has_inlined_smi_code, 197 State old_right, Token::Value op,
198 Handle<Object> x, Handle<Object> y); 198 bool has_inlined_smi_code, Handle<Object> x,
199 Handle<Object> y);
199 }; 200 };
200 201
201 202
202 class LoadICState final BASE_EMBEDDED { 203 class LoadICState final BASE_EMBEDDED {
203 private: 204 private:
204 class TypeofModeBits : public BitField<TypeofMode, 0, 1> {}; 205 class TypeofModeBits : public BitField<TypeofMode, 0, 1> {};
205 STATIC_ASSERT(static_cast<int>(INSIDE_TYPEOF) == 0); 206 STATIC_ASSERT(static_cast<int>(INSIDE_TYPEOF) == 0);
206 const ExtraICState state_; 207 const ExtraICState state_;
207 208
208 public: 209 public:
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 << LanguageModeState::kShift; 250 << LanguageModeState::kShift;
250 251
251 private: 252 private:
252 const ExtraICState state_; 253 const ExtraICState state_;
253 }; 254 };
254 255
255 } // namespace internal 256 } // namespace internal
256 } // namespace v8 257 } // namespace v8
257 258
258 #endif // V8_IC_STATE_H_ 259 #endif // V8_IC_STATE_H_
OLDNEW
« no previous file with comments | « src/ic/ic.cc ('k') | src/ic/ic-state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698