| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index 2093983aedc48fd8cb5bc89a27489b4305ae2c83..8062926505d75a39cc01aa25104a3ec67b8bb64c 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -588,6 +588,17 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_CreateArrayLiteralShallow) {
|
| }
|
|
|
|
|
| +RUNTIME_FUNCTION(MaybeObject*, Runtime_CreateJSProxy) {
|
| + ASSERT(args.length() == 2);
|
| + Object* handler = args[0];
|
| + Object* prototype = args[1];
|
| + Object* used_prototype =
|
| + (prototype->IsJSObject() || prototype->IsJSProxy()) ? prototype
|
| + : isolate->heap()->null_value();
|
| + return isolate->heap()->AllocateJSProxy(handler, used_prototype);
|
| +}
|
| +
|
| +
|
| RUNTIME_FUNCTION(MaybeObject*, Runtime_CreateCatchExtensionObject) {
|
| ASSERT(args.length() == 2);
|
| CONVERT_CHECKED(String, key, args[0]);
|
|
|