| 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/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 7478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7489 // Returns the number of allocated literals. | 7489 // Returns the number of allocated literals. |
| 7490 inline int NumberOfLiterals(); | 7490 inline int NumberOfLiterals(); |
| 7491 | 7491 |
| 7492 // Used for flags such as --hydrogen-filter. | 7492 // Used for flags such as --hydrogen-filter. |
| 7493 bool PassesFilter(const char* raw_filter); | 7493 bool PassesFilter(const char* raw_filter); |
| 7494 | 7494 |
| 7495 // The function's name if it is configured, otherwise shared function info | 7495 // The function's name if it is configured, otherwise shared function info |
| 7496 // debug name. | 7496 // debug name. |
| 7497 static Handle<String> GetName(Handle<JSFunction> function); | 7497 static Handle<String> GetName(Handle<JSFunction> function); |
| 7498 | 7498 |
| 7499 // ES6 section 9.2.11 SetFunctionName |
| 7500 // Because of the way this abstract operation is used in the spec, |
| 7501 // it should never fail. |
| 7502 static void SetName(Handle<JSFunction> function, Handle<Name> name, |
| 7503 Handle<String> prefix); |
| 7504 |
| 7499 // The function's displayName if it is set, otherwise name if it is | 7505 // The function's displayName if it is set, otherwise name if it is |
| 7500 // configured, otherwise shared function info | 7506 // configured, otherwise shared function info |
| 7501 // debug name. | 7507 // debug name. |
| 7502 static Handle<String> GetDebugName(Handle<JSFunction> function); | 7508 static Handle<String> GetDebugName(Handle<JSFunction> function); |
| 7503 | 7509 |
| 7504 // The function's string representation implemented according to | 7510 // The function's string representation implemented according to |
| 7505 // ES6 section 19.2.3.5 Function.prototype.toString ( ). | 7511 // ES6 section 19.2.3.5 Function.prototype.toString ( ). |
| 7506 static Handle<String> ToString(Handle<JSFunction> function); | 7512 static Handle<String> ToString(Handle<JSFunction> function); |
| 7507 | 7513 |
| 7508 // Layout descriptors. The last property (from kNonWeakFieldsEndOffset to | 7514 // Layout descriptors. The last property (from kNonWeakFieldsEndOffset to |
| (...skipping 3297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10806 } | 10812 } |
| 10807 return value; | 10813 return value; |
| 10808 } | 10814 } |
| 10809 }; | 10815 }; |
| 10810 | 10816 |
| 10811 | 10817 |
| 10812 } // NOLINT, false-positive due to second-order macros. | 10818 } // NOLINT, false-positive due to second-order macros. |
| 10813 } // NOLINT, false-positive due to second-order macros. | 10819 } // NOLINT, false-positive due to second-order macros. |
| 10814 | 10820 |
| 10815 #endif // V8_OBJECTS_H_ | 10821 #endif // V8_OBJECTS_H_ |
| OLD | NEW |