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

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

Issue 1288853005: Fix disassembly_test (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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
« 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/compiler.h" 5 #include "vm/compiler.h"
6 6
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 8
9 #include "vm/ast_printer.h" 9 #include "vm/ast_printer.h"
10 #include "vm/block_scheduler.h" 10 #include "vm/block_scheduler.h"
(...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 Function& function = Function::Handle(); 954 Function& function = Function::Handle();
955 Code& code = Code::Handle(); 955 Code& code = Code::Handle();
956 for (intptr_t i = 0; i < table.Length(); 956 for (intptr_t i = 0; i < table.Length();
957 i += Code::kSCallTableEntryLength) { 957 i += Code::kSCallTableEntryLength) {
958 offset ^= table.At(i + Code::kSCallTableOffsetEntry); 958 offset ^= table.At(i + Code::kSCallTableOffsetEntry);
959 function ^= table.At(i + Code::kSCallTableFunctionEntry); 959 function ^= table.At(i + Code::kSCallTableFunctionEntry);
960 code ^= table.At(i + Code::kSCallTableCodeEntry); 960 code ^= table.At(i + Code::kSCallTableCodeEntry);
961 if (function.IsNull()) { 961 if (function.IsNull()) {
962 Class& cls = Class::Handle(); 962 Class& cls = Class::Handle();
963 cls ^= code.owner(); 963 cls ^= code.owner();
964 ISL_Print(" 0x%" Px ": allocation stub for %s, %p\n", 964 if (cls.IsNull()) {
965 start + offset.Value(), 965 const String& code_name = String::Handle(code.Name());
966 cls.ToCString(), 966 ISL_Print(" 0x%" Px ": %s, %p\n",
967 code.raw()); 967 start + offset.Value(),
968 code_name.ToCString(),
969 code.raw());
970 } else {
971 ISL_Print(" 0x%" Px ": allocation stub for %s, %p\n",
972 start + offset.Value(),
973 cls.ToCString(),
974 code.raw());
975 }
968 } else { 976 } else {
969 ISL_Print(" 0x%" Px ": %s, %p\n", 977 ISL_Print(" 0x%" Px ": %s, %p\n",
970 start + offset.Value(), 978 start + offset.Value(),
971 function.ToFullyQualifiedCString(), 979 function.ToFullyQualifiedCString(),
972 code.raw()); 980 code.raw());
973 } 981 }
974 } 982 }
975 ISL_Print("}\n"); 983 ISL_Print("}\n");
976 } 984 }
977 if (optimized && FLAG_trace_inlining_intervals) { 985 if (optimized && FLAG_trace_inlining_intervals) {
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
1418 const Object& result = 1426 const Object& result =
1419 PassiveObject::Handle(isolate->object_store()->sticky_error()); 1427 PassiveObject::Handle(isolate->object_store()->sticky_error());
1420 isolate->object_store()->clear_sticky_error(); 1428 isolate->object_store()->clear_sticky_error();
1421 return result.raw(); 1429 return result.raw();
1422 } 1430 }
1423 UNREACHABLE(); 1431 UNREACHABLE();
1424 return Object::null(); 1432 return Object::null();
1425 } 1433 }
1426 1434
1427 } // namespace dart 1435 } // 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