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

Side by Side Diff: src/key-accumulator.h

Issue 1513713002: [cleanup] [proxies] Unify style of recently written code (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebased Created 5 years 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
« no previous file with comments | « src/builtins.cc ('k') | src/key-accumulator.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_KEY_ACCUMULATOR_H_ 5 #ifndef V8_KEY_ACCUMULATOR_H_
6 #define V8_KEY_ACCUMULATOR_H_ 6 #define V8_KEY_ACCUMULATOR_H_
7 7
8 #include "src/isolate.h" 8 #include "src/isolate.h"
9 #include "src/objects.h" 9 #include "src/objects.h"
10 10
(...skipping 25 matching lines...) Expand all
36 ~KeyAccumulator(); 36 ~KeyAccumulator();
37 37
38 bool AddKey(uint32_t key); 38 bool AddKey(uint32_t key);
39 bool AddKey(Object* key, AddKeyConversion convert = DO_NOT_CONVERT); 39 bool AddKey(Object* key, AddKeyConversion convert = DO_NOT_CONVERT);
40 bool AddKey(Handle<Object> key, AddKeyConversion convert = DO_NOT_CONVERT); 40 bool AddKey(Handle<Object> key, AddKeyConversion convert = DO_NOT_CONVERT);
41 void AddKeys(Handle<FixedArray> array, 41 void AddKeys(Handle<FixedArray> array,
42 AddKeyConversion convert = DO_NOT_CONVERT); 42 AddKeyConversion convert = DO_NOT_CONVERT);
43 void AddKeys(Handle<JSObject> array, 43 void AddKeys(Handle<JSObject> array,
44 AddKeyConversion convert = DO_NOT_CONVERT); 44 AddKeyConversion convert = DO_NOT_CONVERT);
45 void AddKeysFromProxy(Handle<JSObject> array); 45 void AddKeysFromProxy(Handle<JSObject> array);
46 bool AddKeysFromProxy(Handle<JSProxy> proxy, Handle<FixedArray> keys); 46 Maybe<bool> AddKeysFromProxy(Handle<JSProxy> proxy, Handle<FixedArray> keys);
47 void AddElementKeysFromInterceptor(Handle<JSObject> array); 47 void AddElementKeysFromInterceptor(Handle<JSObject> array);
48 // Jump to the next level, pushing the current |levelLength_| to 48 // Jump to the next level, pushing the current |levelLength_| to
49 // |levelLengths_| and adding a new list to |elements_|. 49 // |levelLengths_| and adding a new list to |elements_|.
50 void NextPrototype(); 50 void NextPrototype();
51 // Sort the integer indices in the last list in |elements_| 51 // Sort the integer indices in the last list in |elements_|
52 void SortCurrentElementsList(); 52 void SortCurrentElementsList();
53 Handle<FixedArray> GetKeys(GetKeysConversion convert = KEEP_NUMBERS); 53 Handle<FixedArray> GetKeys(GetKeysConversion convert = KEEP_NUMBERS);
54 int length() { return length_; } 54 int length() { return length_; }
55 Isolate* isolate() { return isolate_; } 55 Isolate* isolate() { return isolate_; }
56 56
(...skipping 27 matching lines...) Expand all
84 84
85 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); 85 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator);
86 }; 86 };
87 87
88 88
89 } // namespace internal 89 } // namespace internal
90 } // namespace v8 90 } // namespace v8
91 91
92 92
93 #endif // V8_KEY_ACCUMULATOR_H_ 93 #endif // V8_KEY_ACCUMULATOR_H_
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/key-accumulator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698