| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 V(Smi, construct_stub_deopt_pc_offset, ConstructStubDeoptPCOffset) \ | 194 V(Smi, construct_stub_deopt_pc_offset, ConstructStubDeoptPCOffset) \ |
| 195 V(Smi, getter_stub_deopt_pc_offset, GetterStubDeoptPCOffset) \ | 195 V(Smi, getter_stub_deopt_pc_offset, GetterStubDeoptPCOffset) \ |
| 196 V(Smi, setter_stub_deopt_pc_offset, SetterStubDeoptPCOffset) \ | 196 V(Smi, setter_stub_deopt_pc_offset, SetterStubDeoptPCOffset) \ |
| 197 V(Cell, undefined_cell, UndefineCell) \ | 197 V(Cell, undefined_cell, UndefineCell) \ |
| 198 V(JSObject, observation_state, ObservationState) \ | 198 V(JSObject, observation_state, ObservationState) \ |
| 199 V(Map, external_map, ExternalMap) \ | 199 V(Map, external_map, ExternalMap) \ |
| 200 V(Symbol, frozen_symbol, FrozenSymbol) \ | 200 V(Symbol, frozen_symbol, FrozenSymbol) \ |
| 201 V(Symbol, elements_transition_symbol, ElementsTransitionSymbol) \ | 201 V(Symbol, elements_transition_symbol, ElementsTransitionSymbol) \ |
| 202 V(SeededNumberDictionary, empty_slow_element_dictionary, \ | 202 V(SeededNumberDictionary, empty_slow_element_dictionary, \ |
| 203 EmptySlowElementDictionary) \ | 203 EmptySlowElementDictionary) \ |
| 204 V(Symbol, observed_symbol, ObservedSymbol) | 204 V(Symbol, observed_symbol, ObservedSymbol) \ |
| 205 V(FixedArray, materialized_objects, MaterializedObjects) |
| 205 | 206 |
| 206 #define ROOT_LIST(V) \ | 207 #define ROOT_LIST(V) \ |
| 207 STRONG_ROOT_LIST(V) \ | 208 STRONG_ROOT_LIST(V) \ |
| 208 V(StringTable, string_table, StringTable) | 209 V(StringTable, string_table, StringTable) |
| 209 | 210 |
| 210 #define INTERNALIZED_STRING_LIST(V) \ | 211 #define INTERNALIZED_STRING_LIST(V) \ |
| 211 V(Array_string, "Array") \ | 212 V(Array_string, "Array") \ |
| 212 V(Object_string, "Object") \ | 213 V(Object_string, "Object") \ |
| 213 V(proto_string, "__proto__") \ | 214 V(proto_string, "__proto__") \ |
| 214 V(arguments_string, "arguments") \ | 215 V(arguments_string, "arguments") \ |
| (...skipping 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1360 } | 1361 } |
| 1361 | 1362 |
| 1362 void public_set_empty_script(Script* script) { | 1363 void public_set_empty_script(Script* script) { |
| 1363 roots_[kEmptyScriptRootIndex] = script; | 1364 roots_[kEmptyScriptRootIndex] = script; |
| 1364 } | 1365 } |
| 1365 | 1366 |
| 1366 void public_set_store_buffer_top(Address* top) { | 1367 void public_set_store_buffer_top(Address* top) { |
| 1367 roots_[kStoreBufferTopRootIndex] = reinterpret_cast<Smi*>(top); | 1368 roots_[kStoreBufferTopRootIndex] = reinterpret_cast<Smi*>(top); |
| 1368 } | 1369 } |
| 1369 | 1370 |
| 1371 void public_set_materialized_objects(FixedArray* objects) { |
| 1372 roots_[kMaterializedObjectsRootIndex] = objects; |
| 1373 } |
| 1374 |
| 1370 // Generated code can embed this address to get access to the roots. | 1375 // Generated code can embed this address to get access to the roots. |
| 1371 Object** roots_array_start() { return roots_; } | 1376 Object** roots_array_start() { return roots_; } |
| 1372 | 1377 |
| 1373 Address* store_buffer_top_address() { | 1378 Address* store_buffer_top_address() { |
| 1374 return reinterpret_cast<Address*>(&roots_[kStoreBufferTopRootIndex]); | 1379 return reinterpret_cast<Address*>(&roots_[kStoreBufferTopRootIndex]); |
| 1375 } | 1380 } |
| 1376 | 1381 |
| 1377 // Get address of native contexts list for serialization support. | 1382 // Get address of native contexts list for serialization support. |
| 1378 Object** native_contexts_list_address() { | 1383 Object** native_contexts_list_address() { |
| 1379 return &native_contexts_list_; | 1384 return &native_contexts_list_; |
| (...skipping 1652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3032 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 3037 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 3033 | 3038 |
| 3034 private: | 3039 private: |
| 3035 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3040 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 3036 }; | 3041 }; |
| 3037 #endif // DEBUG | 3042 #endif // DEBUG |
| 3038 | 3043 |
| 3039 } } // namespace v8::internal | 3044 } } // namespace v8::internal |
| 3040 | 3045 |
| 3041 #endif // V8_HEAP_H_ | 3046 #endif // V8_HEAP_H_ |
| OLD | NEW |