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

Side by Side Diff: src/bootstrapper.h

Issue 1282793002: Debugger: load debugger builtins as normal native JS. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: use InstallFunctions and InstallConstants 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 | « BUILD.gn ('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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 cache_->set(length + 1, *shared); 54 cache_->set(length + 1, *shared);
55 Script::cast(shared->script())->set_type(Smi::FromInt(type_)); 55 Script::cast(shared->script())->set_type(Smi::FromInt(type_));
56 } 56 }
57 57
58 private: 58 private:
59 Script::Type type_; 59 Script::Type type_;
60 FixedArray* cache_; 60 FixedArray* cache_;
61 DISALLOW_COPY_AND_ASSIGN(SourceCodeCache); 61 DISALLOW_COPY_AND_ASSIGN(SourceCodeCache);
62 }; 62 };
63 63
64 enum ContextType { FULL_CONTEXT, THIN_CONTEXT }; 64 enum ContextType { FULL_CONTEXT, THIN_CONTEXT, DEBUG_CONTEXT };
65 65
66 // The Boostrapper is the public interface for creating a JavaScript global 66 // The Boostrapper is the public interface for creating a JavaScript global
67 // context. 67 // context.
68 class Bootstrapper final { 68 class Bootstrapper final {
69 public: 69 public:
70 static void InitializeOncePerProcess(); 70 static void InitializeOncePerProcess();
71 static void TearDownExtensions(); 71 static void TearDownExtensions();
72 72
73 // Requires: Heap::SetUp has been called. 73 // Requires: Heap::SetUp has been called.
74 void Initialize(bool create_heap_objects); 74 void Initialize(bool create_heap_objects);
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 size_t length() const override { return length_; } 167 size_t length() const override { return length_; }
168 168
169 private: 169 private:
170 const char* data_; 170 const char* data_;
171 size_t length_; 171 size_t length_;
172 }; 172 };
173 173
174 }} // namespace v8::internal 174 }} // namespace v8::internal
175 175
176 #endif // V8_BOOTSTRAPPER_H_ 176 #endif // V8_BOOTSTRAPPER_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698