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

Side by Side Diff: src/heap.h

Issue 6368051: A MessageObject is a purely internal object to hold information about (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comments Created 9 years, 10 months 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
« no previous file with comments | « src/factory.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 V(Map, external_unsigned_short_array_map, ExternalUnsignedShortArrayMap) \ 87 V(Map, external_unsigned_short_array_map, ExternalUnsignedShortArrayMap) \
88 V(Map, external_int_array_map, ExternalIntArrayMap) \ 88 V(Map, external_int_array_map, ExternalIntArrayMap) \
89 V(Map, external_unsigned_int_array_map, ExternalUnsignedIntArrayMap) \ 89 V(Map, external_unsigned_int_array_map, ExternalUnsignedIntArrayMap) \
90 V(Map, external_float_array_map, ExternalFloatArrayMap) \ 90 V(Map, external_float_array_map, ExternalFloatArrayMap) \
91 V(Map, context_map, ContextMap) \ 91 V(Map, context_map, ContextMap) \
92 V(Map, catch_context_map, CatchContextMap) \ 92 V(Map, catch_context_map, CatchContextMap) \
93 V(Map, code_map, CodeMap) \ 93 V(Map, code_map, CodeMap) \
94 V(Map, oddball_map, OddballMap) \ 94 V(Map, oddball_map, OddballMap) \
95 V(Map, global_property_cell_map, GlobalPropertyCellMap) \ 95 V(Map, global_property_cell_map, GlobalPropertyCellMap) \
96 V(Map, shared_function_info_map, SharedFunctionInfoMap) \ 96 V(Map, shared_function_info_map, SharedFunctionInfoMap) \
97 V(Map, message_object_map, JSMessageObjectMap) \
97 V(Map, proxy_map, ProxyMap) \ 98 V(Map, proxy_map, ProxyMap) \
98 V(Object, nan_value, NanValue) \ 99 V(Object, nan_value, NanValue) \
99 V(Object, minus_zero_value, MinusZeroValue) \ 100 V(Object, minus_zero_value, MinusZeroValue) \
100 V(Object, instanceof_cache_function, InstanceofCacheFunction) \ 101 V(Object, instanceof_cache_function, InstanceofCacheFunction) \
101 V(Object, instanceof_cache_map, InstanceofCacheMap) \ 102 V(Object, instanceof_cache_map, InstanceofCacheMap) \
102 V(Object, instanceof_cache_answer, InstanceofCacheAnswer) \ 103 V(Object, instanceof_cache_answer, InstanceofCacheAnswer) \
103 V(String, empty_string, EmptyString) \ 104 V(String, empty_string, EmptyString) \
104 V(DescriptorArray, empty_descriptor_array, EmptyDescriptorArray) \ 105 V(DescriptorArray, empty_descriptor_array, EmptyDescriptorArray) \
105 V(Map, neander_map, NeanderMap) \ 106 V(Map, neander_map, NeanderMap) \
106 V(JSObject, message_listeners, MessageListeners) \ 107 V(JSObject, message_listeners, MessageListeners) \
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 MUST_USE_RESULT static MaybeObject* AllocateProxy( 622 MUST_USE_RESULT static MaybeObject* AllocateProxy(
622 Address proxy, 623 Address proxy,
623 PretenureFlag pretenure = NOT_TENURED); 624 PretenureFlag pretenure = NOT_TENURED);
624 625
625 // Allocates a new SharedFunctionInfo object. 626 // Allocates a new SharedFunctionInfo object.
626 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 627 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
627 // failed. 628 // failed.
628 // Please note this does not perform a garbage collection. 629 // Please note this does not perform a garbage collection.
629 MUST_USE_RESULT static MaybeObject* AllocateSharedFunctionInfo(Object* name); 630 MUST_USE_RESULT static MaybeObject* AllocateSharedFunctionInfo(Object* name);
630 631
632 // Allocates a new JSMessageObject object.
633 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
634 // failed.
635 // Please note that this does not perform a garbage collection.
636 MUST_USE_RESULT static MaybeObject* AllocateJSMessageObject(
637 String* type,
638 JSArray* arguments,
639 int start_position,
640 int end_position,
641 Object* script,
642 Object* stack_trace,
643 Object* stack_frames);
644
631 // Allocates a new cons string object. 645 // Allocates a new cons string object.
632 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 646 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
633 // failed. 647 // failed.
634 // Please note this does not perform a garbage collection. 648 // Please note this does not perform a garbage collection.
635 MUST_USE_RESULT static MaybeObject* AllocateConsString(String* first, 649 MUST_USE_RESULT static MaybeObject* AllocateConsString(String* first,
636 String* second); 650 String* second);
637 651
638 // Allocates a new sub string object which is a substring of an underlying 652 // Allocates a new sub string object which is a substring of an underlying
639 // string buffer stretching from the index start (inclusive) to the index 653 // string buffer stretching from the index start (inclusive) to the index
640 // end (exclusive). 654 // end (exclusive).
(...skipping 1485 matching lines...) Expand 10 before | Expand all | Expand 10 after
2126 // Return whether this object should be retained. If NULL is returned the 2140 // Return whether this object should be retained. If NULL is returned the
2127 // object has no references. Otherwise the address of the retained object 2141 // object has no references. Otherwise the address of the retained object
2128 // should be returned as in some GC situations the object has been moved. 2142 // should be returned as in some GC situations the object has been moved.
2129 virtual Object* RetainAs(Object* object) = 0; 2143 virtual Object* RetainAs(Object* object) = 0;
2130 }; 2144 };
2131 2145
2132 2146
2133 } } // namespace v8::internal 2147 } } // namespace v8::internal
2134 2148
2135 #endif // V8_HEAP_H_ 2149 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698