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

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

Issue 11014020: Pack deopt ID into the return before and return after deopt instructions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 | Annotate | Revision Log
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/bigint_operations.h" 10 #include "vm/bigint_operations.h"
(...skipping 6457 matching lines...) Expand 10 before | Expand all | Expand 10 after
6468 6468
6469 const char* PcDescriptors::ToCString() const { 6469 const char* PcDescriptors::ToCString() const {
6470 if (Length() == 0) { 6470 if (Length() == 0) {
6471 return "No pc descriptors\n"; 6471 return "No pc descriptors\n";
6472 } 6472 }
6473 // 4 bits per hex digit. 6473 // 4 bits per hex digit.
6474 const int addr_width = kBitsPerWord / 4; 6474 const int addr_width = kBitsPerWord / 4;
6475 // "*" in a printf format specifier tells it to read the field width from 6475 // "*" in a printf format specifier tells it to read the field width from
6476 // the printf argument list. 6476 // the printf argument list.
6477 const char* kFormat = 6477 const char* kFormat =
6478 "%#-*"Px"\t%s\t%"Pd"\t%"Pd"\t%"Pd"\n"; 6478 "%#-*"Px"\t%s\t%"Pd"\t\t%"Pd"\t%"Pd"\n";
6479 // First compute the buffer size required. 6479 // First compute the buffer size required.
6480 intptr_t len = 1; // Trailing '\0'. 6480 intptr_t len = 1; // Trailing '\0'.
6481 for (intptr_t i = 0; i < Length(); i++) { 6481 for (intptr_t i = 0; i < Length(); i++) {
6482 len += OS::SNPrint(NULL, 0, kFormat, addr_width, 6482 len += OS::SNPrint(NULL, 0, kFormat, addr_width,
6483 PC(i), 6483 PC(i),
6484 KindAsStr(i), 6484 KindAsStr(i),
6485 DeoptId(i), 6485 DeoptId(i),
6486 TokenPos(i), 6486 TokenPos(i),
6487 TryIndex(i)); 6487 TryIndex(i));
6488 } 6488 }
(...skipping 5643 matching lines...) Expand 10 before | Expand all | Expand 10 after
12132 } 12132 }
12133 return result.raw(); 12133 return result.raw();
12134 } 12134 }
12135 12135
12136 12136
12137 const char* WeakProperty::ToCString() const { 12137 const char* WeakProperty::ToCString() const {
12138 return "_WeakProperty"; 12138 return "_WeakProperty";
12139 } 12139 }
12140 12140
12141 } // namespace dart 12141 } // namespace dart
OLDNEW
« runtime/vm/deopt_instructions.cc ('K') | « runtime/vm/deopt_instructions.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698