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

Side by Side Diff: src/objects.h

Issue 274463003: Directly create API functions with readonly prototypes rather than converting. Remove FunctionSetRe… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove test Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/factory.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 // 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 "allocation.h" 8 #include "allocation.h"
9 #include "assert-scope.h" 9 #include "assert-scope.h"
10 #include "builtins.h" 10 #include "builtins.h"
(...skipping 6287 matching lines...) Expand 10 before | Expand all | Expand 10 after
6298 static MaybeHandle<Map> CurrentMapForDeprecated(Handle<Map> map) 6298 static MaybeHandle<Map> CurrentMapForDeprecated(Handle<Map> map)
6299 V8_WARN_UNUSED_RESULT; 6299 V8_WARN_UNUSED_RESULT;
6300 // Same as above, but does not touch the prototype chain. 6300 // Same as above, but does not touch the prototype chain.
6301 static MaybeHandle<Map> CurrentMapForDeprecatedInternal(Handle<Map> map) 6301 static MaybeHandle<Map> CurrentMapForDeprecatedInternal(Handle<Map> map)
6302 V8_WARN_UNUSED_RESULT; 6302 V8_WARN_UNUSED_RESULT;
6303 6303
6304 static Handle<Map> CopyDropDescriptors(Handle<Map> map); 6304 static Handle<Map> CopyDropDescriptors(Handle<Map> map);
6305 static Handle<Map> CopyInsertDescriptor(Handle<Map> map, 6305 static Handle<Map> CopyInsertDescriptor(Handle<Map> map,
6306 Descriptor* descriptor, 6306 Descriptor* descriptor,
6307 TransitionFlag flag); 6307 TransitionFlag flag);
6308 static Handle<Map> CopyReplaceDescriptor(Handle<Map> map,
6309 Handle<DescriptorArray> descriptors,
6310 Descriptor* descriptor,
6311 int index,
6312 TransitionFlag flag);
6313 6308
6314 MUST_USE_RESULT static MaybeHandle<Map> CopyWithField( 6309 MUST_USE_RESULT static MaybeHandle<Map> CopyWithField(
6315 Handle<Map> map, 6310 Handle<Map> map,
6316 Handle<Name> name, 6311 Handle<Name> name,
6317 Handle<HeapType> type, 6312 Handle<HeapType> type,
6318 PropertyAttributes attributes, 6313 PropertyAttributes attributes,
6319 Representation representation, 6314 Representation representation,
6320 TransitionFlag flag); 6315 TransitionFlag flag);
6321 6316
6322 MUST_USE_RESULT static MaybeHandle<Map> CopyWithConstant( 6317 MUST_USE_RESULT static MaybeHandle<Map> CopyWithConstant(
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
6575 Handle<DescriptorArray> descriptors); 6570 Handle<DescriptorArray> descriptors);
6576 static Handle<Map> CopyAddDescriptor(Handle<Map> map, 6571 static Handle<Map> CopyAddDescriptor(Handle<Map> map,
6577 Descriptor* descriptor, 6572 Descriptor* descriptor,
6578 TransitionFlag flag); 6573 TransitionFlag flag);
6579 static Handle<Map> CopyReplaceDescriptors( 6574 static Handle<Map> CopyReplaceDescriptors(
6580 Handle<Map> map, 6575 Handle<Map> map,
6581 Handle<DescriptorArray> descriptors, 6576 Handle<DescriptorArray> descriptors,
6582 TransitionFlag flag, 6577 TransitionFlag flag,
6583 MaybeHandle<Name> maybe_name, 6578 MaybeHandle<Name> maybe_name,
6584 SimpleTransitionFlag simple_flag = FULL_TRANSITION); 6579 SimpleTransitionFlag simple_flag = FULL_TRANSITION);
6580 static Handle<Map> CopyReplaceDescriptor(Handle<Map> map,
6581 Handle<DescriptorArray> descriptors,
6582 Descriptor* descriptor,
6583 int index,
6584 TransitionFlag flag);
6585 6585
6586 static Handle<Map> CopyNormalized(Handle<Map> map, 6586 static Handle<Map> CopyNormalized(Handle<Map> map,
6587 PropertyNormalizationMode mode, 6587 PropertyNormalizationMode mode,
6588 NormalizedMapSharingMode sharing); 6588 NormalizedMapSharingMode sharing);
6589 6589
6590 // Fires when the layout of an object with a leaf map changes. 6590 // Fires when the layout of an object with a leaf map changes.
6591 // This includes adding transitions to the leaf map or changing 6591 // This includes adding transitions to the leaf map or changing
6592 // the descriptor array. 6592 // the descriptor array.
6593 inline void NotifyLeafMapLayoutChange(); 6593 inline void NotifyLeafMapLayoutChange();
6594 6594
(...skipping 4524 matching lines...) Expand 10 before | Expand all | Expand 10 after
11119 } else { 11119 } else {
11120 value &= ~(1 << bit_position); 11120 value &= ~(1 << bit_position);
11121 } 11121 }
11122 return value; 11122 return value;
11123 } 11123 }
11124 }; 11124 };
11125 11125
11126 } } // namespace v8::internal 11126 } } // namespace v8::internal
11127 11127
11128 #endif // V8_OBJECTS_H_ 11128 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698