Index: src/stub-cache.cc |
diff --git a/src/stub-cache.cc b/src/stub-cache.cc |
index 5dfce55fb9c27fdd3672d7a395666d85f67fd051..bf449d8bf7347c2982f3c3271c2aa7d7f83456da 100644 |
--- a/src/stub-cache.cc |
+++ b/src/stub-cache.cc |
@@ -118,7 +118,7 @@ Handle<Code> StubCache::FindHandler(Handle<Name> name, |
Code::Kind kind, |
InlineCacheHolderFlag cache_holder) { |
Code::Flags flags = Code::ComputeMonomorphicFlags( |
- Code::HANDLER, kNoExtraICState, cache_holder, Code::NORMAL, kind); |
+ Code::HANDLER, kNoExtraICState, cache_holder, Code::NORMAL); |
Handle<Object> probe(stub_holder->FindInCodeCache(*name, flags), isolate_); |
if (probe->IsCode()) return Handle<Code>::cast(probe); |
@@ -127,11 +127,11 @@ Handle<Code> StubCache::FindHandler(Handle<Name> name, |
Handle<Code> StubCache::ComputeMonomorphicIC( |
+ Code::Kind kind, |
Handle<Name> name, |
Handle<HeapType> type, |
Handle<Code> handler, |
ExtraICState extra_ic_state) { |
- Code::Kind kind = handler->handler_kind(); |
InlineCacheHolderFlag flag = IC::GetCodeCacheFlag(*type); |
Handle<Map> stub_holder; |
@@ -369,14 +369,13 @@ Handle<Code> StubCache::ComputeLoadElementPolymorphic( |
Handle<Code> StubCache::ComputePolymorphicIC( |
+ Code::Kind kind, |
TypeHandleList* types, |
CodeHandleList* handlers, |
int number_of_valid_types, |
Handle<Name> name, |
ExtraICState extra_ic_state) { |
- |
Handle<Code> handler = handlers->at(0); |
- Code::Kind kind = handler->handler_kind(); |
Code::StubType type = number_of_valid_types == 1 ? handler->type() |
: Code::NORMAL; |
if (kind == Code::LOAD_IC) { |
@@ -1236,8 +1235,8 @@ Handle<Code> BaseLoadStoreStubCompiler::GetICCode(Code::Kind kind, |
Handle<Code> BaseLoadStoreStubCompiler::GetCode(Code::Kind kind, |
Code::StubType type, |
Handle<Name> name) { |
- Code::Flags flags = Code::ComputeFlags( |
- Code::HANDLER, MONOMORPHIC, extra_state(), type, kind, cache_holder_); |
+ Code::Flags flags = Code::ComputeHandlerFlags( |
+ kind, extra_state(), type, cache_holder_); |
Handle<Code> code = GetCodeWithFlags(flags, name); |
PROFILE(isolate(), CodeCreateEvent(log_kind(code), *code, *name)); |
JitEvent(name, code); |