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

Side by Side Diff: src/heap.h

Issue 17064002: Refactor only: Rename JSGlobaPropertyCell to PropertyCell (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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 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 931 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 // Allocate a tenured simple cell. 942 // Allocate a tenured simple cell.
943 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 943 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
944 // failed. 944 // failed.
945 // Please note this does not perform a garbage collection. 945 // Please note this does not perform a garbage collection.
946 MUST_USE_RESULT MaybeObject* AllocateCell(Object* value); 946 MUST_USE_RESULT MaybeObject* AllocateCell(Object* value);
947 947
948 // Allocate a tenured JS global property cell. 948 // Allocate a tenured JS global property cell.
949 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 949 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
950 // failed. 950 // failed.
951 // Please note this does not perform a garbage collection. 951 // Please note this does not perform a garbage collection.
952 MUST_USE_RESULT MaybeObject* AllocateJSGlobalPropertyCell(Object* value); 952 MUST_USE_RESULT MaybeObject* AllocatePropertyCell(Object* value);
953 953
954 // Allocate Box. 954 // Allocate Box.
955 MUST_USE_RESULT MaybeObject* AllocateBox(Object* value, 955 MUST_USE_RESULT MaybeObject* AllocateBox(Object* value,
956 PretenureFlag pretenure); 956 PretenureFlag pretenure);
957 957
958 // Allocates a fixed array initialized with undefined values 958 // Allocates a fixed array initialized with undefined values
959 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 959 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
960 // failed. 960 // failed.
961 // Please note this does not perform a garbage collection. 961 // Please note this does not perform a garbage collection.
962 MUST_USE_RESULT MaybeObject* AllocateFixedArray(int length, 962 MUST_USE_RESULT MaybeObject* AllocateFixedArray(int length,
(...skipping 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after
2124 // Allocate an uninitialized object in map space. The behavior is identical 2124 // Allocate an uninitialized object in map space. The behavior is identical
2125 // to Heap::AllocateRaw(size_in_bytes, MAP_SPACE), except that (a) it doesn't 2125 // to Heap::AllocateRaw(size_in_bytes, MAP_SPACE), except that (a) it doesn't
2126 // have to test the allocation space argument and (b) can reduce code size 2126 // have to test the allocation space argument and (b) can reduce code size
2127 // (since both AllocateRaw and AllocateRawMap are inlined). 2127 // (since both AllocateRaw and AllocateRawMap are inlined).
2128 MUST_USE_RESULT inline MaybeObject* AllocateRawMap(); 2128 MUST_USE_RESULT inline MaybeObject* AllocateRawMap();
2129 2129
2130 // Allocate an uninitialized object in the simple cell space. 2130 // Allocate an uninitialized object in the simple cell space.
2131 MUST_USE_RESULT inline MaybeObject* AllocateRawCell(); 2131 MUST_USE_RESULT inline MaybeObject* AllocateRawCell();
2132 2132
2133 // Allocate an uninitialized object in the global property cell space. 2133 // Allocate an uninitialized object in the global property cell space.
2134 MUST_USE_RESULT inline MaybeObject* AllocateRawJSGlobalPropertyCell(); 2134 MUST_USE_RESULT inline MaybeObject* AllocateRawPropertyCell();
2135 2135
2136 // Initializes a JSObject based on its map. 2136 // Initializes a JSObject based on its map.
2137 void InitializeJSObjectFromMap(JSObject* obj, 2137 void InitializeJSObjectFromMap(JSObject* obj,
2138 FixedArray* properties, 2138 FixedArray* properties,
2139 Map* map); 2139 Map* map);
2140 2140
2141 bool CreateInitialMaps(); 2141 bool CreateInitialMaps();
2142 bool CreateInitialObjects(); 2142 bool CreateInitialObjects();
2143 2143
2144 // These five Create*EntryStub functions are here and forced to not be inlined 2144 // These five Create*EntryStub functions are here and forced to not be inlined
(...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after
3076 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 3076 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
3077 3077
3078 private: 3078 private:
3079 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 3079 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
3080 }; 3080 };
3081 #endif // DEBUG 3081 #endif // DEBUG
3082 3082
3083 } } // namespace v8::internal 3083 } } // namespace v8::internal
3084 3084
3085 #endif // V8_HEAP_H_ 3085 #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