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

Side by Side Diff: src/accessors.h

Issue 1093183004: Reland "Remove the weak list of views from array buffers" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: hydrogen / ic support 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
83 static Handle<AccessorInfo> MakeAccessor( 91 static Handle<AccessorInfo> MakeAccessor(
84 Isolate* isolate, 92 Isolate* isolate,
85 Handle<Name> name, 93 Handle<Name> name,
86 AccessorNameGetterCallback getter, 94 AccessorNameGetterCallback getter,
87 AccessorNameSetterCallback setter, 95 AccessorNameSetterCallback setter,
88 PropertyAttributes attributes); 96 PropertyAttributes attributes);
89 97
90 static Handle<ExecutableAccessorInfo> CloneAccessor( 98 static Handle<ExecutableAccessorInfo> CloneAccessor(
91 Isolate* isolate, 99 Isolate* isolate,
92 Handle<ExecutableAccessorInfo> accessor); 100 Handle<ExecutableAccessorInfo> accessor);
93 101
94 102
95 private: 103 private:
96 // Helper functions. 104 // Helper functions.
97 static Handle<Object> FlattenNumber(Isolate* isolate, Handle<Object> value); 105 static Handle<Object> FlattenNumber(Isolate* isolate, Handle<Object> value);
98 }; 106 };
99 107
100 } } // namespace v8::internal 108 } } // namespace v8::internal
101 109
102 #endif // V8_ACCESSORS_H_ 110 #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