OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 8735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8746 | 8746 |
8747 private: | 8747 private: |
8748 // Expand the fixed array backing of a fast-case JSArray to at least | 8748 // Expand the fixed array backing of a fast-case JSArray to at least |
8749 // the requested size. | 8749 // the requested size. |
8750 void Expand(int minimum_size_of_backing_fixed_array); | 8750 void Expand(int minimum_size_of_backing_fixed_array); |
8751 | 8751 |
8752 DISALLOW_IMPLICIT_CONSTRUCTORS(JSArray); | 8752 DISALLOW_IMPLICIT_CONSTRUCTORS(JSArray); |
8753 }; | 8753 }; |
8754 | 8754 |
8755 | 8755 |
8756 MUST_USE_RESULT MaybeObject* CacheInitialJSArrayMaps( | 8756 Handle<Object> CacheInitialJSArrayMaps(Handle<Context> native_context, |
8757 Context* native_context, Map* initial_map); | 8757 Handle<Map> initial_map); |
8758 | 8758 |
8759 | 8759 |
8760 // JSRegExpResult is just a JSArray with a specific initial map. | 8760 // JSRegExpResult is just a JSArray with a specific initial map. |
8761 // This initial map adds in-object properties for "index" and "input" | 8761 // This initial map adds in-object properties for "index" and "input" |
8762 // properties, as assigned by RegExp.prototype.exec, which allows | 8762 // properties, as assigned by RegExp.prototype.exec, which allows |
8763 // faster creation of RegExp exec results. | 8763 // faster creation of RegExp exec results. |
8764 // This class just holds constants used when creating the result. | 8764 // This class just holds constants used when creating the result. |
8765 // After creation the result must be treated as a JSArray in all regards. | 8765 // After creation the result must be treated as a JSArray in all regards. |
8766 class JSRegExpResult: public JSArray { | 8766 class JSRegExpResult: public JSArray { |
8767 public: | 8767 public: |
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9463 } else { | 9463 } else { |
9464 value &= ~(1 << bit_position); | 9464 value &= ~(1 << bit_position); |
9465 } | 9465 } |
9466 return value; | 9466 return value; |
9467 } | 9467 } |
9468 }; | 9468 }; |
9469 | 9469 |
9470 } } // namespace v8::internal | 9470 } } // namespace v8::internal |
9471 | 9471 |
9472 #endif // V8_OBJECTS_H_ | 9472 #endif // V8_OBJECTS_H_ |
OLD | NEW |