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

Side by Side Diff: src/accessors.h

Issue 10690043: Implement proper module linking. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed Michael's comments. Created 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/accessors.cc » ('j') | src/full-codegen.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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 }; 78 };
79 79
80 // Accessor functions called directly from the runtime system. 80 // Accessor functions called directly from the runtime system.
81 MUST_USE_RESULT static MaybeObject* FunctionGetPrototype(Object* object, 81 MUST_USE_RESULT static MaybeObject* FunctionGetPrototype(Object* object,
82 void*); 82 void*);
83 MUST_USE_RESULT static MaybeObject* FunctionSetPrototype(JSObject* object, 83 MUST_USE_RESULT static MaybeObject* FunctionSetPrototype(JSObject* object,
84 Object* value, 84 Object* value,
85 void*); 85 void*);
86 static MaybeObject* FunctionGetArguments(Object* object, void*); 86 static MaybeObject* FunctionGetArguments(Object* object, void*);
87 87
88 // Accessor infos.
89 static Handle<AccessorInfo> MakeModuleExport(
90 Handle<String> name, int index, PropertyAttributes attributes);
91
88 private: 92 private:
89 // Accessor functions only used through the descriptor. 93 // Accessor functions only used through the descriptor.
90 static MaybeObject* FunctionGetLength(Object* object, void*); 94 static MaybeObject* FunctionGetLength(Object* object, void*);
91 static MaybeObject* FunctionGetName(Object* object, void*); 95 static MaybeObject* FunctionGetName(Object* object, void*);
92 static MaybeObject* FunctionGetCaller(Object* object, void*); 96 static MaybeObject* FunctionGetCaller(Object* object, void*);
93 MUST_USE_RESULT static MaybeObject* ArraySetLength(JSObject* object, 97 MUST_USE_RESULT static MaybeObject* ArraySetLength(JSObject* object,
94 Object* value, void*); 98 Object* value, void*);
95 static MaybeObject* ArrayGetLength(Object* object, void*); 99 static MaybeObject* ArrayGetLength(Object* object, void*);
96 static MaybeObject* StringGetLength(Object* object, void*); 100 static MaybeObject* StringGetLength(Object* object, void*);
97 static MaybeObject* ScriptGetName(Object* object, void*); 101 static MaybeObject* ScriptGetName(Object* object, void*);
(...skipping 17 matching lines...) Expand all
115 // Helper functions. 119 // Helper functions.
116 static Object* FlattenNumber(Object* value); 120 static Object* FlattenNumber(Object* value);
117 static MaybeObject* IllegalSetter(JSObject*, Object*, void*); 121 static MaybeObject* IllegalSetter(JSObject*, Object*, void*);
118 static Object* IllegalGetAccessor(Object* object, void*); 122 static Object* IllegalGetAccessor(Object* object, void*);
119 static MaybeObject* ReadOnlySetAccessor(JSObject*, Object* value, void*); 123 static MaybeObject* ReadOnlySetAccessor(JSObject*, Object* value, void*);
120 }; 124 };
121 125
122 } } // namespace v8::internal 126 } } // namespace v8::internal
123 127
124 #endif // V8_ACCESSORS_H_ 128 #endif // V8_ACCESSORS_H_
OLDNEW
« no previous file with comments | « no previous file | src/accessors.cc » ('j') | src/full-codegen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698