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

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

Issue 27006003: Cleanups, refactoring in anticipation of new string interpolation nodes. Removed unnecessary code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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/intermediate_language.h" 5 #include "vm/intermediate_language.h"
6 6
7 #include "vm/bigint_operations.h" 7 #include "vm/bigint_operations.h"
8 #include "vm/bit_vector.h" 8 #include "vm/bit_vector.h"
9 #include "vm/dart_entry.h" 9 #include "vm/dart_entry.h"
10 #include "vm/flow_graph_allocator.h" 10 #include "vm/flow_graph_allocator.h"
(...skipping 1853 matching lines...) Expand 10 before | Expand all | Expand 10 after
1864 MethodRecognizer::kUnknown); 1864 MethodRecognizer::kUnknown);
1865 } 1865 }
1866 1866
1867 1867
1868 LocationSummary* StaticCallInstr::MakeLocationSummary() const { 1868 LocationSummary* StaticCallInstr::MakeLocationSummary() const {
1869 return MakeCallSummary(); 1869 return MakeCallSummary();
1870 } 1870 }
1871 1871
1872 1872
1873 void StaticCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 1873 void StaticCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
1874 Label skip_call;
1875 if (!compiler->is_optimizing()) { 1874 if (!compiler->is_optimizing()) {
1876 // Some static calls can be optimized by the optimizing compiler (e.g. sqrt) 1875 // Some static calls can be optimized by the optimizing compiler (e.g. sqrt)
1877 // and therefore need a deoptimization descriptor. 1876 // and therefore need a deoptimization descriptor.
1878 compiler->AddCurrentDescriptor(PcDescriptors::kDeopt, 1877 compiler->AddCurrentDescriptor(PcDescriptors::kDeopt,
1879 deopt_id(), 1878 deopt_id(),
1880 token_pos()); 1879 token_pos());
1881 } 1880 }
1882 compiler->GenerateStaticCall(deopt_id(), 1881 compiler->GenerateStaticCall(deopt_id(),
1883 token_pos(), 1882 token_pos(),
1884 function(), 1883 function(),
1885 ArgumentCount(), 1884 ArgumentCount(),
1886 argument_names(), 1885 argument_names(),
1887 locs()); 1886 locs());
1888 __ Bind(&skip_call);
1889 } 1887 }
1890 1888
1891 1889
1892 void AssertAssignableInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 1890 void AssertAssignableInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
1893 compiler->GenerateAssertAssignable(token_pos(), 1891 compiler->GenerateAssertAssignable(token_pos(),
1894 deopt_id(), 1892 deopt_id(),
1895 dst_type(), 1893 dst_type(),
1896 dst_name(), 1894 dst_name(),
1897 locs()); 1895 locs());
1898 ASSERT(locs()->in(0).reg() == locs()->out().reg()); 1896 ASSERT(locs()->in(0).reg() == locs()->out().reg());
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after
2702 return kCosRuntimeEntry; 2700 return kCosRuntimeEntry;
2703 default: 2701 default:
2704 UNREACHABLE(); 2702 UNREACHABLE();
2705 } 2703 }
2706 return kSinRuntimeEntry; 2704 return kSinRuntimeEntry;
2707 } 2705 }
2708 2706
2709 #undef __ 2707 #undef __
2710 2708
2711 } // namespace dart 2709 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/object.h » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698