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

Unified Diff: runtime/vm/object_test.cc

Issue 1952023002: Minor cleanup based on profiler output of CompileParseFunction. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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
Index: runtime/vm/object_test.cc
diff --git a/runtime/vm/object_test.cc b/runtime/vm/object_test.cc
index aa75ee9feb125813453efabb7898a861229fccea..a7e36972891ca6a81a70ba6ce0ee6a5b1fd2139d 100644
--- a/runtime/vm/object_test.cc
+++ b/runtime/vm/object_test.cc
@@ -162,15 +162,16 @@ VM_TEST_CASE(TypeArguments) {
VM_TEST_CASE(TokenStream) {
- String& source = String::Handle(String::New("= ( 9 , ."));
- String& private_key = String::Handle(String::New(""));
+ Zone* zone = Thread::Current()->zone();
+ String& source = String::Handle(zone, String::New("= ( 9 , ."));
+ String& private_key = String::Handle(zone, String::New(""));
Scanner scanner(source, private_key);
const Scanner::GrowableTokenStream& ts = scanner.GetStream();
EXPECT_EQ(6, ts.length());
EXPECT_EQ(Token::kLPAREN, ts[1].kind);
const TokenStream& token_stream = TokenStream::Handle(
- TokenStream::New(ts, private_key, false));
- TokenStream::Iterator iterator(token_stream, TokenPosition::kMinSource);
+ zone, TokenStream::New(ts, private_key, false));
+ TokenStream::Iterator iterator(zone, token_stream, TokenPosition::kMinSource);
// EXPECT_EQ(6, token_stream.Length());
iterator.Advance(); // Advance to '(' token.
EXPECT_EQ(Token::kLPAREN, iterator.CurrentTokenKind());
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/parser.h » ('j') | runtime/vm/raw_object.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698