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

Side by Side Diff: src/objects-visiting.cc

Issue 7623011: Implement function proxies (except for their use as constructors). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed second round of comments. Created 9 years, 3 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 | « src/objects-printer.cc ('k') | src/proxy.js » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 return kVisitJSRegExp; 95 return kVisitJSRegExp;
96 96
97 case SHARED_FUNCTION_INFO_TYPE: 97 case SHARED_FUNCTION_INFO_TYPE:
98 return kVisitSharedFunctionInfo; 98 return kVisitSharedFunctionInfo;
99 99
100 case JS_PROXY_TYPE: 100 case JS_PROXY_TYPE:
101 return GetVisitorIdForSize(kVisitStruct, 101 return GetVisitorIdForSize(kVisitStruct,
102 kVisitStructGeneric, 102 kVisitStructGeneric,
103 JSProxy::kSize); 103 JSProxy::kSize);
104 104
105 case JS_FUNCTION_PROXY_TYPE:
106 return GetVisitorIdForSize(kVisitStruct,
107 kVisitStructGeneric,
108 JSFunctionProxy::kSize);
109
105 case FOREIGN_TYPE: 110 case FOREIGN_TYPE:
106 return GetVisitorIdForSize(kVisitDataObject, 111 return GetVisitorIdForSize(kVisitDataObject,
107 kVisitDataObjectGeneric, 112 kVisitDataObjectGeneric,
108 Foreign::kSize); 113 Foreign::kSize);
109 114
110 case FILLER_TYPE: 115 case FILLER_TYPE:
111 return kVisitDataObjectGeneric; 116 return kVisitDataObjectGeneric;
112 117
113 case JS_OBJECT_TYPE: 118 case JS_OBJECT_TYPE:
114 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: 119 case JS_CONTEXT_EXTENSION_OBJECT_TYPE:
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 kVisitStructGeneric, 152 kVisitStructGeneric,
148 instance_size); 153 instance_size);
149 154
150 default: 155 default:
151 UNREACHABLE(); 156 UNREACHABLE();
152 return kVisitorIdCount; 157 return kVisitorIdCount;
153 } 158 }
154 } 159 }
155 160
156 } } // namespace v8::internal 161 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-printer.cc ('k') | src/proxy.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698