OLD | NEW |
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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 Handle<Context> Factory::NewFunctionContext(int length, | 243 Handle<Context> Factory::NewFunctionContext(int length, |
244 Handle<JSFunction> closure) { | 244 Handle<JSFunction> closure) { |
245 CALL_HEAP_FUNCTION( | 245 CALL_HEAP_FUNCTION( |
246 isolate(), | 246 isolate(), |
247 isolate()->heap()->AllocateFunctionContext(length, *closure), | 247 isolate()->heap()->AllocateFunctionContext(length, *closure), |
248 Context); | 248 Context); |
249 } | 249 } |
250 | 250 |
251 | 251 |
252 Handle<Context> Factory::NewCatchContext(Handle<Context> previous, | 252 Handle<Context> Factory::NewCatchContext(Handle<Context> previous, |
253 Handle<String> name, | 253 Handle<JSObject> extension) { |
254 Handle<Object> thrown_object) { | |
255 CALL_HEAP_FUNCTION( | 254 CALL_HEAP_FUNCTION( |
256 isolate(), | 255 isolate(), |
257 isolate()->heap()->AllocateCatchContext(*previous, *name, *thrown_object), | 256 isolate()->heap()->AllocateCatchContext(*previous, *extension), |
258 Context); | 257 Context); |
259 } | 258 } |
260 | 259 |
261 | 260 |
262 Handle<Context> Factory::NewWithContext(Handle<Context> previous, | 261 Handle<Context> Factory::NewWithContext(Handle<Context> previous, |
263 Handle<JSObject> extension) { | 262 Handle<JSObject> extension) { |
264 CALL_HEAP_FUNCTION( | 263 CALL_HEAP_FUNCTION( |
265 isolate(), | 264 isolate(), |
266 isolate()->heap()->AllocateWithContext(*previous, *extension), | 265 isolate()->heap()->AllocateWithContext(*previous, *extension), |
267 Context); | 266 Context); |
(...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1230 Execution::ConfigureInstance(instance, | 1229 Execution::ConfigureInstance(instance, |
1231 instance_template, | 1230 instance_template, |
1232 pending_exception); | 1231 pending_exception); |
1233 } else { | 1232 } else { |
1234 *pending_exception = false; | 1233 *pending_exception = false; |
1235 } | 1234 } |
1236 } | 1235 } |
1237 | 1236 |
1238 | 1237 |
1239 } } // namespace v8::internal | 1238 } } // namespace v8::internal |
OLD | NEW |