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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 V(illegal_break_symbol, "illegal_break") \ | 196 V(illegal_break_symbol, "illegal_break") \ |
197 V(illegal_continue_symbol, "illegal_continue") \ | 197 V(illegal_continue_symbol, "illegal_continue") \ |
198 V(unknown_label_symbol, "unknown_label") \ | 198 V(unknown_label_symbol, "unknown_label") \ |
199 V(redeclaration_symbol, "redeclaration") \ | 199 V(redeclaration_symbol, "redeclaration") \ |
200 V(failure_symbol, "<failure>") \ | 200 V(failure_symbol, "<failure>") \ |
201 V(space_symbol, " ") \ | 201 V(space_symbol, " ") \ |
202 V(exec_symbol, "exec") \ | 202 V(exec_symbol, "exec") \ |
203 V(zero_symbol, "0") \ | 203 V(zero_symbol, "0") \ |
204 V(global_eval_symbol, "GlobalEval") \ | 204 V(global_eval_symbol, "GlobalEval") \ |
205 V(identity_hash_symbol, "v8::IdentityHash") \ | 205 V(identity_hash_symbol, "v8::IdentityHash") \ |
206 V(closure_symbol, "(closure)") | 206 V(closure_symbol, "(closure)") \ |
| 207 V(use_strict, "use strict") |
207 | 208 |
208 | 209 |
209 // Forward declarations. | 210 // Forward declarations. |
210 class GCTracer; | 211 class GCTracer; |
211 class HeapStats; | 212 class HeapStats; |
212 class WeakObjectRetainer; | 213 class WeakObjectRetainer; |
213 | 214 |
214 | 215 |
215 typedef String* (*ExternalStringTableUpdaterCallback)(Object** pointer); | 216 typedef String* (*ExternalStringTableUpdaterCallback)(Object** pointer); |
216 | 217 |
(...skipping 1906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2123 // Return whether this object should be retained. If NULL is returned the | 2124 // Return whether this object should be retained. If NULL is returned the |
2124 // object has no references. Otherwise the address of the retained object | 2125 // object has no references. Otherwise the address of the retained object |
2125 // should be returned as in some GC situations the object has been moved. | 2126 // should be returned as in some GC situations the object has been moved. |
2126 virtual Object* RetainAs(Object* object) = 0; | 2127 virtual Object* RetainAs(Object* object) = 0; |
2127 }; | 2128 }; |
2128 | 2129 |
2129 | 2130 |
2130 } } // namespace v8::internal | 2131 } } // namespace v8::internal |
2131 | 2132 |
2132 #endif // V8_HEAP_H_ | 2133 #endif // V8_HEAP_H_ |
OLD | NEW |