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 7587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7598 // Dispatched behavior. | 7598 // Dispatched behavior. |
7599 DECLARE_PRINTER(JSFunction) | 7599 DECLARE_PRINTER(JSFunction) |
7600 DECLARE_VERIFIER(JSFunction) | 7600 DECLARE_VERIFIER(JSFunction) |
7601 | 7601 |
7602 // Returns the number of allocated literals. | 7602 // Returns the number of allocated literals. |
7603 inline int NumberOfLiterals(); | 7603 inline int NumberOfLiterals(); |
7604 | 7604 |
7605 // Used for flags such as --hydrogen-filter. | 7605 // Used for flags such as --hydrogen-filter. |
7606 bool PassesFilter(const char* raw_filter); | 7606 bool PassesFilter(const char* raw_filter); |
7607 | 7607 |
| 7608 // The function's name if it is configured, otherwise shared function info |
| 7609 // debug name. |
| 7610 String* DebugName(); |
| 7611 |
7608 // Layout descriptors. The last property (from kNonWeakFieldsEndOffset to | 7612 // Layout descriptors. The last property (from kNonWeakFieldsEndOffset to |
7609 // kSize) is weak and has special handling during garbage collection. | 7613 // kSize) is weak and has special handling during garbage collection. |
7610 static const int kCodeEntryOffset = JSObject::kHeaderSize; | 7614 static const int kCodeEntryOffset = JSObject::kHeaderSize; |
7611 static const int kPrototypeOrInitialMapOffset = | 7615 static const int kPrototypeOrInitialMapOffset = |
7612 kCodeEntryOffset + kPointerSize; | 7616 kCodeEntryOffset + kPointerSize; |
7613 static const int kSharedFunctionInfoOffset = | 7617 static const int kSharedFunctionInfoOffset = |
7614 kPrototypeOrInitialMapOffset + kPointerSize; | 7618 kPrototypeOrInitialMapOffset + kPointerSize; |
7615 static const int kContextOffset = kSharedFunctionInfoOffset + kPointerSize; | 7619 static const int kContextOffset = kSharedFunctionInfoOffset + kPointerSize; |
7616 static const int kLiteralsOffset = kContextOffset + kPointerSize; | 7620 static const int kLiteralsOffset = kContextOffset + kPointerSize; |
7617 static const int kNonWeakFieldsEndOffset = kLiteralsOffset + kPointerSize; | 7621 static const int kNonWeakFieldsEndOffset = kLiteralsOffset + kPointerSize; |
(...skipping 3377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10995 } else { | 10999 } else { |
10996 value &= ~(1 << bit_position); | 11000 value &= ~(1 << bit_position); |
10997 } | 11001 } |
10998 return value; | 11002 return value; |
10999 } | 11003 } |
11000 }; | 11004 }; |
11001 | 11005 |
11002 } } // namespace v8::internal | 11006 } } // namespace v8::internal |
11003 | 11007 |
11004 #endif // V8_OBJECTS_H_ | 11008 #endif // V8_OBJECTS_H_ |
OLD | NEW |