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

Side by Side Diff: src/ic.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/handles.cc ('k') | src/json-stringifier.h » ('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 2774 matching lines...) Expand 10 before | Expand all | Expand 10 after
2785 builtin = builtins->javascript_builtin(Builtins::SHL); 2785 builtin = builtins->javascript_builtin(Builtins::SHL);
2786 break; 2786 break;
2787 default: 2787 default:
2788 UNREACHABLE(); 2788 UNREACHABLE();
2789 } 2789 }
2790 2790
2791 Handle<JSFunction> builtin_function(JSFunction::cast(builtin), isolate); 2791 Handle<JSFunction> builtin_function(JSFunction::cast(builtin), isolate);
2792 2792
2793 bool caught_exception; 2793 bool caught_exception;
2794 Handle<Object> builtin_args[] = { right }; 2794 Handle<Object> builtin_args[] = { right };
2795 Handle<Object> result = Execution::Call(builtin_function, 2795 Handle<Object> result = Execution::Call(isolate,
2796 builtin_function,
2796 left, 2797 left,
2797 ARRAY_SIZE(builtin_args), 2798 ARRAY_SIZE(builtin_args),
2798 builtin_args, 2799 builtin_args,
2799 &caught_exception); 2800 &caught_exception);
2800 if (caught_exception) { 2801 if (caught_exception) {
2801 return Failure::Exception(); 2802 return Failure::Exception();
2802 } 2803 }
2803 return *result; 2804 return *result;
2804 } 2805 }
2805 2806
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
3128 #undef ADDR 3129 #undef ADDR
3129 }; 3130 };
3130 3131
3131 3132
3132 Address IC::AddressFromUtilityId(IC::UtilityId id) { 3133 Address IC::AddressFromUtilityId(IC::UtilityId id) {
3133 return IC_utilities[id]; 3134 return IC_utilities[id];
3134 } 3135 }
3135 3136
3136 3137
3137 } } // namespace v8::internal 3138 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/handles.cc ('k') | src/json-stringifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698