| Index: src/factory.cc
|
| diff --git a/src/factory.cc b/src/factory.cc
|
| index 55d6ff071ca6353549cc8edf866f6fde09609124..ad406557ce69881be066ef9f3a8848044b0ab8ad 100644
|
| --- a/src/factory.cc
|
| +++ b/src/factory.cc
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2010 the V8 project authors. All rights reserved.
|
| +// Copyright 2011 the V8 project authors. All rights reserved.
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| // met:
|
| @@ -239,14 +239,20 @@ Handle<Context> Factory::NewFunctionContext(int length,
|
| }
|
|
|
|
|
| +Handle<Context> Factory::NewCatchContext(Handle<Context> previous,
|
| + Handle<JSObject> extension) {
|
| + CALL_HEAP_FUNCTION(
|
| + isolate(),
|
| + isolate()->heap()->AllocateCatchContext(*previous, *extension),
|
| + Context);
|
| +}
|
| +
|
| +
|
| Handle<Context> Factory::NewWithContext(Handle<Context> previous,
|
| - Handle<JSObject> extension,
|
| - bool is_catch_context) {
|
| + Handle<JSObject> extension) {
|
| CALL_HEAP_FUNCTION(
|
| isolate(),
|
| - isolate()->heap()->AllocateWithContext(*previous,
|
| - *extension,
|
| - is_catch_context),
|
| + isolate()->heap()->AllocateWithContext(*previous, *extension),
|
| Context);
|
| }
|
|
|
|
|