| Index: src/x64/stub-cache-x64.cc
|
| ===================================================================
|
| --- src/x64/stub-cache-x64.cc (revision 5176)
|
| +++ src/x64/stub-cache-x64.cc (working copy)
|
| @@ -820,11 +820,9 @@
|
| }
|
|
|
|
|
| -Object* CallStubCompiler::GenerateMissBranch() {
|
| - Object* obj = StubCache::ComputeCallMiss(arguments().immediate(), kind_);
|
| - if (obj->IsFailure()) return obj;
|
| - __ Jump(Handle<Code>(Code::cast(obj)), RelocInfo::CODE_TARGET);
|
| - return obj;
|
| +void CallStubCompiler::GenerateMissBranch() {
|
| + Handle<Code> ic = ComputeCallMiss(arguments().immediate(), kind_);
|
| + __ Jump(ic, RelocInfo::CODE_TARGET);
|
| }
|
|
|
|
|
| @@ -977,8 +975,7 @@
|
|
|
| // Handle call cache miss.
|
| __ bind(&miss_in_smi_check);
|
| - Object* obj = GenerateMissBranch();
|
| - if (obj->IsFailure()) return obj;
|
| + GenerateMissBranch();
|
|
|
| // Return the generated code.
|
| return GetCode(function);
|
| @@ -1032,8 +1029,7 @@
|
|
|
| // Handle call cache miss.
|
| __ bind(&miss);
|
| - Object* obj = GenerateMissBranch();
|
| - if (obj->IsFailure()) return obj;
|
| + GenerateMissBranch();
|
|
|
| // Return the generated code.
|
| return GetCode(FIELD, name);
|
| @@ -1190,9 +1186,9 @@
|
| }
|
|
|
| __ bind(&miss);
|
| - Object* obj = GenerateMissBranch();
|
| - if (obj->IsFailure()) return obj;
|
|
|
| + GenerateMissBranch();
|
| +
|
| // Return the generated code.
|
| return GetCode(function);
|
| }
|
| @@ -1274,9 +1270,9 @@
|
| argc + 1,
|
| 1);
|
| __ bind(&miss);
|
| - Object* obj = GenerateMissBranch();
|
| - if (obj->IsFailure()) return obj;
|
|
|
| + GenerateMissBranch();
|
| +
|
| // Return the generated code.
|
| return GetCode(function);
|
| }
|
| @@ -1361,8 +1357,7 @@
|
|
|
| // Handle load cache miss.
|
| __ bind(&miss);
|
| - Object* obj = GenerateMissBranch();
|
| - if (obj->IsFailure()) return obj;
|
| + GenerateMissBranch();
|
|
|
| // Return the generated code.
|
| return GetCode(INTERCEPTOR, name);
|
| @@ -1447,8 +1442,7 @@
|
| // Handle call cache miss.
|
| __ bind(&miss);
|
| __ IncrementCounter(&Counters::call_global_inline_miss, 1);
|
| - Object* obj = GenerateMissBranch();
|
| - if (obj->IsFailure()) return obj;
|
| + GenerateMissBranch();
|
|
|
| // Return the generated code.
|
| return GetCode(NORMAL, name);
|
|
|