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

Unified Diff: runtime/vm/report_test.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/report.cc ('k') | runtime/vm/snapshot.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/report_test.cc
diff --git a/runtime/vm/report_test.cc b/runtime/vm/report_test.cc
index 73f21084663dadca2d40078e5eb58da653abd6c5..6338f5b30f4cb132728580d31a77976f446a96c1 100644
--- a/runtime/vm/report_test.cc
+++ b/runtime/vm/report_test.cc
@@ -9,12 +9,13 @@
namespace dart {
TEST_CASE(TraceJSWarning) {
- Isolate* isolate = Isolate::Current();
+ Zone* zone = thread->zone();
+ Isolate* isolate = thread->isolate();
TraceBuffer::Init(isolate, 3);
TraceBuffer* trace_buffer = isolate->trace_buffer();
- const String& url = String::Handle(isolate, String::New("Plug"));
- const String& source = String::Handle(isolate, String::New("240 100"));
- const Script& script = Script::Handle(isolate,
+ const String& url = String::Handle(zone, String::New("Plug"));
+ const String& source = String::Handle(zone, String::New("240 100"));
+ const Script& script = Script::Handle(zone,
Script::New(url, source, RawScript::kEvaluateTag));
script.Tokenize(String::Handle(String::New("")));
{
« no previous file with comments | « runtime/vm/report.cc ('k') | runtime/vm/snapshot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698