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

Side by Side Diff: include/v8.h

Issue 1518703002: Re-re-land FastAccessorBuilder. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add test restrictions, as for test-api-fast-accessor-builder 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
139 namespace internal { 143 namespace internal {
140 class Arguments; 144 class Arguments;
141 class Heap; 145 class Heap;
142 class HeapObject; 146 class HeapObject;
143 class Isolate; 147 class Isolate;
144 class Object; 148 class Object;
145 struct StreamedSource; 149 struct StreamedSource;
146 template<typename T> class CustomArguments; 150 template<typename T> class CustomArguments;
147 class PropertyCallbackArguments; 151 class PropertyCallbackArguments;
148 class FunctionCallbackArguments; 152 class FunctionCallbackArguments;
(...skipping 4263 matching lines...) Expand 10 before | Expand all | Expand 10 after
4412 static Local<FunctionTemplate> New( 4416 static Local<FunctionTemplate> New(
4413 Isolate* isolate, FunctionCallback callback = 0, 4417 Isolate* isolate, FunctionCallback callback = 0,
4414 Local<Value> data = Local<Value>(), 4418 Local<Value> data = Local<Value>(),
4415 Local<Signature> signature = Local<Signature>(), int length = 0); 4419 Local<Signature> signature = Local<Signature>(), int length = 0);
4416 4420
4417 /** 4421 /**
4418 * Creates a function template with a fast handler. If a fast handler is set, 4422 * Creates a function template with a fast handler. If a fast handler is set,
4419 * the callback cannot be null. 4423 * the callback cannot be null.
4420 */ 4424 */
4421 static Local<FunctionTemplate> NewWithFastHandler( 4425 static Local<FunctionTemplate> NewWithFastHandler(
4422 Isolate* isolate, FunctionCallback callback, Local<Value> fast_handler, 4426 Isolate* isolate, FunctionCallback callback,
4427 experimental::FastAccessorBuilder* fast_handler = nullptr,
4423 Local<Value> data = Local<Value>(), 4428 Local<Value> data = Local<Value>(),
4424 Local<Signature> signature = Local<Signature>(), int length = 0); 4429 Local<Signature> signature = Local<Signature>(), int length = 0);
4425 4430
4426 /** Returns the unique function instance in the current execution context.*/ 4431 /** Returns the unique function instance in the current execution context.*/
4427 V8_DEPRECATE_SOON("Use maybe version", Local<Function> GetFunction()); 4432 V8_DEPRECATE_SOON("Use maybe version", Local<Function> GetFunction());
4428 V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction( 4433 V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
4429 Local<Context> context); 4434 Local<Context> context);
4430 4435
4431 /** 4436 /**
4432 * Set the call-handler callback for a FunctionTemplate. This 4437 * Set the call-handler callback for a FunctionTemplate. This
4433 * callback is called whenever the function created from this 4438 * callback is called whenever the function created from this
4434 * FunctionTemplate is called. 4439 * FunctionTemplate is called.
4435 */ 4440 */
4436 void SetCallHandler(FunctionCallback callback, 4441 void SetCallHandler(
4437 Local<Value> data = Local<Value>(), 4442 FunctionCallback callback, Local<Value> data = Local<Value>(),
4438 Local<Value> fast_handler = Local<Value>()); 4443 experimental::FastAccessorBuilder* fast_handler = nullptr);
4439 4444
4440 /** Set the predefined length property for the FunctionTemplate. */ 4445 /** Set the predefined length property for the FunctionTemplate. */
4441 void SetLength(int length); 4446 void SetLength(int length);
4442 4447
4443 /** Get the InstanceTemplate. */ 4448 /** Get the InstanceTemplate. */
4444 Local<ObjectTemplate> InstanceTemplate(); 4449 Local<ObjectTemplate> InstanceTemplate();
4445 4450
4446 /** Causes the function template to inherit from a parent function template.*/ 4451 /** Causes the function template to inherit from a parent function template.*/
4447 void Inherit(Local<FunctionTemplate> parent); 4452 void Inherit(Local<FunctionTemplate> parent);
4448 4453
(...skipping 4020 matching lines...) Expand 10 before | Expand all | Expand 10 after
8469 */ 8474 */
8470 8475
8471 8476
8472 } // namespace v8 8477 } // namespace v8
8473 8478
8474 8479
8475 #undef TYPE_CHECK 8480 #undef TYPE_CHECK
8476 8481
8477 8482
8478 #endif // INCLUDE_V8_H_ 8483 #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