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

Side by Side Diff: src/accessors.h

Issue 2081733004: Rip out most of our outdated modules implementation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. Created 4 years, 5 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 "include/v8.h" 8 #include "include/v8.h"
9 #include "src/allocation.h" 9 #include "src/allocation.h"
10 #include "src/globals.h" 10 #include "src/globals.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 ACCESSOR_INFO_LIST(ACCESSOR_INFO_DECLARATION) 79 ACCESSOR_INFO_LIST(ACCESSOR_INFO_DECLARATION)
80 #undef ACCESSOR_INFO_DECLARATION 80 #undef ACCESSOR_INFO_DECLARATION
81 descriptorCount 81 descriptorCount
82 }; 82 };
83 83
84 // Accessor functions called directly from the runtime system. 84 // Accessor functions called directly from the runtime system.
85 MUST_USE_RESULT static MaybeHandle<Object> FunctionSetPrototype( 85 MUST_USE_RESULT static MaybeHandle<Object> FunctionSetPrototype(
86 Handle<JSFunction> object, Handle<Object> value); 86 Handle<JSFunction> object, Handle<Object> value);
87 static Handle<JSObject> FunctionGetArguments(Handle<JSFunction> object); 87 static Handle<JSObject> FunctionGetArguments(Handle<JSFunction> object);
88 88
89 // Accessor infos.
90 static Handle<AccessorInfo> MakeModuleExport(
91 Handle<String> name, int index, PropertyAttributes attributes);
92
93 // Returns true for properties that are accessors to object fields. 89 // Returns true for properties that are accessors to object fields.
94 // If true, *object_offset contains offset of object field. 90 // If true, *object_offset contains offset of object field.
95 static bool IsJSObjectFieldAccessor(Handle<Map> map, Handle<Name> name, 91 static bool IsJSObjectFieldAccessor(Handle<Map> map, Handle<Name> name,
96 int* object_offset); 92 int* object_offset);
97 93
98 static Handle<AccessorInfo> MakeAccessor( 94 static Handle<AccessorInfo> MakeAccessor(
99 Isolate* isolate, 95 Isolate* isolate,
100 Handle<Name> name, 96 Handle<Name> name,
101 AccessorNameGetterCallback getter, 97 AccessorNameGetterCallback getter,
102 AccessorNameSetterCallback setter, 98 AccessorNameSetterCallback setter,
103 PropertyAttributes attributes); 99 PropertyAttributes attributes);
104 }; 100 };
105 101
106 } // namespace internal 102 } // namespace internal
107 } // namespace v8 103 } // namespace v8
108 104
109 #endif // V8_ACCESSORS_H_ 105 #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