| 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 11229 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  11240       break; |  11240       break; | 
|  11241     case RawLocalVarDescriptors::kContextVar: |  11241     case RawLocalVarDescriptors::kContextVar: | 
|  11242       return "ContextVar"; |  11242       return "ContextVar"; | 
|  11243       break; |  11243       break; | 
|  11244     case RawLocalVarDescriptors::kContextLevel: |  11244     case RawLocalVarDescriptors::kContextLevel: | 
|  11245       return "ContextLevel"; |  11245       return "ContextLevel"; | 
|  11246       break; |  11246       break; | 
|  11247     case RawLocalVarDescriptors::kSavedCurrentContext: |  11247     case RawLocalVarDescriptors::kSavedCurrentContext: | 
|  11248       return "CurrentCtx"; |  11248       return "CurrentCtx"; | 
|  11249       break; |  11249       break; | 
 |  11250     case RawLocalVarDescriptors::kAsyncOperation: | 
 |  11251       return "AsyncOperation"; | 
 |  11252       break; | 
|  11250     default: |  11253     default: | 
|  11251       UNREACHABLE(); |  11254       UNREACHABLE(); | 
|  11252       return "Unknown"; |  11255       return "Unknown"; | 
|  11253   } |  11256   } | 
|  11254 } |  11257 } | 
|  11255  |  11258  | 
|  11256  |  11259  | 
|  11257 static int PrintVarInfo(char* buffer, int len, |  11260 static int PrintVarInfo(char* buffer, int len, | 
|  11258                         intptr_t i, |  11261                         intptr_t i, | 
|  11259                         const String& var_name, |  11262                         const String& var_name, | 
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  11353 const char* LocalVarDescriptors::KindToStr(intptr_t kind) { |  11356 const char* LocalVarDescriptors::KindToStr(intptr_t kind) { | 
|  11354   switch (kind) { |  11357   switch (kind) { | 
|  11355     case RawLocalVarDescriptors::kStackVar: |  11358     case RawLocalVarDescriptors::kStackVar: | 
|  11356       return "StackVar"; |  11359       return "StackVar"; | 
|  11357     case RawLocalVarDescriptors::kContextVar: |  11360     case RawLocalVarDescriptors::kContextVar: | 
|  11358       return "ContextVar"; |  11361       return "ContextVar"; | 
|  11359     case RawLocalVarDescriptors::kContextLevel: |  11362     case RawLocalVarDescriptors::kContextLevel: | 
|  11360       return "ContextLevel"; |  11363       return "ContextLevel"; | 
|  11361     case RawLocalVarDescriptors::kSavedCurrentContext: |  11364     case RawLocalVarDescriptors::kSavedCurrentContext: | 
|  11362       return "SavedCurrentContext"; |  11365       return "SavedCurrentContext"; | 
 |  11366     case RawLocalVarDescriptors::kAsyncOperation: | 
 |  11367       return "AsyncOperation"; | 
|  11363     default: |  11368     default: | 
|  11364       UNIMPLEMENTED(); |  11369       UNIMPLEMENTED(); | 
|  11365       return NULL; |  11370       return NULL; | 
|  11366   } |  11371   } | 
|  11367 } |  11372 } | 
|  11368  |  11373  | 
|  11369 RawLocalVarDescriptors* LocalVarDescriptors::New(intptr_t num_variables) { |  11374 RawLocalVarDescriptors* LocalVarDescriptors::New(intptr_t num_variables) { | 
|  11370   ASSERT(Object::var_descriptors_class() != Class::null()); |  11375   ASSERT(Object::var_descriptors_class() != Class::null()); | 
|  11371   if (num_variables < 0 || num_variables > kMaxElements) { |  11376   if (num_variables < 0 || num_variables > kMaxElements) { | 
|  11372     // This should be caught before we reach here. |  11377     // This should be caught before we reach here. | 
| (...skipping 9825 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  21198   return tag_label.ToCString(); |  21203   return tag_label.ToCString(); | 
|  21199 } |  21204 } | 
|  21200  |  21205  | 
|  21201  |  21206  | 
|  21202 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |  21207 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 
|  21203   Instance::PrintJSONImpl(stream, ref); |  21208   Instance::PrintJSONImpl(stream, ref); | 
|  21204 } |  21209 } | 
|  21205  |  21210  | 
|  21206  |  21211  | 
|  21207 }  // namespace dart |  21212 }  // namespace dart | 
| OLD | NEW |