| 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  |      4  | 
|      5 #include "vm/object.h" |      5 #include "vm/object.h" | 
|      6  |      6  | 
|      7 #include "include/dart_api.h" |      7 #include "include/dart_api.h" | 
|      8 #include "platform/assert.h" |      8 #include "platform/assert.h" | 
|      9 #include "vm/assembler.h" |      9 #include "vm/assembler.h" | 
|     10 #include "vm/cpu.h" |     10 #include "vm/cpu.h" | 
| (...skipping 9098 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   9109   return temp_class.Evaluate(expr, param_names, param_values); |   9109   return temp_class.Evaluate(expr, param_names, param_values); | 
|   9110 } |   9110 } | 
|   9111  |   9111  | 
|   9112  |   9112  | 
|   9113 void Library::InitNativeWrappersLibrary(Isolate* isolate) { |   9113 void Library::InitNativeWrappersLibrary(Isolate* isolate) { | 
|   9114   static const int kNumNativeWrappersClasses = 4; |   9114   static const int kNumNativeWrappersClasses = 4; | 
|   9115   ASSERT(kNumNativeWrappersClasses > 0 && kNumNativeWrappersClasses < 10); |   9115   ASSERT(kNumNativeWrappersClasses > 0 && kNumNativeWrappersClasses < 10); | 
|   9116   const String& native_flds_lib_url = Symbols::DartNativeWrappers(); |   9116   const String& native_flds_lib_url = Symbols::DartNativeWrappers(); | 
|   9117   const Library& native_flds_lib = Library::Handle( |   9117   const Library& native_flds_lib = Library::Handle( | 
|   9118       Library::NewLibraryHelper(native_flds_lib_url, false)); |   9118       Library::NewLibraryHelper(native_flds_lib_url, false)); | 
 |   9119   const String& native_flds_lib_name = Symbols::DartNativeWrappersLibName(); | 
 |   9120   native_flds_lib.SetName(native_flds_lib_name); | 
|   9119   native_flds_lib.Register(); |   9121   native_flds_lib.Register(); | 
|   9120   isolate->object_store()->set_native_wrappers_library(native_flds_lib); |   9122   isolate->object_store()->set_native_wrappers_library(native_flds_lib); | 
|   9121   static const char* const kNativeWrappersClass = "NativeFieldWrapperClass"; |   9123   static const char* const kNativeWrappersClass = "NativeFieldWrapperClass"; | 
|   9122   static const int kNameLength = 25; |   9124   static const int kNameLength = 25; | 
|   9123   ASSERT(kNameLength == (strlen(kNativeWrappersClass) + 1 + 1)); |   9125   ASSERT(kNameLength == (strlen(kNativeWrappersClass) + 1 + 1)); | 
|   9124   char name_buffer[kNameLength]; |   9126   char name_buffer[kNameLength]; | 
|   9125   String& cls_name = String::Handle(); |   9127   String& cls_name = String::Handle(); | 
|   9126   for (int fld_cnt = 1; fld_cnt <= kNumNativeWrappersClasses; fld_cnt++) { |   9128   for (int fld_cnt = 1; fld_cnt <= kNumNativeWrappersClasses; fld_cnt++) { | 
|   9127     OS::SNPrint(name_buffer, |   9129     OS::SNPrint(name_buffer, | 
|   9128                 kNameLength, |   9130                 kNameLength, | 
| (...skipping 9647 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  18776   return tag_label.ToCString(); |  18778   return tag_label.ToCString(); | 
|  18777 } |  18779 } | 
|  18778  |  18780  | 
|  18779  |  18781  | 
|  18780 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |  18782 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 
|  18781   Instance::PrintJSONImpl(stream, ref); |  18783   Instance::PrintJSONImpl(stream, ref); | 
|  18782 } |  18784 } | 
|  18783  |  18785  | 
|  18784  |  18786  | 
|  18785 }  // namespace dart |  18787 }  // namespace dart | 
| OLD | NEW |