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

Side by Side Diff: src/bootstrapper.h

Issue 1296163003: Native context: install JS builtins via container object. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@prologuefirst
Patch Set: rebase Created 5 years, 4 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
« no previous file with comments | « no previous file | 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 int argc, Handle<Object> argv[]); 114 int argc, Handle<Object> argv[]);
115 static bool CompileBuiltin(Isolate* isolate, int index); 115 static bool CompileBuiltin(Isolate* isolate, int index);
116 static bool CompileExperimentalBuiltin(Isolate* isolate, int index); 116 static bool CompileExperimentalBuiltin(Isolate* isolate, int index);
117 static bool CompileExtraBuiltin(Isolate* isolate, int index); 117 static bool CompileExtraBuiltin(Isolate* isolate, int index);
118 static bool CompileCodeStubBuiltin(Isolate* isolate, int index); 118 static bool CompileCodeStubBuiltin(Isolate* isolate, int index);
119 static bool InstallCodeStubNatives(Isolate* isolate); 119 static bool InstallCodeStubNatives(Isolate* isolate);
120 120
121 static void ImportNatives(Isolate* isolate, Handle<JSObject> container); 121 static void ImportNatives(Isolate* isolate, Handle<JSObject> container);
122 static void ImportExperimentalNatives(Isolate* isolate, 122 static void ImportExperimentalNatives(Isolate* isolate,
123 Handle<JSObject> container); 123 Handle<JSObject> container);
124 static bool InstallJSBuiltins(Isolate* isolate, Handle<JSObject> container);
124 125
125 private: 126 private:
126 Isolate* isolate_; 127 Isolate* isolate_;
127 typedef int NestingCounterType; 128 typedef int NestingCounterType;
128 NestingCounterType nesting_; 129 NestingCounterType nesting_;
129 SourceCodeCache extensions_cache_; 130 SourceCodeCache extensions_cache_;
130 131
131 friend class BootstrapperActive; 132 friend class BootstrapperActive;
132 friend class Isolate; 133 friend class Isolate;
133 friend class NativesExternalStringResource; 134 friend class NativesExternalStringResource;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 size_t length() const override { return length_; } 172 size_t length() const override { return length_; }
172 173
173 private: 174 private:
174 const char* data_; 175 const char* data_;
175 size_t length_; 176 size_t length_;
176 }; 177 };
177 178
178 }} // namespace v8::internal 179 }} // namespace v8::internal
179 180
180 #endif // V8_BOOTSTRAPPER_H_ 181 #endif // V8_BOOTSTRAPPER_H_
OLDNEW
« no previous file with comments | « no previous file | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698