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

Side by Side Diff: src/heap/heap.cc

Issue 1130993003: Reland: Make V8 extras a separate type of native (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@fix-snapshot
Patch Set: Fix js2c.py's dummy files Created 5 years, 7 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
« no previous file with comments | « src/heap/heap.h ('k') | src/snapshot/natives.h » ('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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/base/once.h" 10 #include "src/base/once.h"
(...skipping 3062 matching lines...) Expand 10 before | Expand all | Expand 10 after
3073 set_regexp_multiple_cache(*factory->NewFixedArray( 3073 set_regexp_multiple_cache(*factory->NewFixedArray(
3074 RegExpResultsCache::kRegExpResultsCacheSize, TENURED)); 3074 RegExpResultsCache::kRegExpResultsCacheSize, TENURED));
3075 3075
3076 // Allocate cache for external strings pointing to native source code. 3076 // Allocate cache for external strings pointing to native source code.
3077 set_natives_source_cache( 3077 set_natives_source_cache(
3078 *factory->NewFixedArray(Natives::GetBuiltinsCount())); 3078 *factory->NewFixedArray(Natives::GetBuiltinsCount()));
3079 3079
3080 set_experimental_natives_source_cache( 3080 set_experimental_natives_source_cache(
3081 *factory->NewFixedArray(ExperimentalNatives::GetBuiltinsCount())); 3081 *factory->NewFixedArray(ExperimentalNatives::GetBuiltinsCount()));
3082 3082
3083 set_extra_natives_source_cache(
3084 *factory->NewFixedArray(ExtraNatives::GetBuiltinsCount()));
3085
3083 set_undefined_cell(*factory->NewCell(factory->undefined_value())); 3086 set_undefined_cell(*factory->NewCell(factory->undefined_value()));
3084 3087
3085 // The symbol registry is initialized lazily. 3088 // The symbol registry is initialized lazily.
3086 set_symbol_registry(Smi::FromInt(0)); 3089 set_symbol_registry(Smi::FromInt(0));
3087 3090
3088 // Allocate object to hold object observation state. 3091 // Allocate object to hold object observation state.
3089 set_observation_state(*factory->NewJSObjectFromMap( 3092 set_observation_state(*factory->NewJSObjectFromMap(
3090 factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize))); 3093 factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize)));
3091 3094
3092 // Microtask queue uses the empty fixed array as a sentinel for "empty". 3095 // Microtask queue uses the empty fixed array as a sentinel for "empty".
(...skipping 3403 matching lines...) Expand 10 before | Expand all | Expand 10 after
6496 } 6499 }
6497 delete list; 6500 delete list;
6498 } else { 6501 } else {
6499 prev = list; 6502 prev = list;
6500 } 6503 }
6501 list = next; 6504 list = next;
6502 } 6505 }
6503 } 6506 }
6504 } 6507 }
6505 } // namespace v8::internal 6508 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap/heap.h ('k') | src/snapshot/natives.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698