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

Side by Side Diff: src/factory.h

Issue 7275022: Explicitly pass the closure when allocating a catch or with context. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 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 | « src/arm/full-codegen-arm.cc ('k') | src/factory.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 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 Handle<String> NewExternalStringFromAscii( 145 Handle<String> NewExternalStringFromAscii(
146 ExternalAsciiString::Resource* resource); 146 ExternalAsciiString::Resource* resource);
147 Handle<String> NewExternalStringFromTwoByte( 147 Handle<String> NewExternalStringFromTwoByte(
148 ExternalTwoByteString::Resource* resource); 148 ExternalTwoByteString::Resource* resource);
149 149
150 // Create a global (but otherwise uninitialized) context. 150 // Create a global (but otherwise uninitialized) context.
151 Handle<Context> NewGlobalContext(); 151 Handle<Context> NewGlobalContext();
152 152
153 // Create a function context. 153 // Create a function context.
154 Handle<Context> NewFunctionContext(int length, 154 Handle<Context> NewFunctionContext(int length,
155 Handle<JSFunction> closure); 155 Handle<JSFunction> function);
156 156
157 // Create a catch context. 157 // Create a catch context.
158 Handle<Context> NewCatchContext(Handle<Context> previous, 158 Handle<Context> NewCatchContext(Handle<JSFunction> function,
159 Handle<Context> previous,
159 Handle<String> name, 160 Handle<String> name,
160 Handle<Object> thrown_object); 161 Handle<Object> thrown_object);
161 162
162 // Create a 'with' context. 163 // Create a 'with' context.
163 Handle<Context> NewWithContext(Handle<Context> previous, 164 Handle<Context> NewWithContext(Handle<JSFunction> function,
165 Handle<Context> previous,
164 Handle<JSObject> extension); 166 Handle<JSObject> extension);
165 167
166 // Return the Symbol matching the passed in string. 168 // Return the Symbol matching the passed in string.
167 Handle<String> SymbolFromString(Handle<String> value); 169 Handle<String> SymbolFromString(Handle<String> value);
168 170
169 // Allocate a new struct. The struct is pretenured (allocated directly in 171 // Allocate a new struct. The struct is pretenured (allocated directly in
170 // the old generation). 172 // the old generation).
171 Handle<Struct> NewStruct(InstanceType type); 173 Handle<Struct> NewStruct(InstanceType type);
172 174
173 Handle<AccessorInfo> NewAccessorInfo(); 175 Handle<AccessorInfo> NewAccessorInfo();
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 // Update the map cache in the global context with (keys, map) 449 // Update the map cache in the global context with (keys, map)
448 Handle<MapCache> AddToMapCache(Handle<Context> context, 450 Handle<MapCache> AddToMapCache(Handle<Context> context,
449 Handle<FixedArray> keys, 451 Handle<FixedArray> keys,
450 Handle<Map> map); 452 Handle<Map> map);
451 }; 453 };
452 454
453 455
454 } } // namespace v8::internal 456 } } // namespace v8::internal
455 457
456 #endif // V8_FACTORY_H_ 458 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698