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

Side by Side Diff: include/v8.h

Issue 1268333004: Introduce object visitor to estimate the size of a native context. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix compare Created 5 years, 4 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
« no previous file with comments | « BUILD.gn ('k') | src/api.cc » ('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 6644 matching lines...) Expand 10 before | Expand all | Expand 10 after
6655 bool IsCodeGenerationFromStringsAllowed(); 6655 bool IsCodeGenerationFromStringsAllowed();
6656 6656
6657 /** 6657 /**
6658 * Sets the error description for the exception that is thrown when 6658 * Sets the error description for the exception that is thrown when
6659 * code generation from strings is not allowed and 'eval' or the 'Function' 6659 * code generation from strings is not allowed and 'eval' or the 'Function'
6660 * constructor are called. 6660 * constructor are called.
6661 */ 6661 */
6662 void SetErrorMessageForCodeGenerationFromStrings(Local<String> message); 6662 void SetErrorMessageForCodeGenerationFromStrings(Local<String> message);
6663 6663
6664 /** 6664 /**
6665 * Estimate the memory in bytes retained by this context.
6666 */
6667 size_t EstimatedSize();
6668
6669 /**
6665 * Stack-allocated class which sets the execution context for all 6670 * Stack-allocated class which sets the execution context for all
6666 * operations executed within a local scope. 6671 * operations executed within a local scope.
6667 */ 6672 */
6668 class Scope { 6673 class Scope {
6669 public: 6674 public:
6670 explicit V8_INLINE Scope(Local<Context> context) : context_(context) { 6675 explicit V8_INLINE Scope(Local<Context> context) : context_(context) {
6671 context_->Enter(); 6676 context_->Enter();
6672 } 6677 }
6673 V8_INLINE ~Scope() { context_->Exit(); } 6678 V8_INLINE ~Scope() { context_->Exit(); }
6674 6679
(...skipping 1637 matching lines...) Expand 10 before | Expand all | Expand 10 after
8312 */ 8317 */
8313 8318
8314 8319
8315 } // namespace v8 8320 } // namespace v8
8316 8321
8317 8322
8318 #undef TYPE_CHECK 8323 #undef TYPE_CHECK
8319 8324
8320 8325
8321 #endif // V8_H_ 8326 #endif // V8_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698