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

Side by Side Diff: runtime/vm/flow_graph_builder.cc

Issue 15861025: Fix warning about an unused private field. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/flow_graph_builder.h" 5 #include "vm/flow_graph_builder.h"
6 6
7 #include "lib/invocation_mirror.h" 7 #include "lib/invocation_mirror.h"
8 #include "vm/ast_printer.h" 8 #include "vm/ast_printer.h"
9 #include "vm/code_descriptors.h" 9 #include "vm/code_descriptors.h"
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 1845 matching lines...) Expand 10 before | Expand all | Expand 10 after
1856 LocalVariable* var() const { return var_; } 1856 LocalVariable* var() const { return var_; }
1857 1857
1858 ~TempLocalScope() { 1858 ~TempLocalScope() {
1859 Value* result = visitor_->Bind(new LoadLocalInstr(*var_)); 1859 Value* result = visitor_->Bind(new LoadLocalInstr(*var_));
1860 visitor_->DeallocateTempIndex(1); 1860 visitor_->DeallocateTempIndex(1);
1861 visitor_->ReturnDefinition(new DropTempsInstr(1, result)); 1861 visitor_->ReturnDefinition(new DropTempsInstr(1, result));
1862 } 1862 }
1863 1863
1864 private: 1864 private:
1865 EffectGraphVisitor* visitor_; 1865 EffectGraphVisitor* visitor_;
1866 Value* value_;
1867 LocalVariable* var_; 1866 LocalVariable* var_;
1868 }; 1867 };
1869 1868
1870 1869
1871 void EffectGraphVisitor::BuildLetTempExpressions(LetNode* node) { 1870 void EffectGraphVisitor::BuildLetTempExpressions(LetNode* node) {
1872 intptr_t num_temps = node->num_temps(); 1871 intptr_t num_temps = node->num_temps();
1873 for (intptr_t i = 0; i < num_temps; ++i) { 1872 for (intptr_t i = 0; i < num_temps; ++i) {
1874 ValueGraphVisitor for_value(owner(), temp_index()); 1873 ValueGraphVisitor for_value(owner(), temp_index());
1875 node->InitializerAt(i)->Visit(&for_value); 1874 node->InitializerAt(i)->Visit(&for_value);
1876 Append(for_value); 1875 Append(for_value);
(...skipping 1665 matching lines...) Expand 10 before | Expand all | Expand 10 after
3542 intptr_t len = OS::SNPrint(NULL, 0, kFormat, function_name, reason) + 1; 3541 intptr_t len = OS::SNPrint(NULL, 0, kFormat, function_name, reason) + 1;
3543 char* chars = Isolate::Current()->current_zone()->Alloc<char>(len); 3542 char* chars = Isolate::Current()->current_zone()->Alloc<char>(len);
3544 OS::SNPrint(chars, len, kFormat, function_name, reason); 3543 OS::SNPrint(chars, len, kFormat, function_name, reason);
3545 const Error& error = Error::Handle( 3544 const Error& error = Error::Handle(
3546 LanguageError::New(String::Handle(String::New(chars)))); 3545 LanguageError::New(String::Handle(String::New(chars))));
3547 Isolate::Current()->long_jump_base()->Jump(1, error); 3546 Isolate::Current()->long_jump_base()->Jump(1, error);
3548 } 3547 }
3549 3548
3550 3549
3551 } // namespace dart 3550 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698