Chromium Code Reviews| 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_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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 246 | 246 |
| 247 // For convenience, a statically declared encoding of strict mode extra | 247 // For convenience, a statically declared encoding of strict mode extra |
| 248 // IC state. | 248 // IC state. |
| 249 static const ExtraICState kStrictModeState = STRICT | 249 static const ExtraICState kStrictModeState = STRICT |
| 250 << LanguageModeState::kShift; | 250 << LanguageModeState::kShift; |
| 251 | 251 |
| 252 private: | 252 private: |
| 253 const ExtraICState state_; | 253 const ExtraICState state_; |
| 254 }; | 254 }; |
| 255 | 255 |
| 256 // TODO(mythria): Move this to a different header that is accessible from | |
| 257 // code-stub and bytecode-graph-builder. | |
|
Benedikt Meurer
2016/08/08 04:56:14
I'd rather use a very simple enum to encode the la
mythria
2016/08/08 07:17:36
Thanks for the detailed comment Benedikt. Done.
| |
| 258 class BinaryOpTypeFeedback { | |
| 259 public: | |
| 260 class SmiType : public BitField8<int, 0, 1> {}; | |
| 261 class NumberType : public BitField8<int, SmiType::kNext, 1> {}; | |
| 262 class AnyType : public BitField8<int, NumberType::kNext, 1> {}; | |
| 263 }; | |
|
mythria
2016/08/08 04:33:56
I am not sure where is the right place to add this
Benedikt Meurer
2016/08/08 04:56:13
Please move it to globals.h for now.
mythria
2016/08/08 07:17:36
Done.
| |
| 264 | |
| 256 } // namespace internal | 265 } // namespace internal |
| 257 } // namespace v8 | 266 } // namespace v8 |
| 258 | 267 |
| 259 #endif // V8_IC_STATE_H_ | 268 #endif // V8_IC_STATE_H_ |
| OLD | NEW |