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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 void InitScriptLineEnds(Handle<Script> script); | 260 void InitScriptLineEnds(Handle<Script> script); |
261 // For string calculates an array of line end positions. If the string | 261 // For string calculates an array of line end positions. If the string |
262 // does not end with a new line character, this character may optionally be | 262 // does not end with a new line character, this character may optionally be |
263 // imagined. | 263 // imagined. |
264 Handle<FixedArray> CalculateLineEnds(Handle<String> string, | 264 Handle<FixedArray> CalculateLineEnds(Handle<String> string, |
265 bool with_imaginary_last_new_line); | 265 bool with_imaginary_last_new_line); |
266 int GetScriptLineNumber(Handle<Script> script, int code_position); | 266 int GetScriptLineNumber(Handle<Script> script, int code_position); |
267 // The safe version does not make heap allocations but may work much slower. | 267 // The safe version does not make heap allocations but may work much slower. |
268 int GetScriptLineNumberSafe(Handle<Script> script, int code_position); | 268 int GetScriptLineNumberSafe(Handle<Script> script, int code_position); |
269 int GetScriptColumnNumber(Handle<Script> script, int code_position); | 269 int GetScriptColumnNumber(Handle<Script> script, int code_position); |
| 270 Handle<Object> GetScriptNameOrSourceURL(Handle<Script> script); |
270 | 271 |
271 // Computes the enumerable keys from interceptors. Used for debug mirrors and | 272 // Computes the enumerable keys from interceptors. Used for debug mirrors and |
272 // by GetKeysInFixedArrayFor below. | 273 // by GetKeysInFixedArrayFor below. |
273 v8::Handle<v8::Array> GetKeysForNamedInterceptor(Handle<JSReceiver> receiver, | 274 v8::Handle<v8::Array> GetKeysForNamedInterceptor(Handle<JSReceiver> receiver, |
274 Handle<JSObject> object); | 275 Handle<JSObject> object); |
275 v8::Handle<v8::Array> GetKeysForIndexedInterceptor(Handle<JSReceiver> receiver, | 276 v8::Handle<v8::Array> GetKeysForIndexedInterceptor(Handle<JSReceiver> receiver, |
276 Handle<JSObject> object); | 277 Handle<JSObject> object); |
277 | 278 |
278 enum KeyCollectionType { LOCAL_ONLY, INCLUDE_PROTOS }; | 279 enum KeyCollectionType { LOCAL_ONLY, INCLUDE_PROTOS }; |
279 | 280 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 inline ~NoHandleAllocation(); | 336 inline ~NoHandleAllocation(); |
336 private: | 337 private: |
337 int level_; | 338 int level_; |
338 bool active_; | 339 bool active_; |
339 #endif | 340 #endif |
340 }; | 341 }; |
341 | 342 |
342 } } // namespace v8::internal | 343 } } // namespace v8::internal |
343 | 344 |
344 #endif // V8_HANDLES_H_ | 345 #endif // V8_HANDLES_H_ |
OLD | NEW |