| Index: src/arm/stub-cache-arm.cc
|
| diff --git a/src/arm/stub-cache-arm.cc b/src/arm/stub-cache-arm.cc
|
| index 7fc813868541c1c2f9d182a38b62f7385aa9cec2..54114dbc5d2633fa8460fca97e3056875c1530b2 100644
|
| --- a/src/arm/stub-cache-arm.cc
|
| +++ b/src/arm/stub-cache-arm.cc
|
| @@ -1526,7 +1526,7 @@ Handle<Code> CallStubCompiler::CompileCallField(Handle<JSObject> object,
|
| GenerateMissBranch();
|
|
|
| // Return the generated code.
|
| - return GetCode(FIELD, name);
|
| + return GetCode(Code::FIELD, name);
|
| }
|
|
|
|
|
| @@ -2071,7 +2071,7 @@ Handle<Code> CallStubCompiler::CompileStringFromCharCodeCall(
|
| GenerateMissBranch();
|
|
|
| // Return the generated code.
|
| - return cell.is_null() ? GetCode(function) : GetCode(NORMAL, name);
|
| + return cell.is_null() ? GetCode(function) : GetCode(Code::NORMAL, name);
|
| }
|
|
|
|
|
| @@ -2217,7 +2217,7 @@ Handle<Code> CallStubCompiler::CompileMathFloorCall(
|
| GenerateMissBranch();
|
|
|
| // Return the generated code.
|
| - return cell.is_null() ? GetCode(function) : GetCode(NORMAL, name);
|
| + return cell.is_null() ? GetCode(function) : GetCode(Code::NORMAL, name);
|
| }
|
|
|
|
|
| @@ -2316,7 +2316,7 @@ Handle<Code> CallStubCompiler::CompileMathAbsCall(
|
| GenerateMissBranch();
|
|
|
| // Return the generated code.
|
| - return cell.is_null() ? GetCode(function) : GetCode(NORMAL, name);
|
| + return cell.is_null() ? GetCode(function) : GetCode(Code::NORMAL, name);
|
| }
|
|
|
|
|
| @@ -2533,7 +2533,7 @@ Handle<Code> CallStubCompiler::CompileCallInterceptor(Handle<JSObject> object,
|
| GenerateMissBranch();
|
|
|
| // Return the generated code.
|
| - return GetCode(INTERCEPTOR, name);
|
| + return GetCode(Code::INTERCEPTOR, name);
|
| }
|
|
|
|
|
| @@ -2591,7 +2591,7 @@ Handle<Code> CallStubCompiler::CompileCallGlobal(
|
| GenerateMissBranch();
|
|
|
| // Return the generated code.
|
| - return GetCode(NORMAL, name);
|
| + return GetCode(Code::NORMAL, name);
|
| }
|
|
|
|
|
| @@ -2619,7 +2619,9 @@ Handle<Code> StoreStubCompiler::CompileStoreField(Handle<JSObject> object,
|
| __ Jump(ic, RelocInfo::CODE_TARGET);
|
|
|
| // Return the generated code.
|
| - return GetCode(transition.is_null() ? FIELD : MAP_TRANSITION, name);
|
| + return GetCode(transition.is_null()
|
| + ? Code::FIELD
|
| + : Code::MAP_TRANSITION, name);
|
| }
|
|
|
|
|
| @@ -2664,7 +2666,7 @@ Handle<Code> StoreStubCompiler::CompileStoreCallback(
|
| __ Jump(ic, RelocInfo::CODE_TARGET);
|
|
|
| // Return the generated code.
|
| - return GetCode(CALLBACKS, name);
|
| + return GetCode(Code::CALLBACKS, name);
|
| }
|
|
|
|
|
| @@ -2709,7 +2711,7 @@ Handle<Code> StoreStubCompiler::CompileStoreViaSetter(
|
| __ Jump(ic, RelocInfo::CODE_TARGET);
|
|
|
| // Return the generated code.
|
| - return GetCode(CALLBACKS, name);
|
| + return GetCode(Code::CALLBACKS, name);
|
| }
|
|
|
|
|
| @@ -2754,7 +2756,7 @@ Handle<Code> StoreStubCompiler::CompileStoreInterceptor(
|
| __ Jump(ic, RelocInfo::CODE_TARGET);
|
|
|
| // Return the generated code.
|
| - return GetCode(INTERCEPTOR, name);
|
| + return GetCode(Code::INTERCEPTOR, name);
|
| }
|
|
|
|
|
| @@ -2800,7 +2802,7 @@ Handle<Code> StoreStubCompiler::CompileStoreGlobal(
|
| __ Jump(ic, RelocInfo::CODE_TARGET);
|
|
|
| // Return the generated code.
|
| - return GetCode(NORMAL, name);
|
| + return GetCode(Code::NORMAL, name);
|
| }
|
|
|
|
|
| @@ -2835,7 +2837,7 @@ Handle<Code> LoadStubCompiler::CompileLoadNonexistent(Handle<String> name,
|
| GenerateLoadMiss(masm(), Code::LOAD_IC);
|
|
|
| // Return the generated code.
|
| - return GetCode(NONEXISTENT, factory()->empty_string());
|
| + return GetCode(Code::NONEXISTENT, factory()->empty_string());
|
| }
|
|
|
|
|
| @@ -2855,7 +2857,7 @@ Handle<Code> LoadStubCompiler::CompileLoadField(Handle<JSObject> object,
|
| GenerateLoadMiss(masm(), Code::LOAD_IC);
|
|
|
| // Return the generated code.
|
| - return GetCode(FIELD, name);
|
| + return GetCode(Code::FIELD, name);
|
| }
|
|
|
|
|
| @@ -2876,7 +2878,7 @@ Handle<Code> LoadStubCompiler::CompileLoadCallback(
|
| GenerateLoadMiss(masm(), Code::LOAD_IC);
|
|
|
| // Return the generated code.
|
| - return GetCode(CALLBACKS, name);
|
| + return GetCode(Code::CALLBACKS, name);
|
| }
|
|
|
|
|
| @@ -2914,7 +2916,7 @@ Handle<Code> LoadStubCompiler::CompileLoadViaGetter(
|
| GenerateLoadMiss(masm(), Code::LOAD_IC);
|
|
|
| // Return the generated code.
|
| - return GetCode(CALLBACKS, name);
|
| + return GetCode(Code::CALLBACKS, name);
|
| }
|
|
|
|
|
| @@ -2934,7 +2936,7 @@ Handle<Code> LoadStubCompiler::CompileLoadConstant(Handle<JSObject> object,
|
| GenerateLoadMiss(masm(), Code::LOAD_IC);
|
|
|
| // Return the generated code.
|
| - return GetCode(CONSTANT_FUNCTION, name);
|
| + return GetCode(Code::CONSTANT_FUNCTION, name);
|
| }
|
|
|
|
|
| @@ -2956,7 +2958,7 @@ Handle<Code> LoadStubCompiler::CompileLoadInterceptor(Handle<JSObject> object,
|
| GenerateLoadMiss(masm(), Code::LOAD_IC);
|
|
|
| // Return the generated code.
|
| - return GetCode(INTERCEPTOR, name);
|
| + return GetCode(Code::INTERCEPTOR, name);
|
| }
|
|
|
|
|
| @@ -2998,7 +3000,7 @@ Handle<Code> LoadStubCompiler::CompileLoadGlobal(
|
| GenerateLoadMiss(masm(), Code::LOAD_IC);
|
|
|
| // Return the generated code.
|
| - return GetCode(NORMAL, name);
|
| + return GetCode(Code::NORMAL, name);
|
| }
|
|
|
|
|
| @@ -3021,7 +3023,7 @@ Handle<Code> KeyedLoadStubCompiler::CompileLoadField(Handle<String> name,
|
| __ bind(&miss);
|
| GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
|
|
|
| - return GetCode(FIELD, name);
|
| + return GetCode(Code::FIELD, name);
|
| }
|
|
|
|
|
| @@ -3046,7 +3048,7 @@ Handle<Code> KeyedLoadStubCompiler::CompileLoadCallback(
|
| __ bind(&miss);
|
| GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
|
|
|
| - return GetCode(CALLBACKS, name);
|
| + return GetCode(Code::CALLBACKS, name);
|
| }
|
|
|
|
|
| @@ -3071,7 +3073,7 @@ Handle<Code> KeyedLoadStubCompiler::CompileLoadConstant(
|
| GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
|
|
|
| // Return the generated code.
|
| - return GetCode(CONSTANT_FUNCTION, name);
|
| + return GetCode(Code::CONSTANT_FUNCTION, name);
|
| }
|
|
|
|
|
| @@ -3097,7 +3099,7 @@ Handle<Code> KeyedLoadStubCompiler::CompileLoadInterceptor(
|
| __ bind(&miss);
|
| GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
|
|
|
| - return GetCode(INTERCEPTOR, name);
|
| + return GetCode(Code::INTERCEPTOR, name);
|
| }
|
|
|
|
|
| @@ -3118,7 +3120,7 @@ Handle<Code> KeyedLoadStubCompiler::CompileLoadArrayLength(
|
| __ bind(&miss);
|
| GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
|
|
|
| - return GetCode(CALLBACKS, name);
|
| + return GetCode(Code::CALLBACKS, name);
|
| }
|
|
|
|
|
| @@ -3144,7 +3146,7 @@ Handle<Code> KeyedLoadStubCompiler::CompileLoadStringLength(
|
|
|
| GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
|
|
|
| - return GetCode(CALLBACKS, name);
|
| + return GetCode(Code::CALLBACKS, name);
|
| }
|
|
|
|
|
| @@ -3169,7 +3171,7 @@ Handle<Code> KeyedLoadStubCompiler::CompileLoadFunctionPrototype(
|
| __ DecrementCounter(counters->keyed_load_function_prototype(), 1, r2, r3);
|
| GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
|
|
|
| - return GetCode(CALLBACKS, name);
|
| + return GetCode(Code::CALLBACKS, name);
|
| }
|
|
|
|
|
| @@ -3189,7 +3191,7 @@ Handle<Code> KeyedLoadStubCompiler::CompileLoadElement(
|
| __ Jump(ic, RelocInfo::CODE_TARGET);
|
|
|
| // Return the generated code.
|
| - return GetCode(NORMAL, factory()->empty_string());
|
| + return GetCode(Code::NORMAL, factory()->empty_string());
|
| }
|
|
|
|
|
| @@ -3217,7 +3219,7 @@ Handle<Code> KeyedLoadStubCompiler::CompileLoadPolymorphic(
|
| __ Jump(miss_ic, RelocInfo::CODE_TARGET, al);
|
|
|
| // Return the generated code.
|
| - return GetCode(NORMAL, factory()->empty_string(), MEGAMORPHIC);
|
| + return GetCode(Code::NORMAL, factory()->empty_string(), MEGAMORPHIC);
|
| }
|
|
|
|
|
| @@ -3256,7 +3258,9 @@ Handle<Code> KeyedStoreStubCompiler::CompileStoreField(Handle<JSObject> object,
|
| __ Jump(ic, RelocInfo::CODE_TARGET);
|
|
|
| // Return the generated code.
|
| - return GetCode(transition.is_null() ? FIELD : MAP_TRANSITION, name);
|
| + return GetCode(transition.is_null()
|
| + ? Code::FIELD
|
| + : Code::MAP_TRANSITION, name);
|
| }
|
|
|
|
|
| @@ -3280,7 +3284,7 @@ Handle<Code> KeyedStoreStubCompiler::CompileStoreElement(
|
| __ Jump(ic, RelocInfo::CODE_TARGET);
|
|
|
| // Return the generated code.
|
| - return GetCode(NORMAL, factory()->empty_string());
|
| + return GetCode(Code::NORMAL, factory()->empty_string());
|
| }
|
|
|
|
|
| @@ -3319,7 +3323,7 @@ Handle<Code> KeyedStoreStubCompiler::CompileStorePolymorphic(
|
| __ Jump(miss_ic, RelocInfo::CODE_TARGET, al);
|
|
|
| // Return the generated code.
|
| - return GetCode(NORMAL, factory()->empty_string(), MEGAMORPHIC);
|
| + return GetCode(Code::NORMAL, factory()->empty_string(), MEGAMORPHIC);
|
| }
|
|
|
|
|
|
|