Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Side by Side Diff: src/builtins.cc

Issue 23661004: add isolate parameter for Execution::Call (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/bootstrapper.cc ('k') | src/debug.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698