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

Side by Side Diff: src/handles.h

Issue 8508008: Add getters for column number and script id to v8::Function (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 1 month 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/api.cc ('k') | src/handles.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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
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...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698