| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 // ------------------------------------------------------------------------- | 187 // ------------------------------------------------------------------------- |
| 188 // Arguments allocation mode | 188 // Arguments allocation mode |
| 189 | 189 |
| 190 enum ArgumentsAllocationMode { | 190 enum ArgumentsAllocationMode { |
| 191 NO_ARGUMENTS_ALLOCATION, | 191 NO_ARGUMENTS_ALLOCATION, |
| 192 EAGER_ARGUMENTS_ALLOCATION, | 192 EAGER_ARGUMENTS_ALLOCATION, |
| 193 LAZY_ARGUMENTS_ALLOCATION | 193 LAZY_ARGUMENTS_ALLOCATION |
| 194 }; | 194 }; |
| 195 | 195 |
| 196 | 196 |
| 197 // Different nop operations are used by the code generator to detect certain | |
| 198 // states of the generated code. | |
| 199 enum NopMarkerTypes { | |
| 200 NON_MARKING_NOP = 0, | |
| 201 PROPERTY_ACCESS_INLINED | |
| 202 }; | |
| 203 | |
| 204 | |
| 205 // ------------------------------------------------------------------------- | 197 // ------------------------------------------------------------------------- |
| 206 // CodeGenerator | 198 // CodeGenerator |
| 207 | 199 |
| 208 class CodeGenerator: public AstVisitor { | 200 class CodeGenerator: public AstVisitor { |
| 209 public: | 201 public: |
| 210 static bool MakeCode(CompilationInfo* info); | 202 static bool MakeCode(CompilationInfo* info); |
| 211 | 203 |
| 212 // Printing of AST, etc. as requested by flags. | 204 // Printing of AST, etc. as requested by flags. |
| 213 static void MakeCodePrologue(CompilationInfo* info); | 205 static void MakeCodePrologue(CompilationInfo* info); |
| 214 | 206 |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 friend class FullCodeGenerator; | 577 friend class FullCodeGenerator; |
| 586 friend class FullCodeGenSyntaxChecker; | 578 friend class FullCodeGenSyntaxChecker; |
| 587 | 579 |
| 588 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 580 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
| 589 }; | 581 }; |
| 590 | 582 |
| 591 | 583 |
| 592 } } // namespace v8::internal | 584 } } // namespace v8::internal |
| 593 | 585 |
| 594 #endif // V8_ARM_CODEGEN_ARM_H_ | 586 #endif // V8_ARM_CODEGEN_ARM_H_ |
| OLD | NEW |