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

Side by Side Diff: src/bootstrapper.cc

Issue 263663002: Map::Normalize() introduced as single entry point for map normalization and Map::NotifyLeafMapLayou… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressing review comments Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/objects.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 "bootstrapper.h" 5 #include "bootstrapper.h"
6 6
7 #include "accessors.h" 7 #include "accessors.h"
8 #include "isolate-inl.h" 8 #include "isolate-inl.h"
9 #include "natives.h" 9 #include "natives.h"
10 #include "snapshot.h" 10 #include "snapshot.h"
(...skipping 2091 matching lines...) Expand 10 before | Expand all | Expand 10 after
2102 2102
2103 JSFUNCTION_RESULT_CACHE_LIST(F); 2103 JSFUNCTION_RESULT_CACHE_LIST(F);
2104 2104
2105 #undef F 2105 #undef F
2106 2106
2107 native_context()->set_jsfunction_result_caches(*caches); 2107 native_context()->set_jsfunction_result_caches(*caches);
2108 } 2108 }
2109 2109
2110 2110
2111 void Genesis::InitializeNormalizedMapCaches() { 2111 void Genesis::InitializeNormalizedMapCaches() {
2112 Handle<FixedArray> array( 2112 native_context()->set_normalized_map_cache(
2113 factory()->NewFixedArray(NormalizedMapCache::kEntries, TENURED)); 2113 *NormalizedMapCache::New(isolate()));
2114 native_context()->set_normalized_map_cache(NormalizedMapCache::cast(*array));
2115 } 2114 }
2116 2115
2117 2116
2118 bool Bootstrapper::InstallExtensions(Handle<Context> native_context, 2117 bool Bootstrapper::InstallExtensions(Handle<Context> native_context,
2119 v8::ExtensionConfiguration* extensions) { 2118 v8::ExtensionConfiguration* extensions) {
2120 BootstrapperActive active(this); 2119 BootstrapperActive active(this);
2121 SaveContext saved_context(isolate_); 2120 SaveContext saved_context(isolate_);
2122 isolate_->set_context(*native_context); 2121 isolate_->set_context(*native_context);
2123 return Genesis::InstallExtensions(native_context, extensions) && 2122 return Genesis::InstallExtensions(native_context, extensions) &&
2124 Genesis::InstallSpecialObjects(native_context); 2123 Genesis::InstallSpecialObjects(native_context);
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
2693 return from + sizeof(NestingCounterType); 2692 return from + sizeof(NestingCounterType);
2694 } 2693 }
2695 2694
2696 2695
2697 // Called when the top-level V8 mutex is destroyed. 2696 // Called when the top-level V8 mutex is destroyed.
2698 void Bootstrapper::FreeThreadResources() { 2697 void Bootstrapper::FreeThreadResources() {
2699 ASSERT(!IsActive()); 2698 ASSERT(!IsActive());
2700 } 2699 }
2701 2700
2702 } } // namespace v8::internal 2701 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698