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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 static Major GetMajorKey(Code* code_stub) { | 132 static Major GetMajorKey(Code* code_stub) { |
133 return static_cast<Major>(code_stub->major_key()); | 133 return static_cast<Major>(code_stub->major_key()); |
134 } | 134 } |
135 | 135 |
136 static const char* MajorName(Major major_key, bool allow_unknown_keys); | 136 static const char* MajorName(Major major_key, bool allow_unknown_keys); |
137 | 137 |
138 virtual ~CodeStub() {} | 138 virtual ~CodeStub() {} |
139 | 139 |
140 bool CompilingCallsToThisStubIsGCSafe() { | 140 bool CompilingCallsToThisStubIsGCSafe() { |
141 bool is_pregenerated = IsPregenerated(); | 141 bool is_pregenerated = IsPregenerated(); |
142 #ifdef DEBUG | |
143 Code* code = NULL; | 142 Code* code = NULL; |
144 ASSERT(!is_pregenerated || FindCodeInCache(&code)); | 143 CHECK(!is_pregenerated || FindCodeInCache(&code)); |
145 #endif | |
146 return is_pregenerated; | 144 return is_pregenerated; |
147 } | 145 } |
148 | 146 |
149 // See comment above, where Instanceof is defined. | 147 // See comment above, where Instanceof is defined. |
150 virtual bool IsPregenerated() { return false; } | 148 virtual bool IsPregenerated() { return false; } |
151 | 149 |
152 static void GenerateStubsAheadOfTime(); | 150 static void GenerateStubsAheadOfTime(); |
153 static void GenerateFPStubs(); | 151 static void GenerateFPStubs(); |
154 | 152 |
155 // Some stubs put untagged junk on the stack that cannot be scanned by the | 153 // Some stubs put untagged junk on the stack that cannot be scanned by the |
(...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1006 bool result); | 1004 bool result); |
1007 void GenerateTypeTransition(MacroAssembler* masm); | 1005 void GenerateTypeTransition(MacroAssembler* masm); |
1008 | 1006 |
1009 Register tos_; | 1007 Register tos_; |
1010 Types types_; | 1008 Types types_; |
1011 }; | 1009 }; |
1012 | 1010 |
1013 } } // namespace v8::internal | 1011 } } // namespace v8::internal |
1014 | 1012 |
1015 #endif // V8_CODE_STUBS_H_ | 1013 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |