| 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) | |
| 206 | 205 |
| 207 #define ROOT_LIST(V) \ | 206 #define ROOT_LIST(V) \ |
| 208 STRONG_ROOT_LIST(V) \ | 207 STRONG_ROOT_LIST(V) \ |
| 209 V(StringTable, string_table, StringTable) | 208 V(StringTable, string_table, StringTable) |
| 210 | 209 |
| 211 #define INTERNALIZED_STRING_LIST(V) \ | 210 #define INTERNALIZED_STRING_LIST(V) \ |
| 212 V(Array_string, "Array") \ | 211 V(Array_string, "Array") \ |
| 213 V(Object_string, "Object") \ | 212 V(Object_string, "Object") \ |
| 214 V(proto_string, "__proto__") \ | 213 V(proto_string, "__proto__") \ |
| 215 V(arguments_string, "arguments") \ | 214 V(arguments_string, "arguments") \ |
| (...skipping 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1361 } | 1360 } |
| 1362 | 1361 |
| 1363 void public_set_empty_script(Script* script) { | 1362 void public_set_empty_script(Script* script) { |
| 1364 roots_[kEmptyScriptRootIndex] = script; | 1363 roots_[kEmptyScriptRootIndex] = script; |
| 1365 } | 1364 } |
| 1366 | 1365 |
| 1367 void public_set_store_buffer_top(Address* top) { | 1366 void public_set_store_buffer_top(Address* top) { |
| 1368 roots_[kStoreBufferTopRootIndex] = reinterpret_cast<Smi*>(top); | 1367 roots_[kStoreBufferTopRootIndex] = reinterpret_cast<Smi*>(top); |
| 1369 } | 1368 } |
| 1370 | 1369 |
| 1371 void public_set_materialized_objects(FixedArray* objects) { | |
| 1372 roots_[kMaterializedObjectsRootIndex] = objects; | |
| 1373 } | |
| 1374 | |
| 1375 // Generated code can embed this address to get access to the roots. | 1370 // Generated code can embed this address to get access to the roots. |
| 1376 Object** roots_array_start() { return roots_; } | 1371 Object** roots_array_start() { return roots_; } |
| 1377 | 1372 |
| 1378 Address* store_buffer_top_address() { | 1373 Address* store_buffer_top_address() { |
| 1379 return reinterpret_cast<Address*>(&roots_[kStoreBufferTopRootIndex]); | 1374 return reinterpret_cast<Address*>(&roots_[kStoreBufferTopRootIndex]); |
| 1380 } | 1375 } |
| 1381 | 1376 |
| 1382 // Get address of native contexts list for serialization support. | 1377 // Get address of native contexts list for serialization support. |
| 1383 Object** native_contexts_list_address() { | 1378 Object** native_contexts_list_address() { |
| 1384 return &native_contexts_list_; | 1379 return &native_contexts_list_; |
| (...skipping 1658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3043 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 3038 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 3044 | 3039 |
| 3045 private: | 3040 private: |
| 3046 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3041 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 3047 }; | 3042 }; |
| 3048 #endif // DEBUG | 3043 #endif // DEBUG |
| 3049 | 3044 |
| 3050 } } // namespace v8::internal | 3045 } } // namespace v8::internal |
| 3051 | 3046 |
| 3052 #endif // V8_HEAP_H_ | 3047 #endif // V8_HEAP_H_ |
| OLD | NEW |