| 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 7271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7282 void JSFunctionIterateBody(int object_size, ObjectVisitor* v); | 7282 void JSFunctionIterateBody(int object_size, ObjectVisitor* v); |
| 7283 | 7283 |
| 7284 // Dispatched behavior. | 7284 // Dispatched behavior. |
| 7285 DECLARE_PRINTER(JSFunction) | 7285 DECLARE_PRINTER(JSFunction) |
| 7286 DECLARE_VERIFIER(JSFunction) | 7286 DECLARE_VERIFIER(JSFunction) |
| 7287 | 7287 |
| 7288 // Returns the number of allocated literals. | 7288 // Returns the number of allocated literals. |
| 7289 inline int NumberOfLiterals(); | 7289 inline int NumberOfLiterals(); |
| 7290 | 7290 |
| 7291 // Used for flags such as --hydrogen-filter. | 7291 // Used for flags such as --hydrogen-filter. |
| 7292 // TODO(rmcilroy/mstarzinger): Move this back to JSFunction when compiler.cc | |
| 7293 // is refactored to allow use of JSFunction::PassesFilter for top-level code. | |
| 7294 bool PassesFilter(const char* raw_filter); | 7292 bool PassesFilter(const char* raw_filter); |
| 7295 | 7293 |
| 7296 // The function's name if it is configured, otherwise shared function info | 7294 // The function's name if it is configured, otherwise shared function info |
| 7297 // debug name. | 7295 // debug name. |
| 7298 static Handle<String> GetDebugName(Handle<JSFunction> function); | 7296 static Handle<String> GetDebugName(Handle<JSFunction> function); |
| 7299 | 7297 |
| 7300 // Layout descriptors. The last property (from kNonWeakFieldsEndOffset to | 7298 // Layout descriptors. The last property (from kNonWeakFieldsEndOffset to |
| 7301 // kSize) is weak and has special handling during garbage collection. | 7299 // kSize) is weak and has special handling during garbage collection. |
| 7302 static const int kCodeEntryOffset = JSObject::kHeaderSize; | 7300 static const int kCodeEntryOffset = JSObject::kHeaderSize; |
| 7303 static const int kPrototypeOrInitialMapOffset = | 7301 static const int kPrototypeOrInitialMapOffset = |
| (...skipping 1382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8686 // Conversion. | 8684 // Conversion. |
| 8687 inline bool AsArrayIndex(uint32_t* index); | 8685 inline bool AsArrayIndex(uint32_t* index); |
| 8688 | 8686 |
| 8689 DECLARE_CAST(String) | 8687 DECLARE_CAST(String) |
| 8690 | 8688 |
| 8691 void PrintOn(FILE* out); | 8689 void PrintOn(FILE* out); |
| 8692 | 8690 |
| 8693 // For use during stack traces. Performs rudimentary sanity check. | 8691 // For use during stack traces. Performs rudimentary sanity check. |
| 8694 bool LooksValid(); | 8692 bool LooksValid(); |
| 8695 | 8693 |
| 8696 // Used for flags such as --hydrogen-filter. | |
| 8697 bool PassesFilter(const char* raw_filter); | |
| 8698 | |
| 8699 // Dispatched behavior. | 8694 // Dispatched behavior. |
| 8700 void StringShortPrint(StringStream* accumulator); | 8695 void StringShortPrint(StringStream* accumulator); |
| 8701 void PrintUC16(std::ostream& os, int start = 0, int end = -1); // NOLINT | 8696 void PrintUC16(std::ostream& os, int start = 0, int end = -1); // NOLINT |
| 8702 #if defined(DEBUG) || defined(OBJECT_PRINT) | 8697 #if defined(DEBUG) || defined(OBJECT_PRINT) |
| 8703 char* ToAsciiArray(); | 8698 char* ToAsciiArray(); |
| 8704 #endif | 8699 #endif |
| 8705 DECLARE_PRINTER(String) | 8700 DECLARE_PRINTER(String) |
| 8706 DECLARE_VERIFIER(String) | 8701 DECLARE_VERIFIER(String) |
| 8707 | 8702 |
| 8708 inline bool IsFlat(); | 8703 inline bool IsFlat(); |
| (...skipping 1968 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10677 Handle<FixedArray> keys_; | 10672 Handle<FixedArray> keys_; |
| 10678 Handle<OrderedHashSet> set_; | 10673 Handle<OrderedHashSet> set_; |
| 10679 int length_; | 10674 int length_; |
| 10680 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); | 10675 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); |
| 10681 }; | 10676 }; |
| 10682 | 10677 |
| 10683 } // NOLINT, false-positive due to second-order macros. | 10678 } // NOLINT, false-positive due to second-order macros. |
| 10684 } // NOLINT, false-positive due to second-order macros. | 10679 } // NOLINT, false-positive due to second-order macros. |
| 10685 | 10680 |
| 10686 #endif // V8_OBJECTS_H_ | 10681 #endif // V8_OBJECTS_H_ |
| OLD | NEW |