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

Unified Diff: runtime/vm/native_entry.cc

Issue 1389353004: Remove isolate argument from handle allocation: Part II (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: c Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/native_api_impl.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/native_entry.cc
diff --git a/runtime/vm/native_entry.cc b/runtime/vm/native_entry.cc
index 84dd6e9f34d0938581b5ef0414c85e4f892792f5..5d5a59685cd330f85db371dabc6ad0b00c1bf5ba 100644
--- a/runtime/vm/native_entry.cc
+++ b/runtime/vm/native_entry.cc
@@ -135,17 +135,17 @@ static bool IsNativeKeyword(const TokenStream::Iterator& it) {
}
-static NativeFunction ResolveNativeFunction(Isolate *isolate,
+static NativeFunction ResolveNativeFunction(Zone* zone,
const Function& func,
bool* is_bootstrap_native) {
- const Script& script = Script::Handle(isolate, func.script());
- const Class& cls = Class::Handle(isolate, func.Owner());
- const Library& library = Library::Handle(isolate, cls.library());
+ const Script& script = Script::Handle(zone, func.script());
+ const Class& cls = Class::Handle(zone, func.Owner());
+ const Library& library = Library::Handle(zone, cls.library());
*is_bootstrap_native =
Bootstrap::IsBootstapResolver(library.native_entry_resolver());
- TokenStream::Iterator it(TokenStream::Handle(isolate, script.tokens()),
+ TokenStream::Iterator it(TokenStream::Handle(zone, script.tokens()),
func.token_pos());
const intptr_t end_pos = func.end_token_pos();
@@ -206,7 +206,7 @@ void NativeEntry::LinkNativeCall(Dart_NativeArguments args) {
bool is_bootstrap_native = false;
target_function = ResolveNativeFunction(
- arguments->thread()->isolate(), func, &is_bootstrap_native);
+ arguments->thread()->zone(), func, &is_bootstrap_native);
ASSERT(target_function != NULL);
#if defined(DEBUG)
« no previous file with comments | « runtime/vm/native_api_impl.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698