Commit 55342170 authored by yangguo@chromium.org's avatar yangguo@chromium.org

Make CreateInitialObjects more concise.

R=ishell@chromium.org

Review URL: https://codereview.chromium.org/255003002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@21038 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 02c33537
...@@ -1086,15 +1086,6 @@ Handle<HeapNumber> Factory::NewHeapNumber(double value, ...@@ -1086,15 +1086,6 @@ Handle<HeapNumber> Factory::NewHeapNumber(double value,
} }
Handle<JSObject> Factory::NewNeanderObject() {
CALL_HEAP_FUNCTION(
isolate(),
isolate()->heap()->AllocateJSObjectFromMap(
isolate()->heap()->neander_map()),
JSObject);
}
Handle<Object> Factory::NewTypeError(const char* message, Handle<Object> Factory::NewTypeError(const char* message,
Vector< Handle<Object> > args) { Vector< Handle<Object> > args) {
return NewError("MakeTypeError", message, args); return NewError("MakeTypeError", message, args);
......
...@@ -339,7 +339,9 @@ class Factory V8_FINAL { ...@@ -339,7 +339,9 @@ class Factory V8_FINAL {
// These objects are used by the api to create env-independent data // These objects are used by the api to create env-independent data
// structures in the heap. // structures in the heap.
Handle<JSObject> NewNeanderObject(); inline Handle<JSObject> NewNeanderObject() {
return NewJSObjectFromMap(neander_map());
}
Handle<JSObject> NewArgumentsObject(Handle<Object> callee, int length); Handle<JSObject> NewArgumentsObject(Handle<Object> callee, int length);
......
This diff is collapsed.
...@@ -739,9 +739,6 @@ class Heap { ...@@ -739,9 +739,6 @@ class Heap {
bool double_align, bool double_align,
AllocationSpace space); AllocationSpace space);
// Allocates an empty PolymorphicCodeCache.
MUST_USE_RESULT MaybeObject* AllocatePolymorphicCodeCache();
// Clear the Instanceof cache (used when a prototype changes). // Clear the Instanceof cache (used when a prototype changes).
inline void ClearInstanceofCache(); inline void ClearInstanceofCache();
...@@ -1281,7 +1278,7 @@ class Heap { ...@@ -1281,7 +1278,7 @@ class Heap {
// Support for the API. // Support for the API.
// //
bool CreateApiObjects(); void CreateApiObjects();
// Adjusts the amount of registered external memory. // Adjusts the amount of registered external memory.
// Returns the adjusted value. // Returns the adjusted value.
...@@ -1961,7 +1958,7 @@ class Heap { ...@@ -1961,7 +1958,7 @@ class Heap {
AllocationSite* allocation_site); AllocationSite* allocation_site);
bool CreateInitialMaps(); bool CreateInitialMaps();
bool CreateInitialObjects(); void CreateInitialObjects();
// These five Create*EntryStub functions are here and forced to not be inlined // These five Create*EntryStub functions are here and forced to not be inlined
// because of a gcc-4.4 bug that assigns wrong vtable entries. // because of a gcc-4.4 bug that assigns wrong vtable entries.
...@@ -2045,16 +2042,11 @@ class Heap { ...@@ -2045,16 +2042,11 @@ class Heap {
GCTracer* tracer_; GCTracer* tracer_;
// Allocates a small number to string cache.
MUST_USE_RESULT MaybeObject* AllocateInitialNumberStringCache();
// Creates and installs the full-sized number string cache. // Creates and installs the full-sized number string cache.
int FullSizeNumberStringCacheLength(); int FullSizeNumberStringCacheLength();
// Flush the number to string cache. // Flush the number to string cache.
void FlushNumberStringCache(); void FlushNumberStringCache();
// Allocates a fixed-size allocation sites scratchpad.
MUST_USE_RESULT MaybeObject* AllocateAllocationSitesScratchpad();
// Sets used allocation sites entries to undefined. // Sets used allocation sites entries to undefined.
void FlushAllocationSitesScratchpad(); void FlushAllocationSitesScratchpad();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment