| 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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 | 211 |
| 212 #define DEF_VISIT(type) \ | 212 #define DEF_VISIT(type) \ |
| 213 void Visit##type(type* node); | 213 void Visit##type(type* node); |
| 214 NODE_LIST(DEF_VISIT) | 214 NODE_LIST(DEF_VISIT) |
| 215 #undef DEF_VISIT | 215 #undef DEF_VISIT |
| 216 | 216 |
| 217 // Visit a statement and then spill the virtual frame if control flow can | 217 // Visit a statement and then spill the virtual frame if control flow can |
| 218 // reach the end of the statement (ie, it does not exit via break, | 218 // reach the end of the statement (ie, it does not exit via break, |
| 219 // continue, return, or throw). This function is used temporarily while | 219 // continue, return, or throw). This function is used temporarily while |
| 220 // the code generator is being transformed. | 220 // the code generator is being transformed. |
| 221 void VisitAndSpill(Statement* statement); | 221 inline void VisitAndSpill(Statement* statement); |
| 222 | 222 |
| 223 // Visit a list of statements and then spill the virtual frame if control | 223 // Visit a list of statements and then spill the virtual frame if control |
| 224 // flow can reach the end of the list. | 224 // flow can reach the end of the list. |
| 225 void VisitStatementsAndSpill(ZoneList<Statement*>* statements); | 225 inline void VisitStatementsAndSpill(ZoneList<Statement*>* statements); |
| 226 | 226 |
| 227 // Main code generation function | 227 // Main code generation function |
| 228 void GenCode(FunctionLiteral* fun); | 228 void GenCode(FunctionLiteral* fun); |
| 229 | 229 |
| 230 // The following are used by class Reference. | 230 // The following are used by class Reference. |
| 231 void LoadReference(Reference* ref); | 231 void LoadReference(Reference* ref); |
| 232 void UnloadReference(Reference* ref); | 232 void UnloadReference(Reference* ref); |
| 233 | 233 |
| 234 MemOperand ContextOperand(Register context, int index) const { | 234 MemOperand ContextOperand(Register context, int index) const { |
| 235 return MemOperand(context, Context::SlotOffset(index)); | 235 return MemOperand(context, Context::SlotOffset(index)); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 252 JumpTarget* true_target, | 252 JumpTarget* true_target, |
| 253 JumpTarget* false_target, | 253 JumpTarget* false_target, |
| 254 bool force_cc); | 254 bool force_cc); |
| 255 void Load(Expression* x, TypeofState typeof_state = NOT_INSIDE_TYPEOF); | 255 void Load(Expression* x, TypeofState typeof_state = NOT_INSIDE_TYPEOF); |
| 256 void LoadGlobal(); | 256 void LoadGlobal(); |
| 257 void LoadGlobalReceiver(Register scratch); | 257 void LoadGlobalReceiver(Register scratch); |
| 258 | 258 |
| 259 // Generate code to push the value of an expression on top of the frame | 259 // Generate code to push the value of an expression on top of the frame |
| 260 // and then spill the frame fully to memory. This function is used | 260 // and then spill the frame fully to memory. This function is used |
| 261 // temporarily while the code generator is being transformed. | 261 // temporarily while the code generator is being transformed. |
| 262 void LoadAndSpill(Expression* expression, | 262 inline void LoadAndSpill(Expression* expression, |
| 263 TypeofState typeof_state = NOT_INSIDE_TYPEOF); | 263 TypeofState typeof_state = NOT_INSIDE_TYPEOF); |
| 264 | 264 |
| 265 // Call LoadCondition and then spill the virtual frame unless control flow | 265 // Call LoadCondition and then spill the virtual frame unless control flow |
| 266 // cannot reach the end of the expression (ie, by emitting only | 266 // cannot reach the end of the expression (ie, by emitting only |
| 267 // unconditional jumps to the control targets). | 267 // unconditional jumps to the control targets). |
| 268 void LoadConditionAndSpill(Expression* expression, | 268 void LoadConditionAndSpill(Expression* expression, |
| 269 TypeofState typeof_state, | 269 TypeofState typeof_state, |
| 270 JumpTarget* true_target, | 270 JumpTarget* true_target, |
| 271 JumpTarget* false_target, | 271 JumpTarget* false_target, |
| 272 bool force_control); | 272 bool force_control); |
| 273 | 273 |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 friend class JumpTarget; | 449 friend class JumpTarget; |
| 450 friend class Reference; | 450 friend class Reference; |
| 451 | 451 |
| 452 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 452 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
| 453 }; | 453 }; |
| 454 | 454 |
| 455 | 455 |
| 456 } } // namespace v8::internal | 456 } } // namespace v8::internal |
| 457 | 457 |
| 458 #endif // V8_ARM_CODEGEN_ARM_H_ | 458 #endif // V8_ARM_CODEGEN_ARM_H_ |
| OLD | NEW |