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

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

Issue 1213203007: Create a internal, global native context used only for generated code stubs (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review feedback Created 5 years, 5 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/isolate.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 // 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 3361 matching lines...) Expand 10 before | Expand all | Expand 10 after
3372 // Allocate cache for external strings pointing to native source code. 3372 // Allocate cache for external strings pointing to native source code.
3373 set_natives_source_cache( 3373 set_natives_source_cache(
3374 *factory->NewFixedArray(Natives::GetBuiltinsCount())); 3374 *factory->NewFixedArray(Natives::GetBuiltinsCount()));
3375 3375
3376 set_experimental_natives_source_cache( 3376 set_experimental_natives_source_cache(
3377 *factory->NewFixedArray(ExperimentalNatives::GetBuiltinsCount())); 3377 *factory->NewFixedArray(ExperimentalNatives::GetBuiltinsCount()));
3378 3378
3379 set_extra_natives_source_cache( 3379 set_extra_natives_source_cache(
3380 *factory->NewFixedArray(ExtraNatives::GetBuiltinsCount())); 3380 *factory->NewFixedArray(ExtraNatives::GetBuiltinsCount()));
3381 3381
3382 set_code_stub_natives_source_cache(
3383 *factory->NewFixedArray(CodeStubNatives::GetBuiltinsCount()));
3384
3382 set_undefined_cell(*factory->NewCell(factory->undefined_value())); 3385 set_undefined_cell(*factory->NewCell(factory->undefined_value()));
3383 3386
3384 // The symbol registry is initialized lazily. 3387 // The symbol registry is initialized lazily.
3385 set_symbol_registry(Smi::FromInt(0)); 3388 set_symbol_registry(Smi::FromInt(0));
3386 3389
3387 // Allocate object to hold object observation state. 3390 // Allocate object to hold object observation state.
3388 set_observation_state(*factory->NewJSObjectFromMap( 3391 set_observation_state(*factory->NewJSObjectFromMap(
3389 factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize))); 3392 factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize)));
3390 3393
3391 // Microtask queue uses the empty fixed array as a sentinel for "empty". 3394 // Microtask queue uses the empty fixed array as a sentinel for "empty".
(...skipping 3500 matching lines...) Expand 10 before | Expand all | Expand 10 after
6892 *object_type = "CODE_TYPE"; \ 6895 *object_type = "CODE_TYPE"; \
6893 *object_sub_type = "CODE_AGE/" #name; \ 6896 *object_sub_type = "CODE_AGE/" #name; \
6894 return true; 6897 return true;
6895 CODE_AGE_LIST_COMPLETE(COMPARE_AND_RETURN_NAME) 6898 CODE_AGE_LIST_COMPLETE(COMPARE_AND_RETURN_NAME)
6896 #undef COMPARE_AND_RETURN_NAME 6899 #undef COMPARE_AND_RETURN_NAME
6897 } 6900 }
6898 return false; 6901 return false;
6899 } 6902 }
6900 } // namespace internal 6903 } // namespace internal
6901 } // namespace v8 6904 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/heap.h ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698