| OLD | NEW | 
|    1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |    1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 
|    2 // Redistribution and use in source and binary forms, with or without |    2 // Redistribution and use in source and binary forms, with or without | 
|    3 // modification, are permitted provided that the following conditions are |    3 // modification, are permitted provided that the following conditions are | 
|    4 // met: |    4 // met: | 
|    5 // |    5 // | 
|    6 //     * Redistributions of source code must retain the above copyright |    6 //     * Redistributions of source code must retain the above copyright | 
|    7 //       notice, this list of conditions and the following disclaimer. |    7 //       notice, this list of conditions and the following disclaimer. | 
|    8 //     * Redistributions in binary form must reproduce the above |    8 //     * Redistributions in binary form must reproduce the above | 
|    9 //       copyright notice, this list of conditions and the following |    9 //       copyright notice, this list of conditions and the following | 
|   10 //       disclaimer in the documentation and/or other materials provided |   10 //       disclaimer in the documentation and/or other materials provided | 
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  323     void (CodeGenerator::*method)(ZoneList<Expression*>*); |  323     void (CodeGenerator::*method)(ZoneList<Expression*>*); | 
|  324     const char* name; |  324     const char* name; | 
|  325   }; |  325   }; | 
|  326  |  326  | 
|  327   static InlineRuntimeLUT* FindInlineRuntimeLUT(Handle<String> name); |  327   static InlineRuntimeLUT* FindInlineRuntimeLUT(Handle<String> name); | 
|  328   bool CheckForInlineRuntimeCall(CallRuntime* node); |  328   bool CheckForInlineRuntimeCall(CallRuntime* node); | 
|  329   static bool PatchInlineRuntimeEntry(Handle<String> name, |  329   static bool PatchInlineRuntimeEntry(Handle<String> name, | 
|  330                                       const InlineRuntimeLUT& new_entry, |  330                                       const InlineRuntimeLUT& new_entry, | 
|  331                                       InlineRuntimeLUT* old_entry); |  331                                       InlineRuntimeLUT* old_entry); | 
|  332  |  332  | 
 |  333   static Handle<Code> ComputeLazyCompile(int argc); | 
|  333   Handle<JSFunction> BuildBoilerplate(FunctionLiteral* node); |  334   Handle<JSFunction> BuildBoilerplate(FunctionLiteral* node); | 
|  334   void ProcessDeclarations(ZoneList<Declaration*>* declarations); |  335   void ProcessDeclarations(ZoneList<Declaration*>* declarations); | 
|  335  |  336  | 
|  336   Handle<Code> ComputeCallInitialize(int argc, InLoopFlag in_loop); |  337   static Handle<Code> ComputeCallInitialize(int argc, InLoopFlag in_loop); | 
|  337  |  338  | 
|  338   // Declare global variables and functions in the given array of |  339   // Declare global variables and functions in the given array of | 
|  339   // name/value pairs. |  340   // name/value pairs. | 
|  340   void DeclareGlobals(Handle<FixedArray> pairs); |  341   void DeclareGlobals(Handle<FixedArray> pairs); | 
|  341  |  342  | 
|  342   // Instantiate the function boilerplate. |  343   // Instantiate the function boilerplate. | 
|  343   void InstantiateBoilerplate(Handle<JSFunction> boilerplate); |  344   void InstantiateBoilerplate(Handle<JSFunction> boilerplate); | 
|  344  |  345  | 
|  345   // Support for type checks. |  346   // Support for type checks. | 
|  346   void GenerateIsSmi(ZoneList<Expression*>* args); |  347   void GenerateIsSmi(ZoneList<Expression*>* args); | 
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  419   // function_return_ does not jump to the true function return, but rather |  420   // function_return_ does not jump to the true function return, but rather | 
|  420   // to some unlinking code). |  421   // to some unlinking code). | 
|  421   bool function_return_is_shadowed_; |  422   bool function_return_is_shadowed_; | 
|  422  |  423  | 
|  423   static InlineRuntimeLUT kInlineRuntimeLUT[]; |  424   static InlineRuntimeLUT kInlineRuntimeLUT[]; | 
|  424  |  425  | 
|  425   friend class VirtualFrame; |  426   friend class VirtualFrame; | 
|  426   friend class JumpTarget; |  427   friend class JumpTarget; | 
|  427   friend class Reference; |  428   friend class Reference; | 
|  428   friend class FastCodeGenerator; |  429   friend class FastCodeGenerator; | 
 |  430   friend class CodeGenSelector; | 
|  429  |  431  | 
|  430   DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |  432   DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 
|  431 }; |  433 }; | 
|  432  |  434  | 
|  433  |  435  | 
|  434 class GenericBinaryOpStub : public CodeStub { |  436 class GenericBinaryOpStub : public CodeStub { | 
|  435  public: |  437  public: | 
|  436   GenericBinaryOpStub(Token::Value op, |  438   GenericBinaryOpStub(Token::Value op, | 
|  437                       OverwriteMode mode, |  439                       OverwriteMode mode, | 
|  438                       int constant_rhs = CodeGenerator::kUnknownIntValue) |  440                       int constant_rhs = CodeGenerator::kUnknownIntValue) | 
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  517              constant_rhs_); |  519              constant_rhs_); | 
|  518     } |  520     } | 
|  519   } |  521   } | 
|  520 #endif |  522 #endif | 
|  521 }; |  523 }; | 
|  522  |  524  | 
|  523  |  525  | 
|  524 } }  // namespace v8::internal |  526 } }  // namespace v8::internal | 
|  525  |  527  | 
|  526 #endif  // V8_ARM_CODEGEN_ARM_H_ |  528 #endif  // V8_ARM_CODEGEN_ARM_H_ | 
| OLD | NEW |