| 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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 V(undefined_string, "undefined") \ | 264 V(undefined_string, "undefined") \ |
| 265 V(value_of_string, "valueOf") \ | 265 V(value_of_string, "valueOf") \ |
| 266 V(stack_string, "stack") \ | 266 V(stack_string, "stack") \ |
| 267 V(toJSON_string, "toJSON") \ | 267 V(toJSON_string, "toJSON") \ |
| 268 V(KeyedLoadMonomorphic_string, "KeyedLoadMonomorphic") \ | 268 V(KeyedLoadMonomorphic_string, "KeyedLoadMonomorphic") \ |
| 269 V(KeyedStoreMonomorphic_string, "KeyedStoreMonomorphic") \ | 269 V(KeyedStoreMonomorphic_string, "KeyedStoreMonomorphic") \ |
| 270 V(stack_overflow_string, "$stackOverflowBoilerplate") \ | 270 V(stack_overflow_string, "$stackOverflowBoilerplate") \ |
| 271 V(illegal_access_string, "illegal access") \ | 271 V(illegal_access_string, "illegal access") \ |
| 272 V(cell_value_string, "%cell_value") \ | 272 V(cell_value_string, "%cell_value") \ |
| 273 V(illegal_argument_string, "illegal argument") \ | 273 V(illegal_argument_string, "illegal argument") \ |
| 274 V(identity_hash_string, "v8::IdentityHash") \ | |
| 275 V(closure_string, "(closure)") \ | 274 V(closure_string, "(closure)") \ |
| 276 V(dot_string, ".") \ | 275 V(dot_string, ".") \ |
| 277 V(compare_ic_string, "==") \ | 276 V(compare_ic_string, "==") \ |
| 278 V(strict_compare_ic_string, "===") \ | 277 V(strict_compare_ic_string, "===") \ |
| 279 V(infinity_string, "Infinity") \ | 278 V(infinity_string, "Infinity") \ |
| 280 V(minus_infinity_string, "-Infinity") \ | 279 V(minus_infinity_string, "-Infinity") \ |
| 281 V(query_colon_string, "(?:)") \ | 280 V(query_colon_string, "(?:)") \ |
| 282 V(Generator_string, "Generator") \ | 281 V(Generator_string, "Generator") \ |
| 283 V(throw_string, "throw") \ | 282 V(throw_string, "throw") \ |
| 284 V(done_string, "done") \ | 283 V(done_string, "done") \ |
| 285 V(value_string, "value") \ | 284 V(value_string, "value") \ |
| 286 V(next_string, "next") \ | 285 V(next_string, "next") \ |
| 287 V(byte_length_string, "byteLength") \ | 286 V(byte_length_string, "byteLength") \ |
| 288 V(byte_offset_string, "byteOffset") \ | 287 V(byte_offset_string, "byteOffset") \ |
| 289 V(minus_zero_string, "-0") \ | 288 V(minus_zero_string, "-0") \ |
| 290 V(Array_string, "Array") \ | 289 V(Array_string, "Array") \ |
| 291 V(Error_string, "Error") \ | 290 V(Error_string, "Error") \ |
| 292 V(RegExp_string, "RegExp") | 291 V(RegExp_string, "RegExp") |
| 293 | 292 |
| 294 #define PRIVATE_SYMBOL_LIST(V) \ | 293 #define PRIVATE_SYMBOL_LIST(V) \ |
| 295 V(nonextensible_symbol) \ | 294 V(nonextensible_symbol) \ |
| 296 V(sealed_symbol) \ | 295 V(sealed_symbol) \ |
| 296 V(hash_code_symbol) \ |
| 297 V(frozen_symbol) \ | 297 V(frozen_symbol) \ |
| 298 V(nonexistent_symbol) \ | 298 V(nonexistent_symbol) \ |
| 299 V(elements_transition_symbol) \ | 299 V(elements_transition_symbol) \ |
| 300 V(observed_symbol) \ | 300 V(observed_symbol) \ |
| 301 V(uninitialized_symbol) \ | 301 V(uninitialized_symbol) \ |
| 302 V(megamorphic_symbol) \ | 302 V(megamorphic_symbol) \ |
| 303 V(premonomorphic_symbol) \ | 303 V(premonomorphic_symbol) \ |
| 304 V(stack_trace_symbol) \ | 304 V(stack_trace_symbol) \ |
| 305 V(detailed_stack_trace_symbol) \ | 305 V(detailed_stack_trace_symbol) \ |
| 306 V(normal_ic_symbol) \ | 306 V(normal_ic_symbol) \ |
| (...skipping 1427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1734 }; | 1734 }; |
| 1735 | 1735 |
| 1736 static const StringTypeTable string_type_table[]; | 1736 static const StringTypeTable string_type_table[]; |
| 1737 static const ConstantStringTable constant_string_table[]; | 1737 static const ConstantStringTable constant_string_table[]; |
| 1738 static const StructTable struct_table[]; | 1738 static const StructTable struct_table[]; |
| 1739 | 1739 |
| 1740 // The special hidden string which is an empty string, but does not match | 1740 // The special hidden string which is an empty string, but does not match |
| 1741 // any string when looked up in properties. | 1741 // any string when looked up in properties. |
| 1742 String* hidden_string_; | 1742 String* hidden_string_; |
| 1743 | 1743 |
| 1744 void AddPrivateGlobalSymbols(Handle<Object> private_intern_table); |
| 1745 |
| 1744 // GC callback function, called before and after mark-compact GC. | 1746 // GC callback function, called before and after mark-compact GC. |
| 1745 // Allocations in the callback function are disallowed. | 1747 // Allocations in the callback function are disallowed. |
| 1746 struct GCPrologueCallbackPair { | 1748 struct GCPrologueCallbackPair { |
| 1747 GCPrologueCallbackPair(v8::Isolate::GCPrologueCallback callback, | 1749 GCPrologueCallbackPair(v8::Isolate::GCPrologueCallback callback, |
| 1748 GCType gc_type, bool pass_isolate) | 1750 GCType gc_type, bool pass_isolate) |
| 1749 : callback(callback), gc_type(gc_type), pass_isolate_(pass_isolate) {} | 1751 : callback(callback), gc_type(gc_type), pass_isolate_(pass_isolate) {} |
| 1750 bool operator==(const GCPrologueCallbackPair& pair) const { | 1752 bool operator==(const GCPrologueCallbackPair& pair) const { |
| 1751 return pair.callback == callback; | 1753 return pair.callback == callback; |
| 1752 } | 1754 } |
| 1753 v8::Isolate::GCPrologueCallback callback; | 1755 v8::Isolate::GCPrologueCallback callback; |
| (...skipping 905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2659 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2661 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 2660 | 2662 |
| 2661 private: | 2663 private: |
| 2662 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2664 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2663 }; | 2665 }; |
| 2664 #endif // DEBUG | 2666 #endif // DEBUG |
| 2665 } | 2667 } |
| 2666 } // namespace v8::internal | 2668 } // namespace v8::internal |
| 2667 | 2669 |
| 2668 #endif // V8_HEAP_HEAP_H_ | 2670 #endif // V8_HEAP_HEAP_H_ |
| OLD | NEW |