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

Side by Side Diff: src/bootstrapper.cc

Issue 2549753002: Store OSR'd optimized code on the native context. (Closed)
Patch Set: Comment response. Created 4 years 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 | « no previous file | src/builtins/arm/builtins-arm.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 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 "src/bootstrapper.h" 5 #include "src/bootstrapper.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api-natives.h" 8 #include "src/api-natives.h"
9 #include "src/base/ieee754.h" 9 #include "src/base/ieee754.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after
1121 // Set extension and global object. 1121 // Set extension and global object.
1122 native_context()->set_extension(*global_object); 1122 native_context()->set_extension(*global_object);
1123 // Security setup: Set the security token of the native context to the global 1123 // Security setup: Set the security token of the native context to the global
1124 // object. This makes the security check between two different contexts fail 1124 // object. This makes the security check between two different contexts fail
1125 // by default even in case of global object reinitialization. 1125 // by default even in case of global object reinitialization.
1126 native_context()->set_security_token(*global_object); 1126 native_context()->set_security_token(*global_object);
1127 1127
1128 Isolate* isolate = global_object->GetIsolate(); 1128 Isolate* isolate = global_object->GetIsolate();
1129 Factory* factory = isolate->factory(); 1129 Factory* factory = isolate->factory();
1130 1130
1131 native_context()->set_osr_code_table(*factory->empty_fixed_array());
1132
1131 Handle<ScriptContextTable> script_context_table = 1133 Handle<ScriptContextTable> script_context_table =
1132 factory->NewScriptContextTable(); 1134 factory->NewScriptContextTable();
1133 native_context()->set_script_context_table(*script_context_table); 1135 native_context()->set_script_context_table(*script_context_table);
1134 InstallGlobalThisBinding(); 1136 InstallGlobalThisBinding();
1135 1137
1136 { // --- O b j e c t --- 1138 { // --- O b j e c t ---
1137 Handle<String> object_name = factory->Object_string(); 1139 Handle<String> object_name = factory->Object_string();
1138 Handle<JSFunction> object_function = isolate->object_function(); 1140 Handle<JSFunction> object_function = isolate->object_function();
1139 JSObject::AddProperty(global_object, object_name, object_function, 1141 JSObject::AddProperty(global_object, object_name, object_function,
1140 DONT_ENUM); 1142 DONT_ENUM);
(...skipping 3482 matching lines...) Expand 10 before | Expand all | Expand 10 after
4623 } 4625 }
4624 4626
4625 4627
4626 // Called when the top-level V8 mutex is destroyed. 4628 // Called when the top-level V8 mutex is destroyed.
4627 void Bootstrapper::FreeThreadResources() { 4629 void Bootstrapper::FreeThreadResources() {
4628 DCHECK(!IsActive()); 4630 DCHECK(!IsActive());
4629 } 4631 }
4630 4632
4631 } // namespace internal 4633 } // namespace internal
4632 } // namespace v8 4634 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/builtins/arm/builtins-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698