| OLD | NEW |
| 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 | 9 |
| 10 #include "src/assert-scope.h" | 10 #include "src/assert-scope.h" |
| (...skipping 7551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7562 | 7562 |
| 7563 // Don't visit next function. | 7563 // Don't visit next function. |
| 7564 typedef BodyDescriptorImpl<kVisitCodeEntry> BodyDescriptorStrongCode; | 7564 typedef BodyDescriptorImpl<kVisitCodeEntry> BodyDescriptorStrongCode; |
| 7565 typedef BodyDescriptorImpl<kSkipCodeEntryAndNextFunction> | 7565 typedef BodyDescriptorImpl<kSkipCodeEntryAndNextFunction> |
| 7566 BodyDescriptorWeakCode; | 7566 BodyDescriptorWeakCode; |
| 7567 | 7567 |
| 7568 // Dispatched behavior. | 7568 // Dispatched behavior. |
| 7569 DECLARE_PRINTER(JSFunction) | 7569 DECLARE_PRINTER(JSFunction) |
| 7570 DECLARE_VERIFIER(JSFunction) | 7570 DECLARE_VERIFIER(JSFunction) |
| 7571 | 7571 |
| 7572 // Returns the number of allocated literals. | |
| 7573 inline int NumberOfLiterals(); | |
| 7574 | |
| 7575 // The function's name if it is configured, otherwise shared function info | 7572 // The function's name if it is configured, otherwise shared function info |
| 7576 // debug name. | 7573 // debug name. |
| 7577 static Handle<String> GetName(Handle<JSFunction> function); | 7574 static Handle<String> GetName(Handle<JSFunction> function); |
| 7578 | 7575 |
| 7579 // ES6 section 9.2.11 SetFunctionName | 7576 // ES6 section 9.2.11 SetFunctionName |
| 7580 // Because of the way this abstract operation is used in the spec, | 7577 // Because of the way this abstract operation is used in the spec, |
| 7581 // it should never fail. | 7578 // it should never fail. |
| 7582 static void SetName(Handle<JSFunction> function, Handle<Name> name, | 7579 static void SetName(Handle<JSFunction> function, Handle<Name> name, |
| 7583 Handle<String> prefix); | 7580 Handle<String> prefix); |
| 7584 | 7581 |
| (...skipping 3185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10770 } | 10767 } |
| 10771 return value; | 10768 return value; |
| 10772 } | 10769 } |
| 10773 }; | 10770 }; |
| 10774 | 10771 |
| 10775 | 10772 |
| 10776 } // NOLINT, false-positive due to second-order macros. | 10773 } // NOLINT, false-positive due to second-order macros. |
| 10777 } // NOLINT, false-positive due to second-order macros. | 10774 } // NOLINT, false-positive due to second-order macros. |
| 10778 | 10775 |
| 10779 #endif // V8_OBJECTS_H_ | 10776 #endif // V8_OBJECTS_H_ |
| OLD | NEW |