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

Side by Side Diff: src/d8.h

Issue 7860016: Fix v8 shared library build by wrapping SourceGroup dtor into an ifndef V8_SHARED check. (Closed) Base URL: git://github.com/v8/v8.git@bleeding_edge
Patch Set: 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 | « no previous file | 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 SourceGroup() : 120 SourceGroup() :
121 #ifndef V8_SHARED 121 #ifndef V8_SHARED
122 next_semaphore_(v8::internal::OS::CreateSemaphore(0)), 122 next_semaphore_(v8::internal::OS::CreateSemaphore(0)),
123 done_semaphore_(v8::internal::OS::CreateSemaphore(0)), 123 done_semaphore_(v8::internal::OS::CreateSemaphore(0)),
124 thread_(NULL), 124 thread_(NULL),
125 #endif // V8_SHARED 125 #endif // V8_SHARED
126 argv_(NULL), 126 argv_(NULL),
127 begin_offset_(0), 127 begin_offset_(0),
128 end_offset_(0) {} 128 end_offset_(0) {}
129 129
130 #ifndef V8_SHARED
130 ~SourceGroup(); 131 ~SourceGroup();
132 #endif
131 133
132 void Begin(char** argv, int offset) { 134 void Begin(char** argv, int offset) {
133 argv_ = const_cast<const char**>(argv); 135 argv_ = const_cast<const char**>(argv);
134 begin_offset_ = offset; 136 begin_offset_ = offset;
135 } 137 }
136 138
137 void End(int offset) { end_offset_ = offset; } 139 void End(int offset) { end_offset_ = offset; }
138 140
139 void Execute(); 141 void Execute();
140 142
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 LineEditor* next_; 354 LineEditor* next_;
353 static LineEditor* first_; 355 static LineEditor* first_;
354 }; 356 };
355 #endif // V8_SHARED 357 #endif // V8_SHARED
356 358
357 359
358 } // namespace v8 360 } // namespace v8
359 361
360 362
361 #endif // V8_D8_H_ 363 #endif // V8_D8_H_
OLDNEW
« no previous file with comments | « no previous file | src/d8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698