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

Side by Side Diff: include/v8.h

Issue 1474543004: Implement Fast Accessor Builder (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review feedback. 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
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 4260 matching lines...) Expand 10 before | Expand all | Expand 10 after
4409 /** Creates a function template.*/ 4413 /** Creates a function template.*/
4410 static Local<FunctionTemplate> New( 4414 static Local<FunctionTemplate> New(
4411 Isolate* isolate, FunctionCallback callback = 0, 4415 Isolate* isolate, FunctionCallback callback = 0,
4412 Local<Value> data = Local<Value>(), 4416 Local<Value> data = Local<Value>(),
4413 Local<Signature> signature = Local<Signature>(), int length = 0); 4417 Local<Signature> signature = Local<Signature>(), int length = 0);
4414 4418
4415 /** 4419 /**
4416 * Creates a function template with a fast handler. If a fast handler is set, 4420 * Creates a function template with a fast handler. If a fast handler is set,
4417 * the callback cannot be null. 4421 * the callback cannot be null.
4418 */ 4422 */
4419 static Local<FunctionTemplate> NewWithFastHandler( 4423 static Local<FunctionTemplate> NewWithFastHandler(
epertoso 2015/12/04 09:56:32 Why do we need two versions of this? The second on
vogelheim 2015/12/08 12:52:56 Done. Yeah, that was an editing leftover.
4424 Isolate* isolate, FunctionCallback callback,
4425 experimental::FastAccessorBuilder* fast_handler = nullptr,
4426 Local<Value> data = Local<Value>(),
4427 Local<Signature> signature = Local<Signature>(), int length = 0);
4428
4429 /**
4430 * Creates a function template with a fast handler. If a fast handler is set,
4431 * the callback cannot be null.
4432 */
4433 static Local<FunctionTemplate> NewWithFastHandler(
4420 Isolate* isolate, FunctionCallback callback, Local<Value> fast_handler, 4434 Isolate* isolate, FunctionCallback callback, Local<Value> fast_handler,
4421 Local<Value> data = Local<Value>(), 4435 Local<Value> data = Local<Value>(),
4422 Local<Signature> signature = Local<Signature>(), int length = 0); 4436 Local<Signature> signature = Local<Signature>(), int length = 0);
4423 4437
4424 /** Returns the unique function instance in the current execution context.*/ 4438 /** Returns the unique function instance in the current execution context.*/
4425 V8_DEPRECATE_SOON("Use maybe version", Local<Function> GetFunction()); 4439 V8_DEPRECATE_SOON("Use maybe version", Local<Function> GetFunction());
4426 V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction( 4440 V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
4427 Local<Context> context); 4441 Local<Context> context);
4428 4442
4429 /** 4443 /**
4430 * Set the call-handler callback for a FunctionTemplate. This 4444 * Set the call-handler callback for a FunctionTemplate. This
4431 * callback is called whenever the function created from this 4445 * callback is called whenever the function created from this
4432 * FunctionTemplate is called. 4446 * FunctionTemplate is called.
4433 */ 4447 */
4434 void SetCallHandler(FunctionCallback callback, 4448 void SetCallHandler(
4435 Local<Value> data = Local<Value>(), 4449 FunctionCallback callback, Local<Value> data = Local<Value>(),
4436 Local<Value> fast_handler = Local<Value>()); 4450 experimental::FastAccessorBuilder* fast_handler = nullptr);
4437 4451
4438 /** Set the predefined length property for the FunctionTemplate. */ 4452 /** Set the predefined length property for the FunctionTemplate. */
4439 void SetLength(int length); 4453 void SetLength(int length);
4440 4454
4441 /** Get the InstanceTemplate. */ 4455 /** Get the InstanceTemplate. */
4442 Local<ObjectTemplate> InstanceTemplate(); 4456 Local<ObjectTemplate> InstanceTemplate();
4443 4457
4444 /** Causes the function template to inherit from a parent function template.*/ 4458 /** Causes the function template to inherit from a parent function template.*/
4445 void Inherit(Local<FunctionTemplate> parent); 4459 void Inherit(Local<FunctionTemplate> parent);
4446 4460
(...skipping 4020 matching lines...) Expand 10 before | Expand all | Expand 10 after
8467 */ 8481 */
8468 8482
8469 8483
8470 } // namespace v8 8484 } // namespace v8
8471 8485
8472 8486
8473 #undef TYPE_CHECK 8487 #undef TYPE_CHECK
8474 8488
8475 8489
8476 #endif // V8_H_ 8490 #endif // V8_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | include/v8-experimental.h » ('j') | include/v8-experimental.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698