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

Side by Side Diff: src/heap.cc

Issue 8065006: Move the is_pregenerated flag so it does not overlap other flags. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 2 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
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 2152 matching lines...) Expand 10 before | Expand all | Expand 10 after
2163 // js_construct_entry_code_ = *stub.GetCode(); 2163 // js_construct_entry_code_ = *stub.GetCode();
2164 // } 2164 // }
2165 // To workaround the problem, make separate functions without inlining. 2165 // To workaround the problem, make separate functions without inlining.
2166 Heap::CreateJSEntryStub(); 2166 Heap::CreateJSEntryStub();
2167 Heap::CreateJSConstructEntryStub(); 2167 Heap::CreateJSConstructEntryStub();
2168 2168
2169 // Create stubs that should be there, so we don't unexpectedly have to 2169 // Create stubs that should be there, so we don't unexpectedly have to
2170 // create them if we need them during the creation of another stub. 2170 // create them if we need them during the creation of another stub.
2171 // Stub creation mixes raw pointers and handles in an unsafe manner so 2171 // Stub creation mixes raw pointers and handles in an unsafe manner so
2172 // we cannot create stubs while we are creating stubs. 2172 // we cannot create stubs while we are creating stubs.
2173 CEntryStub ces(1);
2174 ces.GetCode();
2175
2176 CodeStub::GenerateStubsAheadOfTime(); 2173 CodeStub::GenerateStubsAheadOfTime();
2177 } 2174 }
2178 2175
2179 2176
2180 bool Heap::CreateInitialObjects() { 2177 bool Heap::CreateInitialObjects() {
2181 Object* obj; 2178 Object* obj;
2182 2179
2183 // The -0 value must be set before NumberFromDouble works. 2180 // The -0 value must be set before NumberFromDouble works.
2184 { MaybeObject* maybe_obj = AllocateHeapNumber(-0.0, TENURED); 2181 { MaybeObject* maybe_obj = AllocateHeapNumber(-0.0, TENURED);
2185 if (!maybe_obj->ToObject(&obj)) return false; 2182 if (!maybe_obj->ToObject(&obj)) return false;
(...skipping 4286 matching lines...) Expand 10 before | Expand all | Expand 10 after
6472 } 6469 }
6473 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); 6470 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED);
6474 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { 6471 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) {
6475 next = chunk->next_chunk(); 6472 next = chunk->next_chunk();
6476 isolate_->memory_allocator()->Free(chunk); 6473 isolate_->memory_allocator()->Free(chunk);
6477 } 6474 }
6478 chunks_queued_for_free_ = NULL; 6475 chunks_queued_for_free_ = NULL;
6479 } 6476 }
6480 6477
6481 } } // namespace v8::internal 6478 } } // namespace v8::internal
OLDNEW
« src/arm/code-stubs-arm.cc ('K') | « src/code-stubs.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698