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

Side by Side Diff: src/bootstrapper.h

Issue 1475953002: [stubs] A new approach to TF stubs (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix Win64 build Created 5 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 | « src/arm64/interface-descriptors-arm64.cc ('k') | src/bootstrapper.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 #ifndef V8_BOOTSTRAPPER_H_ 5 #ifndef V8_BOOTSTRAPPER_H_
6 #define V8_BOOTSTRAPPER_H_ 6 #define V8_BOOTSTRAPPER_H_
7 7
8 #include "src/factory.h" 8 #include "src/factory.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 void TearDown(); 75 void TearDown();
76 76
77 // Creates a JavaScript Global Context with initial object graph. 77 // Creates a JavaScript Global Context with initial object graph.
78 // The returned value is a global handle casted to V8Environment*. 78 // The returned value is a global handle casted to V8Environment*.
79 Handle<Context> CreateEnvironment( 79 Handle<Context> CreateEnvironment(
80 MaybeHandle<JSGlobalProxy> maybe_global_proxy, 80 MaybeHandle<JSGlobalProxy> maybe_global_proxy,
81 v8::Local<v8::ObjectTemplate> global_object_template, 81 v8::Local<v8::ObjectTemplate> global_object_template,
82 v8::ExtensionConfiguration* extensions, 82 v8::ExtensionConfiguration* extensions,
83 ContextType context_type = FULL_CONTEXT); 83 ContextType context_type = FULL_CONTEXT);
84 84
85 bool CreateCodeStubContext(Isolate* isolate);
86
87 // Detach the environment from its outer global object. 85 // Detach the environment from its outer global object.
88 void DetachGlobal(Handle<Context> env); 86 void DetachGlobal(Handle<Context> env);
89 87
90 // Traverses the pointers for memory management. 88 // Traverses the pointers for memory management.
91 void Iterate(ObjectVisitor* v); 89 void Iterate(ObjectVisitor* v);
92 90
93 // Accessor for the native scripts source code. 91 // Accessor for the native scripts source code.
94 template <class Source> 92 template <class Source>
95 Handle<String> SourceLookup(int index); 93 Handle<String> SourceLookup(int index);
96 94
(...skipping 12 matching lines...) Expand all
109 107
110 SourceCodeCache* extensions_cache() { return &extensions_cache_; } 108 SourceCodeCache* extensions_cache() { return &extensions_cache_; }
111 109
112 static bool CompileNative(Isolate* isolate, Vector<const char> name, 110 static bool CompileNative(Isolate* isolate, Vector<const char> name,
113 Handle<String> source, int argc, 111 Handle<String> source, int argc,
114 Handle<Object> argv[]); 112 Handle<Object> argv[]);
115 static bool CompileBuiltin(Isolate* isolate, int index); 113 static bool CompileBuiltin(Isolate* isolate, int index);
116 static bool CompileExperimentalBuiltin(Isolate* isolate, int index); 114 static bool CompileExperimentalBuiltin(Isolate* isolate, int index);
117 static bool CompileExtraBuiltin(Isolate* isolate, int index); 115 static bool CompileExtraBuiltin(Isolate* isolate, int index);
118 static bool CompileExperimentalExtraBuiltin(Isolate* isolate, int index); 116 static bool CompileExperimentalExtraBuiltin(Isolate* isolate, int index);
119 static bool CompileCodeStubBuiltin(Isolate* isolate, int index);
120 static bool InstallCodeStubNatives(Isolate* isolate);
121 117
122 static void ExportFromRuntime(Isolate* isolate, Handle<JSObject> container); 118 static void ExportFromRuntime(Isolate* isolate, Handle<JSObject> container);
123 static void ExportExperimentalFromRuntime(Isolate* isolate, 119 static void ExportExperimentalFromRuntime(Isolate* isolate,
124 Handle<JSObject> container); 120 Handle<JSObject> container);
125 121
126 private: 122 private:
127 Isolate* isolate_; 123 Isolate* isolate_;
128 typedef int NestingCounterType; 124 typedef int NestingCounterType;
129 NestingCounterType nesting_; 125 NestingCounterType nesting_;
130 SourceCodeCache extensions_cache_; 126 SourceCodeCache extensions_cache_;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 169
174 private: 170 private:
175 const char* data_; 171 const char* data_;
176 size_t length_; 172 size_t length_;
177 }; 173 };
178 174
179 } // namespace internal 175 } // namespace internal
180 } // namespace v8 176 } // namespace v8
181 177
182 #endif // V8_BOOTSTRAPPER_H_ 178 #endif // V8_BOOTSTRAPPER_H_
OLDNEW
« no previous file with comments | « src/arm64/interface-descriptors-arm64.cc ('k') | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698