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; |
42 | 44 |
43 // ------------------------------------------------------------------------- | 45 // ------------------------------------------------------------------------- |
44 // CodeGenerator | 46 // CodeGenerator |
45 | 47 |
46 class CodeGenerator: public AstVisitor { | 48 class CodeGenerator: public AstVisitor { |
47 public: | 49 public: |
48 static bool MakeCode(CompilationInfo* info); | 50 static bool MakeCode(CompilationInfo* info); |
49 | 51 |
50 // Printing of AST, etc. as requested by flags. | 52 // Printing of AST, etc. as requested by flags. |
51 static void MakeCodePrologue(CompilationInfo* info); | 53 static void MakeCodePrologue(CompilationInfo* info); |
(...skipping 28 matching lines...) Expand all Loading... |
80 Register result, | 82 Register result, |
81 Label* call_runtime); | 83 Label* call_runtime); |
82 | 84 |
83 private: | 85 private: |
84 DISALLOW_COPY_AND_ASSIGN(StringCharLoadGenerator); | 86 DISALLOW_COPY_AND_ASSIGN(StringCharLoadGenerator); |
85 }; | 87 }; |
86 | 88 |
87 } } // namespace v8::internal | 89 } } // namespace v8::internal |
88 | 90 |
89 #endif // V8_X64_CODEGEN_X64_H_ | 91 #endif // V8_X64_CODEGEN_X64_H_ |
OLD | NEW |