| 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 17 matching lines...) Expand all  Loading... | 
| 28 #ifndef V8_CODEGEN_ARM_H_ | 28 #ifndef V8_CODEGEN_ARM_H_ | 
| 29 #define V8_CODEGEN_ARM_H_ | 29 #define V8_CODEGEN_ARM_H_ | 
| 30 | 30 | 
| 31 namespace v8 { namespace internal { | 31 namespace v8 { namespace internal { | 
| 32 | 32 | 
| 33 // Forward declarations | 33 // Forward declarations | 
| 34 class DeferredCode; | 34 class DeferredCode; | 
| 35 class RegisterAllocator; | 35 class RegisterAllocator; | 
| 36 class RegisterFile; | 36 class RegisterFile; | 
| 37 | 37 | 
| 38 // Mode to overwrite BinaryExpression values. |  | 
| 39 enum OverwriteMode { NO_OVERWRITE, OVERWRITE_LEFT, OVERWRITE_RIGHT }; |  | 
| 40 |  | 
| 41 enum InitState { CONST_INIT, NOT_CONST_INIT }; | 38 enum InitState { CONST_INIT, NOT_CONST_INIT }; | 
| 42 enum TypeofState { INSIDE_TYPEOF, NOT_INSIDE_TYPEOF }; | 39 enum TypeofState { INSIDE_TYPEOF, NOT_INSIDE_TYPEOF }; | 
| 43 | 40 | 
| 44 | 41 | 
| 45 // ------------------------------------------------------------------------- | 42 // ------------------------------------------------------------------------- | 
| 46 // Reference support | 43 // Reference support | 
| 47 | 44 | 
| 48 // A reference is a C++ stack-allocated object that keeps an ECMA | 45 // A reference is a C++ stack-allocated object that keeps an ECMA | 
| 49 // reference on the execution stack while in scope. For variables | 46 // reference on the execution stack while in scope. For variables | 
| 50 // the reference is empty, indicating that it isn't necessary to | 47 // the reference is empty, indicating that it isn't necessary to | 
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 285   // Special code for typeof expressions: Unfortunately, we must | 282   // Special code for typeof expressions: Unfortunately, we must | 
| 286   // be careful when loading the expression in 'typeof' | 283   // be careful when loading the expression in 'typeof' | 
| 287   // expressions. We are not allowed to throw reference errors for | 284   // expressions. We are not allowed to throw reference errors for | 
| 288   // non-existing properties of the global object, so we must make it | 285   // non-existing properties of the global object, so we must make it | 
| 289   // look like an explicit property access, instead of an access | 286   // look like an explicit property access, instead of an access | 
| 290   // through the context chain. | 287   // through the context chain. | 
| 291   void LoadTypeofExpression(Expression* x); | 288   void LoadTypeofExpression(Expression* x); | 
| 292 | 289 | 
| 293   void ToBoolean(JumpTarget* true_target, JumpTarget* false_target); | 290   void ToBoolean(JumpTarget* true_target, JumpTarget* false_target); | 
| 294 | 291 | 
| 295   void GenericBinaryOperation(Token::Value op); | 292   void GenericBinaryOperation(Token::Value op, OverwriteMode overwrite_mode); | 
| 296   void Comparison(Condition cc, bool strict = false); | 293   void Comparison(Condition cc, bool strict = false); | 
| 297 | 294 | 
| 298   void SmiOperation(Token::Value op, Handle<Object> value, bool reversed); | 295   void SmiOperation(Token::Value op, | 
|  | 296                     Handle<Object> value, | 
|  | 297                     bool reversed, | 
|  | 298                     OverwriteMode mode); | 
| 299 | 299 | 
| 300   void CallWithArguments(ZoneList<Expression*>* arguments, int position); | 300   void CallWithArguments(ZoneList<Expression*>* arguments, int position); | 
| 301 | 301 | 
| 302   // Control flow | 302   // Control flow | 
| 303   void Branch(bool if_true, JumpTarget* target); | 303   void Branch(bool if_true, JumpTarget* target); | 
| 304   void CheckStack(); | 304   void CheckStack(); | 
| 305 | 305 | 
| 306   bool CheckForInlineRuntimeCall(CallRuntime* node); | 306   bool CheckForInlineRuntimeCall(CallRuntime* node); | 
| 307   Handle<JSFunction> BuildBoilerplate(FunctionLiteral* node); | 307   Handle<JSFunction> BuildBoilerplate(FunctionLiteral* node); | 
| 308   void ProcessDeclarations(ZoneList<Declaration*>* declarations); | 308   void ProcessDeclarations(ZoneList<Declaration*>* declarations); | 
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 437   friend class JumpTarget; | 437   friend class JumpTarget; | 
| 438   friend class Reference; | 438   friend class Reference; | 
| 439 | 439 | 
| 440   DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 440   DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 
| 441 }; | 441 }; | 
| 442 | 442 | 
| 443 | 443 | 
| 444 } }  // namespace v8::internal | 444 } }  // namespace v8::internal | 
| 445 | 445 | 
| 446 #endif  // V8_CODEGEN_ARM_H_ | 446 #endif  // V8_CODEGEN_ARM_H_ | 
| OLD | NEW | 
|---|