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

Side by Side Diff: src/objects.h

Issue 1134333005: [strong] Object literals create strong objects (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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
OLDNEW
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 10463 matching lines...) Expand 10 before | Expand all | Expand 10 after
10474 // Layout description. 10474 // Layout description.
10475 static const int kLengthOffset = JSObject::kHeaderSize; 10475 static const int kLengthOffset = JSObject::kHeaderSize;
10476 static const int kSize = kLengthOffset + kPointerSize; 10476 static const int kSize = kLengthOffset + kPointerSize;
10477 10477
10478 private: 10478 private:
10479 DISALLOW_IMPLICIT_CONSTRUCTORS(JSArray); 10479 DISALLOW_IMPLICIT_CONSTRUCTORS(JSArray);
10480 }; 10480 };
10481 10481
10482 10482
10483 Handle<Object> CacheInitialJSArrayMaps(Handle<Context> native_context, 10483 Handle<Object> CacheInitialJSArrayMaps(Handle<Context> native_context,
10484 Handle<Map> initial_map); 10484 Handle<Map> initial_map, bool is_strong);
10485 10485
10486 10486
10487 // JSRegExpResult is just a JSArray with a specific initial map. 10487 // JSRegExpResult is just a JSArray with a specific initial map.
10488 // This initial map adds in-object properties for "index" and "input" 10488 // This initial map adds in-object properties for "index" and "input"
10489 // properties, as assigned by RegExp.prototype.exec, which allows 10489 // properties, as assigned by RegExp.prototype.exec, which allows
10490 // faster creation of RegExp exec results. 10490 // faster creation of RegExp exec results.
10491 // This class just holds constants used when creating the result. 10491 // This class just holds constants used when creating the result.
10492 // After creation the result must be treated as a JSArray in all regards. 10492 // After creation the result must be treated as a JSArray in all regards.
10493 class JSRegExpResult: public JSArray { 10493 class JSRegExpResult: public JSArray {
10494 public: 10494 public:
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
11115 } else { 11115 } else {
11116 value &= ~(1 << bit_position); 11116 value &= ~(1 << bit_position);
11117 } 11117 }
11118 return value; 11118 return value;
11119 } 11119 }
11120 }; 11120 };
11121 11121
11122 } } // namespace v8::internal 11122 } } // namespace v8::internal
11123 11123
11124 #endif // V8_OBJECTS_H_ 11124 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698