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

Side by Side Diff: src/objects.h

Issue 346743005: Making MigrateToMap() a single bottleneck for all migrations except slow-to-fast case. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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 | « no previous file | src/objects.cc » ('j') | src/objects.cc » ('J')
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 "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assert-scope.h" 9 #include "src/assert-scope.h"
10 #include "src/builtins.h" 10 #include "src/builtins.h"
(...skipping 2614 matching lines...) Expand 10 before | Expand all | Expand 10 after
2625 2625
2626 static void MigrateToNewProperty(Handle<JSObject> object, 2626 static void MigrateToNewProperty(Handle<JSObject> object,
2627 Handle<Map> transition, 2627 Handle<Map> transition,
2628 Handle<Object> value); 2628 Handle<Object> value);
2629 2629
2630 private: 2630 private:
2631 friend class DictionaryElementsAccessor; 2631 friend class DictionaryElementsAccessor;
2632 friend class JSReceiver; 2632 friend class JSReceiver;
2633 friend class Object; 2633 friend class Object;
2634 2634
2635 static void MigrateFastToFast(Handle<JSObject> object, Handle<Map> new_map);
2636 static void MigrateFastToSlow(Handle<JSObject> object,
2637 Handle<Map> new_map,
2638 int expected_additional_properties);
2639
2635 static void UpdateAllocationSite(Handle<JSObject> object, 2640 static void UpdateAllocationSite(Handle<JSObject> object,
2636 ElementsKind to_kind); 2641 ElementsKind to_kind);
2637 2642
2638 // Used from Object::GetProperty(). 2643 // Used from Object::GetProperty().
2639 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithFailedAccessCheck( 2644 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithFailedAccessCheck(
2640 LookupIterator* it); 2645 LookupIterator* it);
2641 2646
2642 MUST_USE_RESULT static MaybeHandle<Object> GetElementWithCallback( 2647 MUST_USE_RESULT static MaybeHandle<Object> GetElementWithCallback(
2643 Handle<JSObject> object, 2648 Handle<JSObject> object,
2644 Handle<Object> receiver, 2649 Handle<Object> receiver,
(...skipping 8502 matching lines...) Expand 10 before | Expand all | Expand 10 after
11147 } else { 11152 } else {
11148 value &= ~(1 << bit_position); 11153 value &= ~(1 << bit_position);
11149 } 11154 }
11150 return value; 11155 return value;
11151 } 11156 }
11152 }; 11157 };
11153 11158
11154 } } // namespace v8::internal 11159 } } // namespace v8::internal
11155 11160
11156 #endif // V8_OBJECTS_H_ 11161 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698