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 274 matching lines...) Loading... |
285 // Script line number computations. | 285 // Script line number computations. |
286 void InitScriptLineEnds(Handle<Script> script); | 286 void InitScriptLineEnds(Handle<Script> script); |
287 // For string calculates an array of line end positions. If the string | 287 // For string calculates an array of line end positions. If the string |
288 // does not end with a new line character, this character may optionally be | 288 // does not end with a new line character, this character may optionally be |
289 // imagined. | 289 // imagined. |
290 Handle<FixedArray> CalculateLineEnds(Handle<String> string, | 290 Handle<FixedArray> CalculateLineEnds(Handle<String> string, |
291 bool with_imaginary_last_new_line); | 291 bool with_imaginary_last_new_line); |
292 int GetScriptLineNumber(Handle<Script> script, int code_position); | 292 int GetScriptLineNumber(Handle<Script> script, int code_position); |
293 // The safe version does not make heap allocations but may work much slower. | 293 // The safe version does not make heap allocations but may work much slower. |
294 int GetScriptLineNumberSafe(Handle<Script> script, int code_position); | 294 int GetScriptLineNumberSafe(Handle<Script> script, int code_position); |
| 295 int GetScriptColumnNumber(Handle<Script> script, int code_position); |
295 | 296 |
296 // Computes the enumerable keys from interceptors. Used for debug mirrors and | 297 // Computes the enumerable keys from interceptors. Used for debug mirrors and |
297 // by GetKeysInFixedArrayFor below. | 298 // by GetKeysInFixedArrayFor below. |
298 v8::Handle<v8::Array> GetKeysForNamedInterceptor(Handle<JSReceiver> receiver, | 299 v8::Handle<v8::Array> GetKeysForNamedInterceptor(Handle<JSReceiver> receiver, |
299 Handle<JSObject> object); | 300 Handle<JSObject> object); |
300 v8::Handle<v8::Array> GetKeysForIndexedInterceptor(Handle<JSReceiver> receiver, | 301 v8::Handle<v8::Array> GetKeysForIndexedInterceptor(Handle<JSReceiver> receiver, |
301 Handle<JSObject> object); | 302 Handle<JSObject> object); |
302 | 303 |
303 enum KeyCollectionType { LOCAL_ONLY, INCLUDE_PROTOS }; | 304 enum KeyCollectionType { LOCAL_ONLY, INCLUDE_PROTOS }; |
304 | 305 |
(...skipping 56 matching lines...) Loading... |
361 inline NoHandleAllocation(); | 362 inline NoHandleAllocation(); |
362 inline ~NoHandleAllocation(); | 363 inline ~NoHandleAllocation(); |
363 private: | 364 private: |
364 int level_; | 365 int level_; |
365 #endif | 366 #endif |
366 }; | 367 }; |
367 | 368 |
368 } } // namespace v8::internal | 369 } } // namespace v8::internal |
369 | 370 |
370 #endif // V8_HANDLES_H_ | 371 #endif // V8_HANDLES_H_ |
OLD | NEW |