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

Side by Side Diff: src/factory.h

Issue 7978028: Landing for miket@chromium.org: Add an optional source length field to the Extension constructor. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 3 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 | « src/bootstrapper.cc ('k') | src/factory.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // Create a new string object which holds a proper substring of a string. 138 // Create a new string object which holds a proper substring of a string.
139 Handle<String> NewProperSubString(Handle<String> str, 139 Handle<String> NewProperSubString(Handle<String> str,
140 int begin, 140 int begin,
141 int end); 141 int end);
142 142
143 // Creates a new external String object. There are two String encodings 143 // Creates a new external String object. There are two String encodings
144 // in the system: ASCII and two byte. Unlike other String types, it does 144 // in the system: ASCII and two byte. Unlike other String types, it does
145 // not make sense to have a UTF-8 factory function for external strings, 145 // not make sense to have a UTF-8 factory function for external strings,
146 // because we cannot change the underlying buffer. 146 // because we cannot change the underlying buffer.
147 Handle<String> NewExternalStringFromAscii( 147 Handle<String> NewExternalStringFromAscii(
148 ExternalAsciiString::Resource* resource); 148 const ExternalAsciiString::Resource* resource);
149 Handle<String> NewExternalStringFromTwoByte( 149 Handle<String> NewExternalStringFromTwoByte(
150 ExternalTwoByteString::Resource* resource); 150 const ExternalTwoByteString::Resource* resource);
151 151
152 // Create a global (but otherwise uninitialized) context. 152 // Create a global (but otherwise uninitialized) context.
153 Handle<Context> NewGlobalContext(); 153 Handle<Context> NewGlobalContext();
154 154
155 // Create a function context. 155 // Create a function context.
156 Handle<Context> NewFunctionContext(int length, 156 Handle<Context> NewFunctionContext(int length,
157 Handle<JSFunction> function); 157 Handle<JSFunction> function);
158 158
159 // Create a catch context. 159 // Create a catch context.
160 Handle<Context> NewCatchContext(Handle<JSFunction> function, 160 Handle<Context> NewCatchContext(Handle<JSFunction> function,
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 // Update the map cache in the global context with (keys, map) 457 // Update the map cache in the global context with (keys, map)
458 Handle<MapCache> AddToMapCache(Handle<Context> context, 458 Handle<MapCache> AddToMapCache(Handle<Context> context,
459 Handle<FixedArray> keys, 459 Handle<FixedArray> keys,
460 Handle<Map> map); 460 Handle<Map> map);
461 }; 461 };
462 462
463 463
464 } } // namespace v8::internal 464 } } // namespace v8::internal
465 465
466 #endif // V8_FACTORY_H_ 466 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698