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

Side by Side Diff: src/d8.h

Issue 7852002: Rename SmartPointer to SmartArrayPointer. (Closed) Base URL: git://github.com/v8/v8.git@trunk
Patch Set: fix col > 80 Created 9 years, 3 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 | « src/code-stubs.cc ('k') | src/d8.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 13 matching lines...) Expand all
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #ifndef V8_D8_H_ 28 #ifndef V8_D8_H_
29 #define V8_D8_H_ 29 #define V8_D8_H_
30 30
31 #ifndef V8_SHARED 31 #ifndef V8_SHARED
32 #include "allocation.h" 32 #include "allocation.h"
33 #include "hashmap.h" 33 #include "hashmap.h"
34 #include "smart-pointer.h" 34 #include "smart-array-pointer.h"
35 #include "v8.h" 35 #include "v8.h"
36 #else 36 #else
37 #include "../include/v8.h" 37 #include "../include/v8.h"
38 #endif // V8_SHARED 38 #endif // V8_SHARED
39 39
40 namespace v8 { 40 namespace v8 {
41 41
42 42
43 #ifndef V8_SHARED 43 #ifndef V8_SHARED
44 // A single counter in a counter collection. 44 // A single counter in a counter collection.
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 group_->ExecuteInThread(); 150 group_->ExecuteInThread();
151 } 151 }
152 152
153 private: 153 private:
154 SourceGroup* group_; 154 SourceGroup* group_;
155 }; 155 };
156 156
157 static i::Thread::Options GetThreadOptions(); 157 static i::Thread::Options GetThreadOptions();
158 void ExecuteInThread(); 158 void ExecuteInThread();
159 159
160 i::SmartPointer<i::Semaphore> next_semaphore_; 160 i::SmartArrayPointer<i::Semaphore> next_semaphore_;
161 i::SmartPointer<i::Semaphore> done_semaphore_; 161 i::SmartArrayPointer<i::Semaphore> done_semaphore_;
162 i::SmartPointer<i::Thread> thread_; 162 i::SmartArrayPointer<i::Thread> thread_;
163 #endif // V8_SHARED 163 #endif // V8_SHARED
164 164
165 void ExitShell(int exit_code); 165 void ExitShell(int exit_code);
166 Handle<String> ReadFile(const char* name); 166 Handle<String> ReadFile(const char* name);
167 167
168 const char** argv_; 168 const char** argv_;
169 int begin_offset_; 169 int begin_offset_;
170 int end_offset_; 170 int end_offset_;
171 }; 171 };
172 172
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 }; 329 };
330 330
331 331
332 #ifndef V8_SHARED 332 #ifndef V8_SHARED
333 class LineEditor { 333 class LineEditor {
334 public: 334 public:
335 enum Type { DUMB = 0, READLINE = 1 }; 335 enum Type { DUMB = 0, READLINE = 1 };
336 LineEditor(Type type, const char* name); 336 LineEditor(Type type, const char* name);
337 virtual ~LineEditor() { } 337 virtual ~LineEditor() { }
338 338
339 virtual i::SmartPointer<char> Prompt(const char* prompt) = 0; 339 virtual i::SmartArrayPointer<char> Prompt(const char* prompt) = 0;
340 virtual bool Open() { return true; } 340 virtual bool Open() { return true; }
341 virtual bool Close() { return true; } 341 virtual bool Close() { return true; }
342 virtual void AddHistory(const char* str) { } 342 virtual void AddHistory(const char* str) { }
343 343
344 const char* name() { return name_; } 344 const char* name() { return name_; }
345 static LineEditor* Get(); 345 static LineEditor* Get();
346 private: 346 private:
347 Type type_; 347 Type type_;
348 const char* name_; 348 const char* name_;
349 LineEditor* next_; 349 LineEditor* next_;
350 static LineEditor* first_; 350 static LineEditor* first_;
351 }; 351 };
352 #endif // V8_SHARED 352 #endif // V8_SHARED
353 353
354 354
355 } // namespace v8 355 } // namespace v8
356 356
357 357
358 #endif // V8_D8_H_ 358 #endif // V8_D8_H_
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/d8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698