OLD | NEW |
---|---|
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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
163 | 163 |
164 // ---------------------------------------------------------------------------- | 164 // ---------------------------------------------------------------------------- |
165 // Handle operations. | 165 // Handle operations. |
166 // They might invoke garbage collection. The result is an handle to | 166 // They might invoke garbage collection. The result is an handle to |
167 // an object of expected type, or the handle is an error if running out | 167 // an object of expected type, or the handle is an error if running out |
168 // of space or encountering an internal error. | 168 // of space or encountering an internal error. |
169 | 169 |
170 // Flattens a string. | 170 // Flattens a string. |
171 void FlattenString(Handle<String> str); | 171 void FlattenString(Handle<String> str); |
172 | 172 |
173 | |
rossberg
2012/03/12 10:55:05
Nit: accidental extra newline?
Erik Corry
2012/03/12 12:34:10
Done.
| |
173 // Flattens a string and returns the underlying external or sequential | 174 // Flattens a string and returns the underlying external or sequential |
174 // string. | 175 // string. |
175 Handle<String> FlattenGetString(Handle<String> str); | 176 Handle<String> FlattenGetString(Handle<String> str); |
176 | 177 |
178 int Utf8Length(Handle<String> str); | |
179 | |
177 Handle<Object> SetProperty(Handle<Object> object, | 180 Handle<Object> SetProperty(Handle<Object> object, |
178 Handle<Object> key, | 181 Handle<Object> key, |
179 Handle<Object> value, | 182 Handle<Object> value, |
180 PropertyAttributes attributes, | 183 PropertyAttributes attributes, |
181 StrictModeFlag strict_mode); | 184 StrictModeFlag strict_mode); |
182 | 185 |
183 Handle<Object> ForceSetProperty(Handle<JSObject> object, | 186 Handle<Object> ForceSetProperty(Handle<JSObject> object, |
184 Handle<Object> key, | 187 Handle<Object> key, |
185 Handle<Object> value, | 188 Handle<Object> value, |
186 PropertyAttributes attributes); | 189 PropertyAttributes attributes); |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
291 inline NoHandleAllocation(); | 294 inline NoHandleAllocation(); |
292 inline ~NoHandleAllocation(); | 295 inline ~NoHandleAllocation(); |
293 private: | 296 private: |
294 int level_; | 297 int level_; |
295 #endif | 298 #endif |
296 }; | 299 }; |
297 | 300 |
298 } } // namespace v8::internal | 301 } } // namespace v8::internal |
299 | 302 |
300 #endif // V8_HANDLES_H_ | 303 #endif // V8_HANDLES_H_ |
OLD | NEW |