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

Side by Side Diff: include/v8.h

Issue 106763002: Get information about original function from bound function (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Code review response Created 7 years 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 | « 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 2647 matching lines...) Expand 10 before | Expand all | Expand 10 after
2658 /** 2658 /**
2659 * Returns scriptId object. 2659 * Returns scriptId object.
2660 */ 2660 */
2661 V8_DEPRECATED("Use ScriptId instead", Handle<Value> GetScriptId() const); 2661 V8_DEPRECATED("Use ScriptId instead", Handle<Value> GetScriptId() const);
2662 2662
2663 /** 2663 /**
2664 * Returns scriptId. 2664 * Returns scriptId.
2665 */ 2665 */
2666 int ScriptId() const; 2666 int ScriptId() const;
2667 2667
2668 /**
2669 * Returns the original function if this function is bound, else returns
2670 * v8::Undefined.
2671 */
2672 Local<Value> GetBoundFunction() const;
2673
2668 ScriptOrigin GetScriptOrigin() const; 2674 ScriptOrigin GetScriptOrigin() const;
2669 V8_INLINE static Function* Cast(Value* obj); 2675 V8_INLINE static Function* Cast(Value* obj);
2670 static const int kLineOffsetNotFound; 2676 static const int kLineOffsetNotFound;
2671 2677
2672 private: 2678 private:
2673 Function(); 2679 Function();
2674 static void CheckCast(Value* obj); 2680 static void CheckCast(Value* obj);
2675 }; 2681 };
2676 2682
2677 #ifndef V8_ARRAY_BUFFER_INTERNAL_FIELD_COUNT 2683 #ifndef V8_ARRAY_BUFFER_INTERNAL_FIELD_COUNT
(...skipping 4065 matching lines...) Expand 10 before | Expand all | Expand 10 after
6743 */ 6749 */
6744 6750
6745 6751
6746 } // namespace v8 6752 } // namespace v8
6747 6753
6748 6754
6749 #undef TYPE_CHECK 6755 #undef TYPE_CHECK
6750 6756
6751 6757
6752 #endif // V8_H_ 6758 #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