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

Side by Side Diff: include/v8.h

Issue 1513203002: Revert of Implement Fast Accessor Builder (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « BUILD.gn ('k') | include/v8-experimental.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 /** \mainpage V8 API Reference Guide 5 /** \mainpage V8 API Reference Guide
6 * 6 *
7 * V8 is Google's open source JavaScript engine. 7 * V8 is Google's open source JavaScript engine.
8 * 8 *
9 * This set of documents provides reference material generated from the 9 * This set of documents provides reference material generated from the
10 * V8 header file, include/v8.h. 10 * V8 header file, include/v8.h.
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 class Data; 129 class Data;
130 template<typename T> class FunctionCallbackInfo; 130 template<typename T> class FunctionCallbackInfo;
131 template<typename T> class PropertyCallbackInfo; 131 template<typename T> class PropertyCallbackInfo;
132 class StackTrace; 132 class StackTrace;
133 class StackFrame; 133 class StackFrame;
134 class Isolate; 134 class Isolate;
135 class CallHandlerHelper; 135 class CallHandlerHelper;
136 class EscapableHandleScope; 136 class EscapableHandleScope;
137 template<typename T> class ReturnValue; 137 template<typename T> class ReturnValue;
138 138
139 namespace experimental {
140 class FastAccessorBuilder;
141 } // namespace experimental
142
143 namespace internal { 139 namespace internal {
144 class Arguments; 140 class Arguments;
145 class Heap; 141 class Heap;
146 class HeapObject; 142 class HeapObject;
147 class Isolate; 143 class Isolate;
148 class Object; 144 class Object;
149 struct StreamedSource; 145 struct StreamedSource;
150 template<typename T> class CustomArguments; 146 template<typename T> class CustomArguments;
151 class PropertyCallbackArguments; 147 class PropertyCallbackArguments;
152 class FunctionCallbackArguments; 148 class FunctionCallbackArguments;
(...skipping 4263 matching lines...) Expand 10 before | Expand all | Expand 10 after
4416 static Local<FunctionTemplate> New( 4412 static Local<FunctionTemplate> New(
4417 Isolate* isolate, FunctionCallback callback = 0, 4413 Isolate* isolate, FunctionCallback callback = 0,
4418 Local<Value> data = Local<Value>(), 4414 Local<Value> data = Local<Value>(),
4419 Local<Signature> signature = Local<Signature>(), int length = 0); 4415 Local<Signature> signature = Local<Signature>(), int length = 0);
4420 4416
4421 /** 4417 /**
4422 * Creates a function template with a fast handler. If a fast handler is set, 4418 * Creates a function template with a fast handler. If a fast handler is set,
4423 * the callback cannot be null. 4419 * the callback cannot be null.
4424 */ 4420 */
4425 static Local<FunctionTemplate> NewWithFastHandler( 4421 static Local<FunctionTemplate> NewWithFastHandler(
4426 Isolate* isolate, FunctionCallback callback, 4422 Isolate* isolate, FunctionCallback callback, Local<Value> fast_handler,
4427 experimental::FastAccessorBuilder* fast_handler = nullptr,
4428 Local<Value> data = Local<Value>(), 4423 Local<Value> data = Local<Value>(),
4429 Local<Signature> signature = Local<Signature>(), int length = 0); 4424 Local<Signature> signature = Local<Signature>(), int length = 0);
4430 4425
4431 /** Returns the unique function instance in the current execution context.*/ 4426 /** Returns the unique function instance in the current execution context.*/
4432 V8_DEPRECATE_SOON("Use maybe version", Local<Function> GetFunction()); 4427 V8_DEPRECATE_SOON("Use maybe version", Local<Function> GetFunction());
4433 V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction( 4428 V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
4434 Local<Context> context); 4429 Local<Context> context);
4435 4430
4436 /** 4431 /**
4437 * Set the call-handler callback for a FunctionTemplate. This 4432 * Set the call-handler callback for a FunctionTemplate. This
4438 * callback is called whenever the function created from this 4433 * callback is called whenever the function created from this
4439 * FunctionTemplate is called. 4434 * FunctionTemplate is called.
4440 */ 4435 */
4441 void SetCallHandler( 4436 void SetCallHandler(FunctionCallback callback,
4442 FunctionCallback callback, Local<Value> data = Local<Value>(), 4437 Local<Value> data = Local<Value>(),
4443 experimental::FastAccessorBuilder* fast_handler = nullptr); 4438 Local<Value> fast_handler = Local<Value>());
4444 4439
4445 /** Set the predefined length property for the FunctionTemplate. */ 4440 /** Set the predefined length property for the FunctionTemplate. */
4446 void SetLength(int length); 4441 void SetLength(int length);
4447 4442
4448 /** Get the InstanceTemplate. */ 4443 /** Get the InstanceTemplate. */
4449 Local<ObjectTemplate> InstanceTemplate(); 4444 Local<ObjectTemplate> InstanceTemplate();
4450 4445
4451 /** Causes the function template to inherit from a parent function template.*/ 4446 /** Causes the function template to inherit from a parent function template.*/
4452 void Inherit(Local<FunctionTemplate> parent); 4447 void Inherit(Local<FunctionTemplate> parent);
4453 4448
(...skipping 4020 matching lines...) Expand 10 before | Expand all | Expand 10 after
8474 */ 8469 */
8475 8470
8476 8471
8477 } // namespace v8 8472 } // namespace v8
8478 8473
8479 8474
8480 #undef TYPE_CHECK 8475 #undef TYPE_CHECK
8481 8476
8482 8477
8483 #endif // INCLUDE_V8_H_ 8478 #endif // INCLUDE_V8_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | include/v8-experimental.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698