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

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

Issue 1403883002: -Fix display of megamorphic miss function. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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
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 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 8886 matching lines...) Expand 10 before | Expand all | Expand 10 after
8897 8897
8898 // See also Dart_ScriptGetTokenInfo. 8898 // See also Dart_ScriptGetTokenInfo.
8899 void Script::PrintJSONImpl(JSONStream* stream, bool ref) const { 8899 void Script::PrintJSONImpl(JSONStream* stream, bool ref) const {
8900 JSONObject jsobj(stream); 8900 JSONObject jsobj(stream);
8901 AddCommonObjectProperties(&jsobj, "Script", ref); 8901 AddCommonObjectProperties(&jsobj, "Script", ref);
8902 const String& uri = String::Handle(url()); 8902 const String& uri = String::Handle(url());
8903 ASSERT(!uri.IsNull()); 8903 ASSERT(!uri.IsNull());
8904 const String& encoded_uri = String::Handle(String::EncodeIRI(uri)); 8904 const String& encoded_uri = String::Handle(String::EncodeIRI(uri));
8905 ASSERT(!encoded_uri.IsNull()); 8905 ASSERT(!encoded_uri.IsNull());
8906 const Library& lib = Library::Handle(FindLibrary()); 8906 const Library& lib = Library::Handle(FindLibrary());
8907 if (lib.IsNull()) { 8907 if (kind() == RawScript::kEvaluateTag) {
8908 ASSERT(kind() == RawScript::kEvaluateTag);
8909 jsobj.AddServiceId(*this); 8908 jsobj.AddServiceId(*this);
8910 } else { 8909 } else {
8911 ASSERT(kind() != RawScript::kEvaluateTag); 8910 ASSERT(!lib.IsNull());
8912 jsobj.AddFixedServiceId("libraries/%" Pd "/scripts/%s", 8911 jsobj.AddFixedServiceId("libraries/%" Pd "/scripts/%s",
8913 lib.index(), encoded_uri.ToCString()); 8912 lib.index(), encoded_uri.ToCString());
8914 } 8913 }
8915 jsobj.AddPropertyStr("uri", uri); 8914 jsobj.AddPropertyStr("uri", uri);
8916 jsobj.AddProperty("_kind", GetKindAsCString()); 8915 jsobj.AddProperty("_kind", GetKindAsCString());
8917 if (ref) { 8916 if (ref) {
8918 return; 8917 return;
8919 } 8918 }
8920 if (!lib.IsNull()) { 8919 if (!lib.IsNull()) {
8921 jsobj.AddProperty("library", lib); 8920 jsobj.AddProperty("library", lib);
(...skipping 12614 matching lines...) Expand 10 before | Expand all | Expand 10 after
21536 return tag_label.ToCString(); 21535 return tag_label.ToCString();
21537 } 21536 }
21538 21537
21539 21538
21540 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { 21539 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const {
21541 Instance::PrintJSONImpl(stream, ref); 21540 Instance::PrintJSONImpl(stream, ref);
21542 } 21541 }
21543 21542
21544 21543
21545 } // namespace dart 21544 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698