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

Side by Side Diff: src/bootstrapper.cc

Issue 269743002: Fix for a GCMole issue introduced in r21117. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 | no next file » | 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 2090 matching lines...) Expand 10 before | Expand all | Expand 10 after
2101 2101
2102 JSFUNCTION_RESULT_CACHE_LIST(F); 2102 JSFUNCTION_RESULT_CACHE_LIST(F);
2103 2103
2104 #undef F 2104 #undef F
2105 2105
2106 native_context()->set_jsfunction_result_caches(*caches); 2106 native_context()->set_jsfunction_result_caches(*caches);
2107 } 2107 }
2108 2108
2109 2109
2110 void Genesis::InitializeNormalizedMapCaches() { 2110 void Genesis::InitializeNormalizedMapCaches() {
2111 native_context()->set_normalized_map_cache( 2111 Handle<NormalizedMapCache> cache = NormalizedMapCache::New(isolate());
2112 *NormalizedMapCache::New(isolate())); 2112 native_context()->set_normalized_map_cache(*cache);
2113 } 2113 }
2114 2114
2115 2115
2116 bool Bootstrapper::InstallExtensions(Handle<Context> native_context, 2116 bool Bootstrapper::InstallExtensions(Handle<Context> native_context,
2117 v8::ExtensionConfiguration* extensions) { 2117 v8::ExtensionConfiguration* extensions) {
2118 BootstrapperActive active(this); 2118 BootstrapperActive active(this);
2119 SaveContext saved_context(isolate_); 2119 SaveContext saved_context(isolate_);
2120 isolate_->set_context(*native_context); 2120 isolate_->set_context(*native_context);
2121 return Genesis::InstallExtensions(native_context, extensions) && 2121 return Genesis::InstallExtensions(native_context, extensions) &&
2122 Genesis::InstallSpecialObjects(native_context); 2122 Genesis::InstallSpecialObjects(native_context);
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
2691 return from + sizeof(NestingCounterType); 2691 return from + sizeof(NestingCounterType);
2692 } 2692 }
2693 2693
2694 2694
2695 // Called when the top-level V8 mutex is destroyed. 2695 // Called when the top-level V8 mutex is destroyed.
2696 void Bootstrapper::FreeThreadResources() { 2696 void Bootstrapper::FreeThreadResources() {
2697 ASSERT(!IsActive()); 2697 ASSERT(!IsActive());
2698 } 2698 }
2699 2699
2700 } } // namespace v8::internal 2700 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698