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

Side by Side Diff: include/v8.h

Issue 281753004: Drop thenable coercion cache (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Test Created 6 years, 7 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/promise.js » ('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 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after
1033 CachedData(const uint8_t* data, int length, 1033 CachedData(const uint8_t* data, int length,
1034 BufferPolicy buffer_policy = BufferNotOwned); 1034 BufferPolicy buffer_policy = BufferNotOwned);
1035 ~CachedData(); 1035 ~CachedData();
1036 // TODO(marja): Async compilation; add constructors which take a callback 1036 // TODO(marja): Async compilation; add constructors which take a callback
1037 // which will be called when V8 no longer needs the data. 1037 // which will be called when V8 no longer needs the data.
1038 const uint8_t* data; 1038 const uint8_t* data;
1039 int length; 1039 int length;
1040 BufferPolicy buffer_policy; 1040 BufferPolicy buffer_policy;
1041 1041
1042 private: 1042 private:
1043 // Prevent copying. Not implemented. 1043 // Prevent copying. Not implemented.
1044 CachedData(const CachedData&); 1044 CachedData(const CachedData&);
1045 CachedData& operator=(const CachedData&); 1045 CachedData& operator=(const CachedData&);
1046 }; 1046 };
1047 1047
1048 /** 1048 /**
1049 * Source code which can be then compiled to a UnboundScript or 1049 * Source code which can be then compiled to a UnboundScript or
1050 * BoundScript. 1050 * BoundScript.
1051 */ 1051 */
1052 class Source { 1052 class Source {
1053 public: 1053 public:
1054 // Source takes ownership of CachedData. 1054 // Source takes ownership of CachedData.
1055 V8_INLINE Source(Local<String> source_string, const ScriptOrigin& origin, 1055 V8_INLINE Source(Local<String> source_string, const ScriptOrigin& origin,
1056 CachedData* cached_data = NULL); 1056 CachedData* cached_data = NULL);
1057 V8_INLINE Source(Local<String> source_string, 1057 V8_INLINE Source(Local<String> source_string,
1058 CachedData* cached_data = NULL); 1058 CachedData* cached_data = NULL);
1059 V8_INLINE ~Source(); 1059 V8_INLINE ~Source();
1060 1060
1061 // Ownership of the CachedData or its buffers is *not* transferred to the 1061 // Ownership of the CachedData or its buffers is *not* transferred to the
1062 // caller. The CachedData object is alive as long as the Source object is 1062 // caller. The CachedData object is alive as long as the Source object is
1063 // alive. 1063 // alive.
1064 V8_INLINE const CachedData* GetCachedData() const; 1064 V8_INLINE const CachedData* GetCachedData() const;
1065 1065
1066 private: 1066 private:
1067 friend class ScriptCompiler; 1067 friend class ScriptCompiler;
1068 // Prevent copying. Not implemented. 1068 // Prevent copying. Not implemented.
1069 Source(const Source&); 1069 Source(const Source&);
1070 Source& operator=(const Source&); 1070 Source& operator=(const Source&);
1071 1071
1072 Local<String> source_string; 1072 Local<String> source_string;
1073 1073
1074 // Origin information 1074 // Origin information
1075 Handle<Value> resource_name; 1075 Handle<Value> resource_name;
1076 Handle<Integer> resource_line_offset; 1076 Handle<Integer> resource_line_offset;
1077 Handle<Integer> resource_column_offset; 1077 Handle<Integer> resource_column_offset;
1078 Handle<Boolean> resource_is_shared_cross_origin; 1078 Handle<Boolean> resource_is_shared_cross_origin;
(...skipping 5539 matching lines...) Expand 10 before | Expand all | Expand 10 after
6618 */ 6618 */
6619 6619
6620 6620
6621 } // namespace v8 6621 } // namespace v8
6622 6622
6623 6623
6624 #undef TYPE_CHECK 6624 #undef TYPE_CHECK
6625 6625
6626 6626
6627 #endif // V8_H_ 6627 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/promise.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698