Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: src/objects.h

Issue 14008004: Bootstrapper code for constructed arrays needs to be handlefied (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/bootstrapper.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698