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

Side by Side Diff: include/v8.h

Issue 617263003: Introduce v8::Object::GetIsolate(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 months 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 | « no previous file | src/api.cc » ('j') | src/api.cc » ('J')
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 2568 matching lines...) Expand 10 before | Expand all | Expand 10 after
2579 int argc, 2579 int argc,
2580 Handle<Value> argv[]); 2580 Handle<Value> argv[]);
2581 2581
2582 /** 2582 /**
2583 * Call an Object as a constructor if a callback is set by the 2583 * Call an Object as a constructor if a callback is set by the
2584 * ObjectTemplate::SetCallAsFunctionHandler method. 2584 * ObjectTemplate::SetCallAsFunctionHandler method.
2585 * Note: This method behaves like the Function::NewInstance method. 2585 * Note: This method behaves like the Function::NewInstance method.
2586 */ 2586 */
2587 Local<Value> CallAsConstructor(int argc, Handle<Value> argv[]); 2587 Local<Value> CallAsConstructor(int argc, Handle<Value> argv[]);
2588 2588
2589 /**
2590 * Return the isolate to which the Object belongs to.
2591 */
2592 Isolate* GetIsolate();
2593
2589 static Local<Object> New(Isolate* isolate); 2594 static Local<Object> New(Isolate* isolate);
2590 2595
2591 V8_INLINE static Object* Cast(Value* obj); 2596 V8_INLINE static Object* Cast(Value* obj);
2592 2597
2593 private: 2598 private:
2594 Object(); 2599 Object();
2595 static void CheckCast(Value* obj); 2600 static void CheckCast(Value* obj);
2596 Local<Value> SlowGetInternalField(int index); 2601 Local<Value> SlowGetInternalField(int index);
2597 void* SlowGetAlignedPointerFromInternalField(int index); 2602 void* SlowGetAlignedPointerFromInternalField(int index);
2598 }; 2603 };
(...skipping 4434 matching lines...) Expand 10 before | Expand all | Expand 10 after
7033 */ 7038 */
7034 7039
7035 7040
7036 } // namespace v8 7041 } // namespace v8
7037 7042
7038 7043
7039 #undef TYPE_CHECK 7044 #undef TYPE_CHECK
7040 7045
7041 7046
7042 #endif // V8_H_ 7047 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698