| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |