Commit 7d456285 authored by olivf@chromium.org's avatar olivf@chromium.org

Calm down GCMole after r17104.

TBR=jkummerow@chromium.org
BUG=

Review URL: https://codereview.chromium.org/25409003

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@17106 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent c566aed2
......@@ -2347,8 +2347,10 @@ MaybeObject* BinaryOpIC::Transition(Handle<Object> left, Handle<Object> right) {
Code::ExtraICState extra_ic_state = target()->extended_extra_ic_state();
BinaryOpStub stub(extra_ic_state);
bool smi_was_enabled = stub.GetLeftType(isolate())->Maybe(Type::Smi()) &&
stub.GetRightType(isolate())->Maybe(Type::Smi());
Handle<Type> left_type = stub.GetLeftType(isolate());
Handle<Type> right_type = stub.GetRightType(isolate());
bool smi_was_enabled = left_type->Maybe(Type::Smi()) &&
right_type->Maybe(Type::Smi());
Maybe<Handle<Object> > result = stub.Result(left, right, isolate());
......@@ -2380,8 +2382,10 @@ MaybeObject* BinaryOpIC::Transition(Handle<Object> left, Handle<Object> right) {
Handle<Code> code = stub.GetCode(isolate());
set_target(*code);
bool enable_smi = stub.GetLeftType(isolate())->Maybe(Type::Smi()) &&
stub.GetRightType(isolate())->Maybe(Type::Smi());
left_type = stub.GetLeftType(isolate());
right_type = stub.GetRightType(isolate());
bool enable_smi = left_type->Maybe(Type::Smi()) &&
right_type->Maybe(Type::Smi());
if (!smi_was_enabled && enable_smi) {
PatchInlinedSmiCode(address(), ENABLE_INLINED_SMI_CHECK);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment