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

Side by Side Diff: src/bootstrapper.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/api.cc ('k') | src/builtins.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 1534 matching lines...) Expand 10 before | Expand all | Expand 10 after
1545 factory->NewFunctionFromSharedFunctionInfo(function_info, context); 1545 factory->NewFunctionFromSharedFunctionInfo(function_info, context);
1546 1546
1547 // Call function using either the runtime object or the global 1547 // Call function using either the runtime object or the global
1548 // object as the receiver. Provide no parameters. 1548 // object as the receiver. Provide no parameters.
1549 Handle<Object> receiver = 1549 Handle<Object> receiver =
1550 Handle<Object>(use_runtime_context 1550 Handle<Object>(use_runtime_context
1551 ? top_context->builtins() 1551 ? top_context->builtins()
1552 : top_context->global_object(), 1552 : top_context->global_object(),
1553 isolate); 1553 isolate);
1554 bool has_pending_exception; 1554 bool has_pending_exception;
1555 Execution::Call(fun, receiver, 0, NULL, &has_pending_exception); 1555 Execution::Call(isolate, fun, receiver, 0, NULL, &has_pending_exception);
1556 if (has_pending_exception) return false; 1556 if (has_pending_exception) return false;
1557 return true; 1557 return true;
1558 } 1558 }
1559 1559
1560 1560
1561 #define INSTALL_NATIVE(Type, name, var) \ 1561 #define INSTALL_NATIVE(Type, name, var) \
1562 Handle<String> var##_name = \ 1562 Handle<String> var##_name = \
1563 factory()->InternalizeOneByteString(STATIC_ASCII_VECTOR(name)); \ 1563 factory()->InternalizeOneByteString(STATIC_ASCII_VECTOR(name)); \
1564 Object* var##_native = \ 1564 Object* var##_native = \
1565 native_context()->builtins()->GetPropertyNoExceptionThrown( \ 1565 native_context()->builtins()->GetPropertyNoExceptionThrown( \
(...skipping 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after
2673 return from + sizeof(NestingCounterType); 2673 return from + sizeof(NestingCounterType);
2674 } 2674 }
2675 2675
2676 2676
2677 // Called when the top-level V8 mutex is destroyed. 2677 // Called when the top-level V8 mutex is destroyed.
2678 void Bootstrapper::FreeThreadResources() { 2678 void Bootstrapper::FreeThreadResources() {
2679 ASSERT(!IsActive()); 2679 ASSERT(!IsActive());
2680 } 2680 }
2681 2681
2682 } } // namespace v8::internal 2682 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698