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

Unified Diff: runtime/vm/intermediate_language.cc

Issue 298883009: Eliminate some unnecessary handle allocations in the compiler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.cc
===================================================================
--- runtime/vm/intermediate_language.cc (revision 36623)
+++ runtime/vm/intermediate_language.cc (working copy)
@@ -2349,12 +2349,12 @@
Environment* Environment::From(Isolate* isolate,
const GrowableArray<Definition*>& definitions,
intptr_t fixed_parameter_count,
- const Code& code) {
+ const ParsedFunction* parsed_function) {
Environment* env =
new(isolate) Environment(definitions.length(),
fixed_parameter_count,
Isolate::kNoDeoptId,
- code,
+ parsed_function,
NULL);
for (intptr_t i = 0; i < definitions.length(); ++i) {
env->values_.Add(new(isolate) Value(definitions[i]));
@@ -2365,13 +2365,12 @@
Environment* Environment::DeepCopy(Isolate* isolate, intptr_t length) const {
ASSERT(length <= values_.length());
- Environment* copy =
- new(isolate) Environment(
- length,
- fixed_parameter_count_,
- deopt_id_,
- code_,
- (outer_ == NULL) ? NULL : outer_->DeepCopy(isolate));
+ Environment* copy = new(isolate) Environment(
+ length,
+ fixed_parameter_count_,
+ deopt_id_,
+ parsed_function_,
+ (outer_ == NULL) ? NULL : outer_->DeepCopy(isolate));
if (locations_ != NULL) {
Location* new_locations = isolate->current_zone()->Alloc<Location>(length);
copy->set_locations(new_locations);
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698