| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_HEAP_HEAP_H_ | 5 #ifndef V8_HEAP_HEAP_H_ |
| 6 #define V8_HEAP_HEAP_H_ | 6 #define V8_HEAP_HEAP_H_ |
| 7 | 7 |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1239 | 1239 |
| 1240 #define SYMBOL_ACCESSOR(name) inline Symbol* name(); | 1240 #define SYMBOL_ACCESSOR(name) inline Symbol* name(); |
| 1241 PRIVATE_SYMBOL_LIST(SYMBOL_ACCESSOR) | 1241 PRIVATE_SYMBOL_LIST(SYMBOL_ACCESSOR) |
| 1242 #undef SYMBOL_ACCESSOR | 1242 #undef SYMBOL_ACCESSOR |
| 1243 | 1243 |
| 1244 #define SYMBOL_ACCESSOR(name, varname, description) inline Symbol* name(); | 1244 #define SYMBOL_ACCESSOR(name, varname, description) inline Symbol* name(); |
| 1245 PUBLIC_SYMBOL_LIST(SYMBOL_ACCESSOR) | 1245 PUBLIC_SYMBOL_LIST(SYMBOL_ACCESSOR) |
| 1246 #undef SYMBOL_ACCESSOR | 1246 #undef SYMBOL_ACCESSOR |
| 1247 | 1247 |
| 1248 Object* root(RootListIndex index) { return roots_[index]; } | 1248 Object* root(RootListIndex index) { return roots_[index]; } |
| 1249 Handle<Object> root_handle(RootListIndex index) { |
| 1250 return Handle<Object>(&roots_[index]); |
| 1251 } |
| 1249 | 1252 |
| 1250 // Generated code can embed this address to get access to the roots. | 1253 // Generated code can embed this address to get access to the roots. |
| 1251 Object** roots_array_start() { return roots_; } | 1254 Object** roots_array_start() { return roots_; } |
| 1252 | 1255 |
| 1253 // Sets the stub_cache_ (only used when expanding the dictionary). | 1256 // Sets the stub_cache_ (only used when expanding the dictionary). |
| 1254 void public_set_code_stubs(UnseededNumberDictionary* value) { | 1257 void public_set_code_stubs(UnseededNumberDictionary* value) { |
| 1255 roots_[kCodeStubsRootIndex] = value; | 1258 roots_[kCodeStubsRootIndex] = value; |
| 1256 } | 1259 } |
| 1257 | 1260 |
| 1258 // Sets the non_monomorphic_cache_ (only used when expanding the dictionary). | 1261 // Sets the non_monomorphic_cache_ (only used when expanding the dictionary). |
| (...skipping 1509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2768 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2771 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 2769 | 2772 |
| 2770 private: | 2773 private: |
| 2771 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2774 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2772 }; | 2775 }; |
| 2773 #endif // DEBUG | 2776 #endif // DEBUG |
| 2774 } | 2777 } |
| 2775 } // namespace v8::internal | 2778 } // namespace v8::internal |
| 2776 | 2779 |
| 2777 #endif // V8_HEAP_HEAP_H_ | 2780 #endif // V8_HEAP_HEAP_H_ |
| OLD | NEW |