| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 21 matching lines...) Expand all Loading... |
| 32 #include "ic-inl.h" | 32 #include "ic-inl.h" |
| 33 | 33 |
| 34 namespace v8 { | 34 namespace v8 { |
| 35 namespace internal { | 35 namespace internal { |
| 36 | 36 |
| 37 // Forward declarations | 37 // Forward declarations |
| 38 class CompilationInfo; | 38 class CompilationInfo; |
| 39 | 39 |
| 40 enum TypeofState { INSIDE_TYPEOF, NOT_INSIDE_TYPEOF }; | 40 enum TypeofState { INSIDE_TYPEOF, NOT_INSIDE_TYPEOF }; |
| 41 | 41 |
| 42 static const int kSizeOfFullCodegenStrictModePrologue = 14; | |
| 43 static const int kSizeOfOptimizedStrictModePrologue = 14; | |
| 44 | |
| 45 // ------------------------------------------------------------------------- | 42 // ------------------------------------------------------------------------- |
| 46 // CodeGenerator | 43 // CodeGenerator |
| 47 | 44 |
| 48 class CodeGenerator: public AstVisitor { | 45 class CodeGenerator: public AstVisitor { |
| 49 public: | 46 public: |
| 50 static bool MakeCode(CompilationInfo* info); | 47 static bool MakeCode(CompilationInfo* info); |
| 51 | 48 |
| 52 // Printing of AST, etc. as requested by flags. | 49 // Printing of AST, etc. as requested by flags. |
| 53 static void MakeCodePrologue(CompilationInfo* info); | 50 static void MakeCodePrologue(CompilationInfo* info); |
| 54 | 51 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 Register temp1, | 93 Register temp1, |
| 97 Register temp2); | 94 Register temp2); |
| 98 | 95 |
| 99 private: | 96 private: |
| 100 DISALLOW_COPY_AND_ASSIGN(MathExpGenerator); | 97 DISALLOW_COPY_AND_ASSIGN(MathExpGenerator); |
| 101 }; | 98 }; |
| 102 | 99 |
| 103 } } // namespace v8::internal | 100 } } // namespace v8::internal |
| 104 | 101 |
| 105 #endif // V8_X64_CODEGEN_X64_H_ | 102 #endif // V8_X64_CODEGEN_X64_H_ |
| OLD | NEW |