OLD | NEW |
1 // Copyright 2010 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 |
11 // with the distribution. | 11 // with the distribution. |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 | 232 |
233 Handle<Context> Factory::NewFunctionContext(int length, | 233 Handle<Context> Factory::NewFunctionContext(int length, |
234 Handle<JSFunction> closure) { | 234 Handle<JSFunction> closure) { |
235 CALL_HEAP_FUNCTION( | 235 CALL_HEAP_FUNCTION( |
236 isolate(), | 236 isolate(), |
237 isolate()->heap()->AllocateFunctionContext(length, *closure), | 237 isolate()->heap()->AllocateFunctionContext(length, *closure), |
238 Context); | 238 Context); |
239 } | 239 } |
240 | 240 |
241 | 241 |
| 242 Handle<Context> Factory::NewCatchContext(Handle<Context> previous, |
| 243 Handle<JSObject> extension) { |
| 244 CALL_HEAP_FUNCTION( |
| 245 isolate(), |
| 246 isolate()->heap()->AllocateCatchContext(*previous, *extension), |
| 247 Context); |
| 248 } |
| 249 |
| 250 |
242 Handle<Context> Factory::NewWithContext(Handle<Context> previous, | 251 Handle<Context> Factory::NewWithContext(Handle<Context> previous, |
243 Handle<JSObject> extension, | 252 Handle<JSObject> extension) { |
244 bool is_catch_context) { | |
245 CALL_HEAP_FUNCTION( | 253 CALL_HEAP_FUNCTION( |
246 isolate(), | 254 isolate(), |
247 isolate()->heap()->AllocateWithContext(*previous, | 255 isolate()->heap()->AllocateWithContext(*previous, *extension), |
248 *extension, | |
249 is_catch_context), | |
250 Context); | 256 Context); |
251 } | 257 } |
252 | 258 |
253 | 259 |
254 Handle<Struct> Factory::NewStruct(InstanceType type) { | 260 Handle<Struct> Factory::NewStruct(InstanceType type) { |
255 CALL_HEAP_FUNCTION( | 261 CALL_HEAP_FUNCTION( |
256 isolate(), | 262 isolate(), |
257 isolate()->heap()->AllocateStruct(type), | 263 isolate()->heap()->AllocateStruct(type), |
258 Struct); | 264 Struct); |
259 } | 265 } |
(...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1213 Execution::ConfigureInstance(instance, | 1219 Execution::ConfigureInstance(instance, |
1214 instance_template, | 1220 instance_template, |
1215 pending_exception); | 1221 pending_exception); |
1216 } else { | 1222 } else { |
1217 *pending_exception = false; | 1223 *pending_exception = false; |
1218 } | 1224 } |
1219 } | 1225 } |
1220 | 1226 |
1221 | 1227 |
1222 } } // namespace v8::internal | 1228 } } // namespace v8::internal |
OLD | NEW |