| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 7376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7387 // Dispatched behavior. | 7387 // Dispatched behavior. |
| 7388 DECLARE_PRINTER(JSFunction) | 7388 DECLARE_PRINTER(JSFunction) |
| 7389 DECLARE_VERIFIER(JSFunction) | 7389 DECLARE_VERIFIER(JSFunction) |
| 7390 | 7390 |
| 7391 // Returns the number of allocated literals. | 7391 // Returns the number of allocated literals. |
| 7392 inline int NumberOfLiterals(); | 7392 inline int NumberOfLiterals(); |
| 7393 | 7393 |
| 7394 // Used for flags such as --hydrogen-filter. | 7394 // Used for flags such as --hydrogen-filter. |
| 7395 bool PassesFilter(const char* raw_filter); | 7395 bool PassesFilter(const char* raw_filter); |
| 7396 | 7396 |
| 7397 // The function's name if it is configured, otherwise shared function info | 7397 // The function's displayName if it is set, otherwise name if it is |
| 7398 // configured, otherwise shared function info |
| 7398 // debug name. | 7399 // debug name. |
| 7399 static Handle<String> GetDebugName(Handle<JSFunction> function); | 7400 static Handle<String> GetDebugName(Handle<JSFunction> function); |
| 7400 | 7401 |
| 7401 // Layout descriptors. The last property (from kNonWeakFieldsEndOffset to | 7402 // Layout descriptors. The last property (from kNonWeakFieldsEndOffset to |
| 7402 // kSize) is weak and has special handling during garbage collection. | 7403 // kSize) is weak and has special handling during garbage collection. |
| 7403 static const int kPrototypeOrInitialMapOffset = JSObject::kHeaderSize; | 7404 static const int kPrototypeOrInitialMapOffset = JSObject::kHeaderSize; |
| 7404 static const int kSharedFunctionInfoOffset = | 7405 static const int kSharedFunctionInfoOffset = |
| 7405 kPrototypeOrInitialMapOffset + kPointerSize; | 7406 kPrototypeOrInitialMapOffset + kPointerSize; |
| 7406 static const int kContextOffset = kSharedFunctionInfoOffset + kPointerSize; | 7407 static const int kContextOffset = kSharedFunctionInfoOffset + kPointerSize; |
| 7407 static const int kLiteralsOffset = kContextOffset + kPointerSize; | 7408 static const int kLiteralsOffset = kContextOffset + kPointerSize; |
| (...skipping 3289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10697 } | 10698 } |
| 10698 return value; | 10699 return value; |
| 10699 } | 10700 } |
| 10700 }; | 10701 }; |
| 10701 | 10702 |
| 10702 | 10703 |
| 10703 } // NOLINT, false-positive due to second-order macros. | 10704 } // NOLINT, false-positive due to second-order macros. |
| 10704 } // NOLINT, false-positive due to second-order macros. | 10705 } // NOLINT, false-positive due to second-order macros. |
| 10705 | 10706 |
| 10706 #endif // V8_OBJECTS_H_ | 10707 #endif // V8_OBJECTS_H_ |
| OLD | NEW |