Index: src/arm/codegen-arm.h |
=================================================================== |
--- src/arm/codegen-arm.h (revision 5450) |
+++ src/arm/codegen-arm.h (working copy) |
@@ -271,10 +271,6 @@ |
void AddDeferred(DeferredCode* code) { deferred_.Add(code); } |
- // If the name is an inline runtime function call return the number of |
- // expected arguments. Otherwise return -1. |
- static int InlineRuntimeCallArgumentsCount(Handle<String> name); |
- |
// Constants related to patching of inlined load/store. |
static int GetInlinedKeyedLoadInstructionsAfterPatch() { |
return FLAG_debug_code ? 32 : 13; |
@@ -290,6 +286,12 @@ |
} |
private: |
+ // Type of a member function that generates inline code for a native function. |
+ typedef void (CodeGenerator::*InlineFunctionGenerator) |
+ (ZoneList<Expression*>*); |
+ |
+ static const InlineFunctionGenerator kInlineFunctionGenerators[]; |
+ |
// Construction/Destruction |
explicit CodeGenerator(MacroAssembler* masm); |
@@ -447,13 +449,9 @@ |
void Branch(bool if_true, JumpTarget* target); |
void CheckStack(); |
- struct InlineRuntimeLUT { |
- void (CodeGenerator::*method)(ZoneList<Expression*>*); |
- const char* name; |
- int nargs; |
- }; |
+ static InlineFunctionGenerator FindInlineFunctionGenerator( |
+ Runtime::FunctionId function_id); |
- static InlineRuntimeLUT* FindInlineRuntimeLUT(Handle<String> name); |
bool CheckForInlineRuntimeCall(CallRuntime* node); |
static Handle<Code> ComputeLazyCompile(int argc); |
@@ -599,8 +597,6 @@ |
// Size of inlined write barriers generated by EmitNamedStore. |
static int inlined_write_barrier_size_; |
- static InlineRuntimeLUT kInlineRuntimeLUT[]; |
- |
friend class VirtualFrame; |
friend class JumpTarget; |
friend class Reference; |