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

Unified Diff: runtime/vm/parser.cc

Issue 1554183002: VM compiler: Remove dead strict-compare instructions in optimized code. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 12 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/intermediate_language.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.cc
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
index 3bea96e69b46bc21a7a002fbed3feb3f26f7fab9..76301a99b0e739f42f28582088ba0c0ab5c4be27 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -823,10 +823,7 @@ void Parser::ParseClass(const Class& cls) {
"ParseClass");
if (tds.enabled()) {
tds.SetNumArguments(1);
- tds.CopyArgument(
- 0,
- "class",
- const_cast<char*>(String::Handle(cls.Name()).ToCString()));
+ tds.CopyArgument(0, "class", String::Handle(cls.Name()).ToCString());
}
if (!cls.is_synthesized_class()) {
ASSERT(thread->long_jump_base()->IsSafeToJump());
@@ -947,10 +944,7 @@ void Parser::ParseFunction(ParsedFunction* parsed_function) {
Parser parser(script, parsed_function, func.token_pos());
if (tds.enabled()) {
tds.SetNumArguments(1);
- tds.CopyArgument(
- 0,
- "function",
- const_cast<char*>(String::Handle(func.name()).ToCString()));
+ tds.CopyArgument(0, "function", String::Handle(func.name()).ToCString());
}
SequenceNode* node_sequence = NULL;
switch (func.kind()) {
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698