Index: src/ia32/codegen-ia32.h |
=================================================================== |
--- src/ia32/codegen-ia32.h (revision 5450) |
+++ src/ia32/codegen-ia32.h (working copy) |
@@ -345,10 +345,6 @@ |
bool in_spilled_code() const { return in_spilled_code_; } |
void set_in_spilled_code(bool flag) { in_spilled_code_ = flag; } |
- // If the name is an inline runtime function call return the number of |
- // expected arguments. Otherwise return -1. |
- static int InlineRuntimeCallArgumentsCount(Handle<String> name); |
- |
// Return a position of the element at |index_as_smi| + |additional_offset| |
// in FixedArray pointer to which is held in |array|. |index_as_smi| is Smi. |
static Operand FixedArrayElementOperand(Register array, |
@@ -363,6 +359,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); |
@@ -624,13 +626,9 @@ |
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); |
void ProcessDeclarations(ZoneList<Declaration*>* declarations); |
@@ -792,8 +790,6 @@ |
// in a spilled state. |
bool in_spilled_code_; |
- static InlineRuntimeLUT kInlineRuntimeLUT[]; |
- |
friend class VirtualFrame; |
friend class JumpTarget; |
friend class Reference; |