| OLD | NEW | 
|    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  Loading... | 
|   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:developer lib functions that can be intrinsified. |   87   // Setup all dart:profiler lib functions that can be intrinsified. | 
|   88   lib = Library::DeveloperLibrary(); |   88   lib = Library::ProfilerLibrary(); | 
|   89   ASSERT(!lib.IsNull()); |   89   ASSERT(!lib.IsNull()); | 
|   90   DEVELOPER_LIB_INTRINSIC_LIST(SETUP_FUNCTION); |   90   PROFILER_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  Loading... | 
|  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 | 
| OLD | NEW |