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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 // an object of expected type, or the handle is an error if running out | 287 // an object of expected type, or the handle is an error if running out |
288 // of space or encountering an internal error. | 288 // of space or encountering an internal error. |
289 | 289 |
290 // Flattens a string. | 290 // Flattens a string. |
291 void FlattenString(Handle<String> str); | 291 void FlattenString(Handle<String> str); |
292 | 292 |
293 // Flattens a string and returns the underlying external or sequential | 293 // Flattens a string and returns the underlying external or sequential |
294 // string. | 294 // string. |
295 Handle<String> FlattenGetString(Handle<String> str); | 295 Handle<String> FlattenGetString(Handle<String> str); |
296 | 296 |
297 Handle<Object> DeleteProperty(Handle<JSObject> object, Handle<Object> key); | |
298 | |
299 Handle<Object> ForceDeleteProperty(Handle<JSObject> object, Handle<Object> key); | |
300 | |
301 Handle<Object> HasProperty(Handle<JSReceiver> obj, Handle<Object> key); | |
302 | |
303 Handle<Object> GetProperty(Handle<JSReceiver> obj, const char* name); | 297 Handle<Object> GetProperty(Handle<JSReceiver> obj, const char* name); |
304 | 298 |
305 // Get the JS object corresponding to the given script; create it | 299 // Get the JS object corresponding to the given script; create it |
306 // if none exists. | 300 // if none exists. |
307 Handle<JSValue> GetScriptWrapper(Handle<Script> script); | 301 Handle<JSValue> GetScriptWrapper(Handle<Script> script); |
308 | 302 |
309 // Script line number computations. Note that the line number is zero-based. | 303 // Script line number computations. Note that the line number is zero-based. |
310 void InitScriptLineEnds(Handle<Script> script); | 304 void InitScriptLineEnds(Handle<Script> script); |
311 // For string calculates an array of line end positions. If the string | 305 // For string calculates an array of line end positions. If the string |
312 // does not end with a new line character, this character may optionally be | 306 // does not end with a new line character, this character may optionally be |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 | 364 |
371 void Initialize() { | 365 void Initialize() { |
372 next = limit = NULL; | 366 next = limit = NULL; |
373 level = 0; | 367 level = 0; |
374 } | 368 } |
375 }; | 369 }; |
376 | 370 |
377 } } // namespace v8::internal | 371 } } // namespace v8::internal |
378 | 372 |
379 #endif // V8_HANDLES_H_ | 373 #endif // V8_HANDLES_H_ |
OLD | NEW |