diff options
Diffstat (limited to 'deps/v8/src/compiler/type-hint-analyzer.cc')
-rw-r--r-- | deps/v8/src/compiler/type-hint-analyzer.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/deps/v8/src/compiler/type-hint-analyzer.cc b/deps/v8/src/compiler/type-hint-analyzer.cc index 42c4627b67..da4f2683a3 100644 --- a/deps/v8/src/compiler/type-hint-analyzer.cc +++ b/deps/v8/src/compiler/type-hint-analyzer.cc @@ -48,10 +48,10 @@ bool TypeHintAnalysis::GetToBooleanHints(TypeFeedbackId id, if (i == infos_.end()) return false; Handle<Code> code = i->second; DCHECK_EQ(Code::TO_BOOLEAN_IC, code->kind()); - ToBooleanStub stub(code->GetIsolate(), code->extra_ic_state()); -// TODO(bmeurer): Replace ToBooleanStub::Types with ToBooleanHints. -#define ASSERT_COMPATIBLE(NAME, Name) \ - STATIC_ASSERT(1 << ToBooleanStub::NAME == \ + ToBooleanICStub stub(code->GetIsolate(), code->extra_ic_state()); +// TODO(bmeurer): Replace ToBooleanICStub::Types with ToBooleanHints. +#define ASSERT_COMPATIBLE(NAME, Name) \ + STATIC_ASSERT(1 << ToBooleanICStub::NAME == \ static_cast<int>(ToBooleanHint::k##Name)) ASSERT_COMPATIBLE(UNDEFINED, Undefined); ASSERT_COMPATIBLE(BOOLEAN, Boolean); |