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

Side by Side Diff: src/objects.h

Issue 2156303002: Implement new Function.prototype.toString and fix CreateDynamicFunction parsing (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix async function constructor Created 4 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
« no previous file with comments | « src/messages.h ('k') | src/objects.cc » ('j') | src/objects.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 7667 matching lines...) Expand 10 before | Expand all | Expand 10 after
7678 inline BailoutReason disable_optimization_reason(); 7678 inline BailoutReason disable_optimization_reason();
7679 7679
7680 // Lookup the bailout ID and DCHECK that it exists in the non-optimized 7680 // Lookup the bailout ID and DCHECK that it exists in the non-optimized
7681 // code, returns whether it asserted (i.e., always true if assertions are 7681 // code, returns whether it asserted (i.e., always true if assertions are
7682 // disabled). 7682 // disabled).
7683 bool VerifyBailoutId(BailoutId id); 7683 bool VerifyBailoutId(BailoutId id);
7684 7684
7685 // [source code]: Source code for the function. 7685 // [source code]: Source code for the function.
7686 bool HasSourceCode() const; 7686 bool HasSourceCode() const;
7687 Handle<Object> GetSourceCode(); 7687 Handle<Object> GetSourceCode();
7688 Handle<Object> GetSourceCodeHarmony();
7688 7689
7689 // Number of times the function was optimized. 7690 // Number of times the function was optimized.
7690 inline int opt_count(); 7691 inline int opt_count();
7691 inline void set_opt_count(int opt_count); 7692 inline void set_opt_count(int opt_count);
7692 7693
7693 // Number of times the function was deoptimized. 7694 // Number of times the function was deoptimized.
7694 inline void set_deopt_count(int value); 7695 inline void set_deopt_count(int value);
7695 inline int deopt_count(); 7696 inline int deopt_count();
7696 inline void increment_deopt_count(); 7697 inline void increment_deopt_count();
7697 7698
(...skipping 4045 matching lines...) Expand 10 before | Expand all | Expand 10 after
11743 } 11744 }
11744 return value; 11745 return value;
11745 } 11746 }
11746 }; 11747 };
11747 11748
11748 11749
11749 } // NOLINT, false-positive due to second-order macros. 11750 } // NOLINT, false-positive due to second-order macros.
11750 } // NOLINT, false-positive due to second-order macros. 11751 } // NOLINT, false-positive due to second-order macros.
11751 11752
11752 #endif // V8_OBJECTS_H_ 11753 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/messages.h ('k') | src/objects.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698