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

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

Issue 1133713006: Deprecate 'dart:profiler' and move functionality to 'dart:developer' (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/bootstrap.cc ('k') | runtime/vm/method_recognizer.h » ('j') | 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 // Class for intrinsifying functions. 4 // Class for intrinsifying functions.
5 5
6 #include "vm/assembler.h" 6 #include "vm/assembler.h"
7 #include "vm/intrinsifier.h" 7 #include "vm/intrinsifier.h"
8 #include "vm/flags.h" 8 #include "vm/flags.h"
9 #include "vm/object.h" 9 #include "vm/object.h"
10 #include "vm/symbols.h" 10 #include "vm/symbols.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 lib = Library::MathLibrary(); 77 lib = Library::MathLibrary();
78 ASSERT(!lib.IsNull()); 78 ASSERT(!lib.IsNull());
79 MATH_LIB_INTRINSIC_LIST(SETUP_FUNCTION); 79 MATH_LIB_INTRINSIC_LIST(SETUP_FUNCTION);
80 80
81 // Set up all dart:typed_data lib functions that can be intrisified. 81 // Set up all dart:typed_data lib functions that can be intrisified.
82 lib = Library::TypedDataLibrary(); 82 lib = Library::TypedDataLibrary();
83 ASSERT(!lib.IsNull()); 83 ASSERT(!lib.IsNull());
84 TYPED_DATA_LIB_INTRINSIC_LIST(SETUP_FUNCTION); 84 TYPED_DATA_LIB_INTRINSIC_LIST(SETUP_FUNCTION);
85 GRAPH_TYPED_DATA_INTRINSICS_LIST(SETUP_FUNCTION); 85 GRAPH_TYPED_DATA_INTRINSICS_LIST(SETUP_FUNCTION);
86 86
87 // Setup all dart:profiler lib functions that can be intrinsified. 87 // Setup all dart:developer lib functions that can be intrinsified.
88 lib = Library::ProfilerLibrary(); 88 lib = Library::DeveloperLibrary();
89 ASSERT(!lib.IsNull()); 89 ASSERT(!lib.IsNull());
90 PROFILER_LIB_INTRINSIC_LIST(SETUP_FUNCTION); 90 DEVELOPER_LIB_INTRINSIC_LIST(SETUP_FUNCTION);
91 91
92 #undef SETUP_FUNCTION 92 #undef SETUP_FUNCTION
93 } 93 }
94 #endif // defined(DART_NO_SNAPSHOT). 94 #endif // defined(DART_NO_SNAPSHOT).
95 95
96 96
97 static void EmitCodeFor(FlowGraphCompiler* compiler, 97 static void EmitCodeFor(FlowGraphCompiler* compiler,
98 FlowGraph* graph) { 98 FlowGraph* graph) {
99 // The FlowGraph here is constructed by the intrinsics builder methods, and 99 // The FlowGraph here is constructed by the intrinsics builder methods, and
100 // is different from compiler->flow_graph(), the original method's flow graph. 100 // is different from compiler->flow_graph(), the original method's flow graph.
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 new Value(growable_array), 682 new Value(growable_array),
683 new Value(length), 683 new Value(length),
684 kNoStoreBarrier, 684 kNoStoreBarrier,
685 builder.TokenPos())); 685 builder.TokenPos()));
686 Definition* null_def = builder.AddNullDefinition(); 686 Definition* null_def = builder.AddNullDefinition();
687 builder.AddIntrinsicReturn(new Value(null_def)); 687 builder.AddIntrinsicReturn(new Value(null_def));
688 return true; 688 return true;
689 } 689 }
690 690
691 } // namespace dart 691 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/bootstrap.cc ('k') | runtime/vm/method_recognizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698