| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 Handle<Object> js_builtin = | 441 Handle<Object> js_builtin = |
| 442 GetProperty(Handle<JSObject>(isolate->native_context()->builtins()), | 442 GetProperty(Handle<JSObject>(isolate->native_context()->builtins()), |
| 443 name); | 443 name); |
| 444 Handle<JSFunction> function = Handle<JSFunction>::cast(js_builtin); | 444 Handle<JSFunction> function = Handle<JSFunction>::cast(js_builtin); |
| 445 int argc = args.length() - 1; | 445 int argc = args.length() - 1; |
| 446 ScopedVector<Handle<Object> > argv(argc); | 446 ScopedVector<Handle<Object> > argv(argc); |
| 447 for (int i = 0; i < argc; ++i) { | 447 for (int i = 0; i < argc; ++i) { |
| 448 argv[i] = args.at<Object>(i + 1); | 448 argv[i] = args.at<Object>(i + 1); |
| 449 } | 449 } |
| 450 bool pending_exception; | 450 bool pending_exception; |
| 451 Handle<Object> result = Execution::Call(function, | 451 Handle<Object> result = Execution::Call(isolate, |
| 452 function, |
| 452 args.receiver(), | 453 args.receiver(), |
| 453 argc, | 454 argc, |
| 454 argv.start(), | 455 argv.start(), |
| 455 &pending_exception); | 456 &pending_exception); |
| 456 if (pending_exception) return Failure::Exception(); | 457 if (pending_exception) return Failure::Exception(); |
| 457 return *result; | 458 return *result; |
| 458 } | 459 } |
| 459 | 460 |
| 460 | 461 |
| 461 BUILTIN(ArrayPush) { | 462 BUILTIN(ArrayPush) { |
| (...skipping 1393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1855 return Handle<Code>(code_address); \ | 1856 return Handle<Code>(code_address); \ |
| 1856 } | 1857 } |
| 1857 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C) | 1858 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C) |
| 1858 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A) | 1859 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A) |
| 1859 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) | 1860 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) |
| 1860 #undef DEFINE_BUILTIN_ACCESSOR_C | 1861 #undef DEFINE_BUILTIN_ACCESSOR_C |
| 1861 #undef DEFINE_BUILTIN_ACCESSOR_A | 1862 #undef DEFINE_BUILTIN_ACCESSOR_A |
| 1862 | 1863 |
| 1863 | 1864 |
| 1864 } } // namespace v8::internal | 1865 } } // namespace v8::internal |
| OLD | NEW |