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

Side by Side Diff: src/api.h

Issue 435003: Patch for allowing several V8 instances in process:... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 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 | Annotate | Revision Log
« no previous file with comments | « src/allocation.cc ('k') | src/api.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 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 void** values, int length) 141 void** values, int length)
142 : data_(data), holder_(holder), callee_(callee), 142 : data_(data), holder_(holder), callee_(callee),
143 is_construct_call_(is_construct_call), 143 is_construct_call_(is_construct_call),
144 values_(values), length_(length) { } 144 values_(values), length_(length) { }
145 145
146 146
147 enum ExtensionTraversalState { 147 enum ExtensionTraversalState {
148 UNVISITED, VISITED, INSTALLED 148 UNVISITED, VISITED, INSTALLED
149 }; 149 };
150 150
151 class RegisteredExtension;
152
153 class internal::ApiData {
154 public:
155 StringInputBuffer write_input_buffer_;
156 // To distinguish the function templates, so that we can find them in the
157 // function cache of the global context.
158 int next_serial_number_;
159
160 EmbeddedVector<char, 128> buffer_;
161
162 ApiData()
163 :next_serial_number_(0) {
164 }
165
166 DISALLOW_COPY_AND_ASSIGN(ApiData);
167 };
151 168
152 class RegisteredExtension { 169 class RegisteredExtension {
153 public: 170 public:
154 explicit RegisteredExtension(Extension* extension); 171 explicit RegisteredExtension(Extension* extension);
155 static void Register(RegisteredExtension* that); 172 static void Register(RegisteredExtension* that);
156 Extension* extension() { return extension_; } 173 Extension* extension() { return extension_; }
157 RegisteredExtension* next() { return next_; } 174 RegisteredExtension* next() { return next_; }
158 RegisteredExtension* next_auto() { return next_auto_; } 175 RegisteredExtension* next_auto() { return next_auto_; }
159 ExtensionTraversalState state() { return state_; } 176 ExtensionTraversalState state() { return state_; }
160 void set_state(ExtensionTraversalState value) { state_ = value; } 177 void set_state(ExtensionTraversalState value) { state_ = value; }
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 #ifdef DEBUG 487 #ifdef DEBUG
471 v8::ImplementationUtilities::ZapHandleRange( 488 v8::ImplementationUtilities::ZapHandleRange(
472 spare_, 489 spare_,
473 &spare_[kHandleBlockSize]); 490 &spare_[kHandleBlockSize]);
474 #endif 491 #endif
475 } 492 }
476 493
477 } } // namespace v8::internal 494 } } // namespace v8::internal
478 495
479 #endif // V8_API_H_ 496 #endif // V8_API_H_
OLDNEW
« no previous file with comments | « src/allocation.cc ('k') | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698