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

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

Issue 10579005: - Reenable disassembly of stubs: No comments are 0 length. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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 "platform/assert.h" 7 #include "platform/assert.h"
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/bigint_operations.h" 9 #include "vm/bigint_operations.h"
10 #include "vm/bootstrap.h" 10 #include "vm/bootstrap.h"
(...skipping 6202 matching lines...) Expand 10 before | Expand all | Expand 10 after
6213 if (count == 0) { 6213 if (count == 0) {
6214 comments = new Comments(Array::Empty()); 6214 comments = new Comments(Array::Empty());
6215 } else { 6215 } else {
6216 comments = new Comments(Array::New(count * kNumberOfEntries)); 6216 comments = new Comments(Array::New(count * kNumberOfEntries));
6217 } 6217 }
6218 return *comments; 6218 return *comments;
6219 } 6219 }
6220 6220
6221 6221
6222 intptr_t Code::Comments::Length() const { 6222 intptr_t Code::Comments::Length() const {
6223 if (comments_.IsNull()) {
6224 return 0;
6225 }
6223 return comments_.Length() / kNumberOfEntries; 6226 return comments_.Length() / kNumberOfEntries;
6224 } 6227 }
6225 6228
6226 6229
6227 intptr_t Code::Comments::PCOffsetAt(intptr_t idx) const { 6230 intptr_t Code::Comments::PCOffsetAt(intptr_t idx) const {
6228 return Smi::CheckedHandle( 6231 return Smi::CheckedHandle(
6229 comments_.At(idx * kNumberOfEntries + kPCOffsetEntry)).Value(); 6232 comments_.At(idx * kNumberOfEntries + kPCOffsetEntry)).Value();
6230 } 6233 }
6231 6234
6232 6235
(...skipping 3886 matching lines...) Expand 10 before | Expand all | Expand 10 after
10119 const String& str = String::Handle(pattern()); 10122 const String& str = String::Handle(pattern());
10120 const char* format = "JSRegExp: pattern=%s flags=%s"; 10123 const char* format = "JSRegExp: pattern=%s flags=%s";
10121 intptr_t len = OS::SNPrint(NULL, 0, format, str.ToCString(), Flags()); 10124 intptr_t len = OS::SNPrint(NULL, 0, format, str.ToCString(), Flags());
10122 char* chars = reinterpret_cast<char*>( 10125 char* chars = reinterpret_cast<char*>(
10123 Isolate::Current()->current_zone()->Allocate(len + 1)); 10126 Isolate::Current()->current_zone()->Allocate(len + 1));
10124 OS::SNPrint(chars, (len + 1), format, str.ToCString(), Flags()); 10127 OS::SNPrint(chars, (len + 1), format, str.ToCString(), Flags());
10125 return chars; 10128 return chars;
10126 } 10129 }
10127 10130
10128 } // namespace dart 10131 } // 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