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

Side by Side Diff: src/bootstrapper.cc

Issue 237093006: Function allocators handlified. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressing review comments Created 6 years, 8 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/factory.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 748 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 Handle<String> global_name = factory()->InternalizeOneByteString( 759 Handle<String> global_name = factory()->InternalizeOneByteString(
760 STATIC_ASCII_VECTOR("global")); 760 STATIC_ASCII_VECTOR("global"));
761 global_proxy_function->shared()->set_instance_class_name(*global_name); 761 global_proxy_function->shared()->set_instance_class_name(*global_name);
762 global_proxy_function->initial_map()->set_is_access_check_needed(true); 762 global_proxy_function->initial_map()->set_is_access_check_needed(true);
763 763
764 // Set global_proxy.__proto__ to js_global after ConfigureGlobalObjects 764 // Set global_proxy.__proto__ to js_global after ConfigureGlobalObjects
765 // Return the global proxy. 765 // Return the global proxy.
766 766
767 if (global_object.location() != NULL) { 767 if (global_object.location() != NULL) {
768 ASSERT(global_object->IsJSGlobalProxy()); 768 ASSERT(global_object->IsJSGlobalProxy());
769 return ReinitializeJSGlobalProxy( 769 Handle<JSGlobalProxy> global_proxy =
770 global_proxy_function, 770 Handle<JSGlobalProxy>::cast(global_object);
771 Handle<JSGlobalProxy>::cast(global_object)); 771 factory()->ReinitializeJSGlobalProxy(global_proxy, global_proxy_function);
772 return global_proxy;
772 } else { 773 } else {
773 return Handle<JSGlobalProxy>::cast( 774 return Handle<JSGlobalProxy>::cast(
774 factory()->NewJSObject(global_proxy_function, TENURED)); 775 factory()->NewJSObject(global_proxy_function, TENURED));
775 } 776 }
776 } 777 }
777 778
778 779
779 void Genesis::HookUpGlobalProxy(Handle<GlobalObject> inner_global, 780 void Genesis::HookUpGlobalProxy(Handle<GlobalObject> inner_global,
780 Handle<JSGlobalProxy> global_proxy) { 781 Handle<JSGlobalProxy> global_proxy) {
781 // Set the native context for the global object. 782 // Set the native context for the global object.
(...skipping 1906 matching lines...) Expand 10 before | Expand all | Expand 10 after
2688 return from + sizeof(NestingCounterType); 2689 return from + sizeof(NestingCounterType);
2689 } 2690 }
2690 2691
2691 2692
2692 // Called when the top-level V8 mutex is destroyed. 2693 // Called when the top-level V8 mutex is destroyed.
2693 void Bootstrapper::FreeThreadResources() { 2694 void Bootstrapper::FreeThreadResources() {
2694 ASSERT(!IsActive()); 2695 ASSERT(!IsActive());
2695 } 2696 }
2696 2697
2697 } } // namespace v8::internal 2698 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698