| 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 1415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1722 }; | 1722 }; |
| 1723 | 1723 |
| 1724 static const StringTypeTable string_type_table[]; | 1724 static const StringTypeTable string_type_table[]; |
| 1725 static const ConstantStringTable constant_string_table[]; | 1725 static const ConstantStringTable constant_string_table[]; |
| 1726 static const StructTable struct_table[]; | 1726 static const StructTable struct_table[]; |
| 1727 | 1727 |
| 1728 // The special hidden string which is an empty string, but does not match | 1728 // The special hidden string which is an empty string, but does not match |
| 1729 // any string when looked up in properties. | 1729 // any string when looked up in properties. |
| 1730 String* hidden_string_; | 1730 String* hidden_string_; |
| 1731 | 1731 |
| 1732 void AddPrivateGlobalSymbols(Handle<Object> private_intern_table); |
| 1733 |
| 1732 // GC callback function, called before and after mark-compact GC. | 1734 // GC callback function, called before and after mark-compact GC. |
| 1733 // Allocations in the callback function are disallowed. | 1735 // Allocations in the callback function are disallowed. |
| 1734 struct GCPrologueCallbackPair { | 1736 struct GCPrologueCallbackPair { |
| 1735 GCPrologueCallbackPair(v8::Isolate::GCPrologueCallback callback, | 1737 GCPrologueCallbackPair(v8::Isolate::GCPrologueCallback callback, |
| 1736 GCType gc_type, bool pass_isolate) | 1738 GCType gc_type, bool pass_isolate) |
| 1737 : callback(callback), gc_type(gc_type), pass_isolate_(pass_isolate) {} | 1739 : callback(callback), gc_type(gc_type), pass_isolate_(pass_isolate) {} |
| 1738 bool operator==(const GCPrologueCallbackPair& pair) const { | 1740 bool operator==(const GCPrologueCallbackPair& pair) const { |
| 1739 return pair.callback == callback; | 1741 return pair.callback == callback; |
| 1740 } | 1742 } |
| 1741 v8::Isolate::GCPrologueCallback callback; | 1743 v8::Isolate::GCPrologueCallback callback; |
| (...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2649 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2651 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 2650 | 2652 |
| 2651 private: | 2653 private: |
| 2652 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2654 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2653 }; | 2655 }; |
| 2654 #endif // DEBUG | 2656 #endif // DEBUG |
| 2655 } | 2657 } |
| 2656 } // namespace v8::internal | 2658 } // namespace v8::internal |
| 2657 | 2659 |
| 2658 #endif // V8_HEAP_HEAP_H_ | 2660 #endif // V8_HEAP_HEAP_H_ |
| OLD | NEW |