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

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

Issue 197923003: Stop/restart compilation timer when running Dart code from within the parser. SMall perfromance fix. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 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 | « no previous file | no next file » | 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 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 10837 matching lines...) Expand 10 before | Expand all | Expand 10 after
10848 } 10848 }
10849 10849
10850 10850
10851 intptr_t ICData::TestEntryLength() const { 10851 intptr_t ICData::TestEntryLength() const {
10852 return TestEntryLengthFor(num_args_tested()); 10852 return TestEntryLengthFor(num_args_tested());
10853 } 10853 }
10854 10854
10855 10855
10856 intptr_t ICData::NumberOfChecks() const { 10856 intptr_t ICData::NumberOfChecks() const {
10857 // Do not count the sentinel; 10857 // Do not count the sentinel;
10858 return (Array::Handle(ic_data()).Length() / TestEntryLength()) - 1; 10858 return (Smi::Value(ic_data()->ptr()->length_) / TestEntryLength()) - 1;
10859 } 10859 }
10860 10860
10861 10861
10862 void ICData::WriteSentinel(const Array& data) const { 10862 void ICData::WriteSentinel(const Array& data) const {
10863 ASSERT(!data.IsNull()); 10863 ASSERT(!data.IsNull());
10864 for (intptr_t i = 1; i <= TestEntryLength(); i++) { 10864 for (intptr_t i = 1; i <= TestEntryLength(); i++) {
10865 data.SetAt(data.Length() - i, smi_illegal_cid()); 10865 data.SetAt(data.Length() - i, smi_illegal_cid());
10866 } 10866 }
10867 } 10867 }
10868 10868
(...skipping 6766 matching lines...) Expand 10 before | Expand all | Expand 10 after
17635 return "_MirrorReference"; 17635 return "_MirrorReference";
17636 } 17636 }
17637 17637
17638 17638
17639 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { 17639 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const {
17640 Instance::PrintToJSONStream(stream, ref); 17640 Instance::PrintToJSONStream(stream, ref);
17641 } 17641 }
17642 17642
17643 17643
17644 } // namespace dart 17644 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698