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

Side by Side Diff: src/accessors.h

Issue 1053203007: Revert of Reland "Remove the weak list of views from array buffers" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | src/accessors.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_ACCESSORS_H_ 5 #ifndef V8_ACCESSORS_H_
6 #define V8_ACCESSORS_H_ 6 #define V8_ACCESSORS_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/globals.h" 9 #include "src/globals.h"
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 // Accessor infos. 74 // Accessor infos.
75 static Handle<AccessorInfo> MakeModuleExport( 75 static Handle<AccessorInfo> MakeModuleExport(
76 Handle<String> name, int index, PropertyAttributes attributes); 76 Handle<String> name, int index, PropertyAttributes attributes);
77 77
78 // Returns true for properties that are accessors to object fields. 78 // Returns true for properties that are accessors to object fields.
79 // If true, *object_offset contains offset of object field. 79 // If true, *object_offset contains offset of object field.
80 static bool IsJSObjectFieldAccessor(Handle<Map> map, Handle<Name> name, 80 static bool IsJSObjectFieldAccessor(Handle<Map> map, Handle<Name> name,
81 int* object_offset); 81 int* object_offset);
82 82
83 // Returns true for properties that are accessors to ArrayBufferView and
84 // derived classes fields. If true, *object_offset contains offset of
85 // object field. The caller still has to check whether the underlying
86 // buffer was neutered.
87 static bool IsJSArrayBufferViewFieldAccessor(Handle<Map> map,
88 Handle<Name> name,
89 int* object_offset);
90
91 static Handle<AccessorInfo> MakeAccessor( 83 static Handle<AccessorInfo> MakeAccessor(
92 Isolate* isolate, 84 Isolate* isolate,
93 Handle<Name> name, 85 Handle<Name> name,
94 AccessorNameGetterCallback getter, 86 AccessorNameGetterCallback getter,
95 AccessorNameSetterCallback setter, 87 AccessorNameSetterCallback setter,
96 PropertyAttributes attributes); 88 PropertyAttributes attributes);
97 89
98 static Handle<ExecutableAccessorInfo> CloneAccessor( 90 static Handle<ExecutableAccessorInfo> CloneAccessor(
99 Isolate* isolate, 91 Isolate* isolate,
100 Handle<ExecutableAccessorInfo> accessor); 92 Handle<ExecutableAccessorInfo> accessor);
101 93
102 94
103 private: 95 private:
104 // Helper functions. 96 // Helper functions.
105 static Handle<Object> FlattenNumber(Isolate* isolate, Handle<Object> value); 97 static Handle<Object> FlattenNumber(Isolate* isolate, Handle<Object> value);
106 }; 98 };
107 99
108 } } // namespace v8::internal 100 } } // namespace v8::internal
109 101
110 #endif // V8_ACCESSORS_H_ 102 #endif // V8_ACCESSORS_H_
OLDNEW
« no previous file with comments | « no previous file | src/accessors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698