Index: src/x64/stub-cache-x64.cc |
diff --git a/src/x64/stub-cache-x64.cc b/src/x64/stub-cache-x64.cc |
index 4040e958658b4e4f959b9284f41de94105c267da..a2adf066f06b494ebede570244c41dcdc0416b7d 100644 |
--- a/src/x64/stub-cache-x64.cc |
+++ b/src/x64/stub-cache-x64.cc |
@@ -1391,7 +1391,7 @@ Handle<Code> CallStubCompiler::CompileCallField(Handle<JSObject> object, |
GenerateMissBranch(); |
// Return the generated code. |
- return GetCode(FIELD, name); |
+ return GetCode(Code::FIELD, name); |
} |
@@ -1915,7 +1915,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); |
} |
@@ -2030,7 +2030,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); |
} |
@@ -2279,7 +2279,7 @@ Handle<Code> CallStubCompiler::CompileCallInterceptor(Handle<JSObject> object, |
GenerateMissBranch(); |
// Return the generated code. |
- return GetCode(INTERCEPTOR, name); |
+ return GetCode(Code::INTERCEPTOR, name); |
} |
@@ -2342,7 +2342,7 @@ Handle<Code> CallStubCompiler::CompileCallGlobal( |
GenerateMissBranch(); |
// Return the generated code. |
- return GetCode(NORMAL, name); |
+ return GetCode(Code::NORMAL, name); |
} |
@@ -2373,7 +2373,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); |
} |
@@ -2420,7 +2422,7 @@ Handle<Code> StoreStubCompiler::CompileStoreCallback( |
__ Jump(ic, RelocInfo::CODE_TARGET); |
// Return the generated code. |
- return GetCode(CALLBACKS, name); |
+ return GetCode(Code::CALLBACKS, name); |
} |
@@ -2466,7 +2468,7 @@ Handle<Code> StoreStubCompiler::CompileStoreViaSetter( |
__ Jump(ic, RelocInfo::CODE_TARGET); |
// Return the generated code. |
- return GetCode(CALLBACKS, name); |
+ return GetCode(Code::CALLBACKS, name); |
} |
@@ -2512,7 +2514,7 @@ Handle<Code> StoreStubCompiler::CompileStoreInterceptor( |
__ Jump(ic, RelocInfo::CODE_TARGET); |
// Return the generated code. |
- return GetCode(INTERCEPTOR, name); |
+ return GetCode(Code::INTERCEPTOR, name); |
} |
@@ -2560,7 +2562,7 @@ Handle<Code> StoreStubCompiler::CompileStoreGlobal( |
__ Jump(ic, RelocInfo::CODE_TARGET); |
// Return the generated code. |
- return GetCode(NORMAL, name); |
+ return GetCode(Code::NORMAL, name); |
} |
@@ -2599,7 +2601,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); |
} |
@@ -2623,7 +2627,7 @@ Handle<Code> KeyedStoreStubCompiler::CompileStoreElement( |
__ jmp(ic, RelocInfo::CODE_TARGET); |
// Return the generated code. |
- return GetCode(NORMAL, factory()->empty_string()); |
+ return GetCode(Code::NORMAL, factory()->empty_string()); |
} |
@@ -2661,7 +2665,7 @@ Handle<Code> KeyedStoreStubCompiler::CompileStorePolymorphic( |
__ jmp(ic, RelocInfo::CODE_TARGET); |
// Return the generated code. |
- return GetCode(NORMAL, factory()->empty_string(), MEGAMORPHIC); |
+ return GetCode(Code::NORMAL, factory()->empty_string(), MEGAMORPHIC); |
} |
@@ -2699,7 +2703,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()); |
} |
@@ -2719,7 +2723,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); |
} |
@@ -2740,7 +2744,7 @@ Handle<Code> LoadStubCompiler::CompileLoadCallback( |
GenerateLoadMiss(masm(), Code::LOAD_IC); |
// Return the generated code. |
- return GetCode(CALLBACKS, name); |
+ return GetCode(Code::CALLBACKS, name); |
} |
@@ -2778,7 +2782,7 @@ Handle<Code> LoadStubCompiler::CompileLoadViaGetter( |
GenerateLoadMiss(masm(), Code::LOAD_IC); |
// Return the generated code. |
- return GetCode(CALLBACKS, name); |
+ return GetCode(Code::CALLBACKS, name); |
} |
@@ -2798,7 +2802,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); |
} |
@@ -2822,7 +2826,7 @@ Handle<Code> LoadStubCompiler::CompileLoadInterceptor(Handle<JSObject> receiver, |
GenerateLoadMiss(masm(), Code::LOAD_IC); |
// Return the generated code. |
- return GetCode(INTERCEPTOR, name); |
+ return GetCode(Code::INTERCEPTOR, name); |
} |
@@ -2866,7 +2870,7 @@ Handle<Code> LoadStubCompiler::CompileLoadGlobal( |
GenerateLoadMiss(masm(), Code::LOAD_IC); |
// Return the generated code. |
- return GetCode(NORMAL, name); |
+ return GetCode(Code::NORMAL, name); |
} |
@@ -2895,7 +2899,7 @@ Handle<Code> KeyedLoadStubCompiler::CompileLoadField(Handle<String> name, |
GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC); |
// Return the generated code. |
- return GetCode(FIELD, name); |
+ return GetCode(Code::FIELD, name); |
} |
@@ -2924,7 +2928,7 @@ Handle<Code> KeyedLoadStubCompiler::CompileLoadCallback( |
GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC); |
// Return the generated code. |
- return GetCode(CALLBACKS, name); |
+ return GetCode(Code::CALLBACKS, name); |
} |
@@ -2954,7 +2958,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); |
} |
@@ -2984,7 +2988,7 @@ Handle<Code> KeyedLoadStubCompiler::CompileLoadInterceptor( |
GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC); |
// Return the generated code. |
- return GetCode(INTERCEPTOR, name); |
+ return GetCode(Code::INTERCEPTOR, name); |
} |
@@ -3010,7 +3014,7 @@ Handle<Code> KeyedLoadStubCompiler::CompileLoadArrayLength( |
GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC); |
// Return the generated code. |
- return GetCode(CALLBACKS, name); |
+ return GetCode(Code::CALLBACKS, name); |
} |
@@ -3036,7 +3040,7 @@ Handle<Code> KeyedLoadStubCompiler::CompileLoadStringLength( |
GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC); |
// Return the generated code. |
- return GetCode(CALLBACKS, name); |
+ return GetCode(Code::CALLBACKS, name); |
} |
@@ -3062,7 +3066,7 @@ Handle<Code> KeyedLoadStubCompiler::CompileLoadFunctionPrototype( |
GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC); |
// Return the generated code. |
- return GetCode(CALLBACKS, name); |
+ return GetCode(Code::CALLBACKS, name); |
} |
@@ -3082,7 +3086,7 @@ Handle<Code> KeyedLoadStubCompiler::CompileLoadElement( |
__ jmp(ic, RelocInfo::CODE_TARGET); |
// Return the generated code. |
- return GetCode(NORMAL, factory()->empty_string()); |
+ return GetCode(Code::NORMAL, factory()->empty_string()); |
} |
@@ -3110,7 +3114,7 @@ Handle<Code> KeyedLoadStubCompiler::CompileLoadPolymorphic( |
GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC); |
// Return the generated code. |
- return GetCode(NORMAL, factory()->empty_string(), MEGAMORPHIC); |
+ return GetCode(Code::NORMAL, factory()->empty_string(), MEGAMORPHIC); |
} |