Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(789)

Side by Side Diff: src/heap.h

Issue 8352039: Cleanup ScopeInfo and SerializedScopeInfo. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Converted ScopeInfo accessors to CamelCase. Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« src/frames.cc ('K') | « src/gdb-jit.cc ('k') | src/heap.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 V(Oddball, false_value, FalseValue) \ 66 V(Oddball, false_value, FalseValue) \
67 V(Map, global_property_cell_map, GlobalPropertyCellMap) \ 67 V(Map, global_property_cell_map, GlobalPropertyCellMap) \
68 V(Map, shared_function_info_map, SharedFunctionInfoMap) \ 68 V(Map, shared_function_info_map, SharedFunctionInfoMap) \
69 V(Map, meta_map, MetaMap) \ 69 V(Map, meta_map, MetaMap) \
70 V(Map, ascii_symbol_map, AsciiSymbolMap) \ 70 V(Map, ascii_symbol_map, AsciiSymbolMap) \
71 V(Map, ascii_string_map, AsciiStringMap) \ 71 V(Map, ascii_string_map, AsciiStringMap) \
72 V(Map, heap_number_map, HeapNumberMap) \ 72 V(Map, heap_number_map, HeapNumberMap) \
73 V(Map, global_context_map, GlobalContextMap) \ 73 V(Map, global_context_map, GlobalContextMap) \
74 V(Map, fixed_array_map, FixedArrayMap) \ 74 V(Map, fixed_array_map, FixedArrayMap) \
75 V(Map, code_map, CodeMap) \ 75 V(Map, code_map, CodeMap) \
76 V(Map, serialized_scope_info_map, SerializedScopeInfoMap) \ 76 V(Map, scope_info_map, ScopeInfoMap) \
77 V(Map, fixed_cow_array_map, FixedCOWArrayMap) \ 77 V(Map, fixed_cow_array_map, FixedCOWArrayMap) \
78 V(Map, fixed_double_array_map, FixedDoubleArrayMap) \ 78 V(Map, fixed_double_array_map, FixedDoubleArrayMap) \
79 V(Object, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \ 79 V(Object, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \
80 V(Map, hash_table_map, HashTableMap) \ 80 V(Map, hash_table_map, HashTableMap) \
81 V(FixedArray, empty_fixed_array, EmptyFixedArray) \ 81 V(FixedArray, empty_fixed_array, EmptyFixedArray) \
82 V(ByteArray, empty_byte_array, EmptyByteArray) \ 82 V(ByteArray, empty_byte_array, EmptyByteArray) \
83 V(FixedDoubleArray, empty_fixed_double_array, EmptyFixedDoubleArray) \ 83 V(FixedDoubleArray, empty_fixed_double_array, EmptyFixedDoubleArray) \
84 V(String, empty_string, EmptyString) \ 84 V(String, empty_string, EmptyString) \
85 V(DescriptorArray, empty_descriptor_array, EmptyDescriptorArray) \ 85 V(DescriptorArray, empty_descriptor_array, EmptyDescriptorArray) \
86 V(Smi, stack_limit, StackLimit) \ 86 V(Smi, stack_limit, StackLimit) \
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 MUST_USE_RESULT MaybeObject* AllocatePartialMap(InstanceType instance_type, 540 MUST_USE_RESULT MaybeObject* AllocatePartialMap(InstanceType instance_type,
541 int instance_size); 541 int instance_size);
542 542
543 // Allocate a map for the specified function 543 // Allocate a map for the specified function
544 MUST_USE_RESULT MaybeObject* AllocateInitialMap(JSFunction* fun); 544 MUST_USE_RESULT MaybeObject* AllocateInitialMap(JSFunction* fun);
545 545
546 // Allocates an empty code cache. 546 // Allocates an empty code cache.
547 MUST_USE_RESULT MaybeObject* AllocateCodeCache(); 547 MUST_USE_RESULT MaybeObject* AllocateCodeCache();
548 548
549 // Allocates a serialized scope info. 549 // Allocates a serialized scope info.
550 MUST_USE_RESULT MaybeObject* AllocateSerializedScopeInfo(int length); 550 MUST_USE_RESULT MaybeObject* AllocateScopeInfo(int length);
551 551
552 // Allocates an empty PolymorphicCodeCache. 552 // Allocates an empty PolymorphicCodeCache.
553 MUST_USE_RESULT MaybeObject* AllocatePolymorphicCodeCache(); 553 MUST_USE_RESULT MaybeObject* AllocatePolymorphicCodeCache();
554 554
555 // Clear the Instanceof cache (used when a prototype changes). 555 // Clear the Instanceof cache (used when a prototype changes).
556 inline void ClearInstanceofCache(); 556 inline void ClearInstanceofCache();
557 557
558 // Allocates and fully initializes a String. There are two String 558 // Allocates and fully initializes a String. There are two String
559 // encodings: ASCII and two byte. One should choose between the three string 559 // encodings: ASCII and two byte. One should choose between the three string
560 // allocation functions based on the encoding of the string buffer used to 560 // allocation functions based on the encoding of the string buffer used to
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 String* name, 730 String* name,
731 Object* thrown_object); 731 Object* thrown_object);
732 // Allocate a 'with' context. 732 // Allocate a 'with' context.
733 MUST_USE_RESULT MaybeObject* AllocateWithContext(JSFunction* function, 733 MUST_USE_RESULT MaybeObject* AllocateWithContext(JSFunction* function,
734 Context* previous, 734 Context* previous,
735 JSObject* extension); 735 JSObject* extension);
736 736
737 // Allocate a block context. 737 // Allocate a block context.
738 MUST_USE_RESULT MaybeObject* AllocateBlockContext(JSFunction* function, 738 MUST_USE_RESULT MaybeObject* AllocateBlockContext(JSFunction* function,
739 Context* previous, 739 Context* previous,
740 SerializedScopeInfo* info); 740 ScopeInfo* info);
741 741
742 // Allocates a new utility object in the old generation. 742 // Allocates a new utility object in the old generation.
743 MUST_USE_RESULT MaybeObject* AllocateStruct(InstanceType type); 743 MUST_USE_RESULT MaybeObject* AllocateStruct(InstanceType type);
744 744
745 // Allocates a function initialized with a shared part. 745 // Allocates a function initialized with a shared part.
746 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 746 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
747 // failed. 747 // failed.
748 // Please note this does not perform a garbage collection. 748 // Please note this does not perform a garbage collection.
749 MUST_USE_RESULT MaybeObject* AllocateFunction( 749 MUST_USE_RESULT MaybeObject* AllocateFunction(
750 Map* function_map, 750 Map* function_map,
(...skipping 1725 matching lines...) Expand 10 before | Expand all | Expand 10 after
2476 2476
2477 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2477 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2478 }; 2478 };
2479 #endif // DEBUG || LIVE_OBJECT_LIST 2479 #endif // DEBUG || LIVE_OBJECT_LIST
2480 2480
2481 } } // namespace v8::internal 2481 } } // namespace v8::internal
2482 2482
2483 #undef HEAP 2483 #undef HEAP
2484 2484
2485 #endif // V8_HEAP_H_ 2485 #endif // V8_HEAP_H_
OLDNEW
« src/frames.cc ('K') | « src/gdb-jit.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698