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

Side by Side Diff: include/v8.h

Issue 179983002: initialize v8::Private with v8::String (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1915 matching lines...) Expand 10 before | Expand all | Expand 10 after
1926 * A private symbol 1926 * A private symbol
1927 * 1927 *
1928 * This is an experimental feature. Use at your own risk. 1928 * This is an experimental feature. Use at your own risk.
1929 */ 1929 */
1930 class V8_EXPORT Private : public Data { 1930 class V8_EXPORT Private : public Data {
1931 public: 1931 public:
1932 // Returns the print name string of the private symbol, or undefined if none. 1932 // Returns the print name string of the private symbol, or undefined if none.
1933 Local<Value> Name() const; 1933 Local<Value> Name() const;
1934 1934
1935 // Create a private symbol. If data is not NULL, it will be the print name. 1935 // Create a private symbol. If data is not NULL, it will be the print name.
1936 static Local<Private> New( 1936 static Local<Private> New(Isolate *isolate,
1937 Isolate *isolate, const char* data = NULL, int length = -1); 1937 Local<String> name = Local<String>());
1938 1938
1939 private: 1939 private:
1940 Private(); 1940 Private();
1941 }; 1941 };
1942 1942
1943 1943
1944 /** 1944 /**
1945 * A JavaScript number value (ECMA-262, 4.3.20) 1945 * A JavaScript number value (ECMA-262, 4.3.20)
1946 */ 1946 */
1947 class V8_EXPORT Number : public Primitive { 1947 class V8_EXPORT Number : public Primitive {
(...skipping 4507 matching lines...) Expand 10 before | Expand all | Expand 10 after
6455 */ 6455 */
6456 6456
6457 6457
6458 } // namespace v8 6458 } // namespace v8
6459 6459
6460 6460
6461 #undef TYPE_CHECK 6461 #undef TYPE_CHECK
6462 6462
6463 6463
6464 #endif // V8_H_ 6464 #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