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

Side by Side Diff: include/v8.h

Issue 26709011: Expose v8::Function::GetDisplayName to public API. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: fixed test Created 7 years, 2 months 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
« no previous file with comments | « no previous file | src/api.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 2461 matching lines...) Expand 10 before | Expand all | Expand 10 after
2472 2472
2473 /** 2473 /**
2474 * Name inferred from variable or property assignment of this function. 2474 * Name inferred from variable or property assignment of this function.
2475 * Used to facilitate debugging and profiling of JavaScript code written 2475 * Used to facilitate debugging and profiling of JavaScript code written
2476 * in an OO style, where many functions are anonymous but are assigned 2476 * in an OO style, where many functions are anonymous but are assigned
2477 * to object properties. 2477 * to object properties.
2478 */ 2478 */
2479 Handle<Value> GetInferredName() const; 2479 Handle<Value> GetInferredName() const;
2480 2480
2481 /** 2481 /**
2482 * User-defined name assigned to the "displayName" property of this function.
2483 * Used to facilitate debugging and profiling of JavaScript code.
2484 */
2485 Handle<Value> GetDisplayName() const;
2486
2487 /**
2482 * Returns zero based line number of function body and 2488 * Returns zero based line number of function body and
2483 * kLineOffsetNotFound if no information available. 2489 * kLineOffsetNotFound if no information available.
2484 */ 2490 */
2485 int GetScriptLineNumber() const; 2491 int GetScriptLineNumber() const;
2486 /** 2492 /**
2487 * Returns zero based column number of function body and 2493 * Returns zero based column number of function body and
2488 * kLineOffsetNotFound if no information available. 2494 * kLineOffsetNotFound if no information available.
2489 */ 2495 */
2490 int GetScriptColumnNumber() const; 2496 int GetScriptColumnNumber() const;
2491 2497
(...skipping 4001 matching lines...) Expand 10 before | Expand all | Expand 10 after
6493 */ 6499 */
6494 6500
6495 6501
6496 } // namespace v8 6502 } // namespace v8
6497 6503
6498 6504
6499 #undef TYPE_CHECK 6505 #undef TYPE_CHECK
6500 6506
6501 6507
6502 #endif // V8_H_ 6508 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698