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

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

Issue 1192103004: VM: New calling convention for generated code. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fixed comments Created 5 years, 3 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 | « runtime/vm/disassembler_arm.cc ('k') | runtime/vm/flow_graph_compiler.h » ('j') | 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/disassembler.h" 5 #include "vm/disassembler.h"
6 6
7 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. 7 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32.
8 #if defined(TARGET_ARCH_IA32) 8 #if defined(TARGET_ARCH_IA32)
9 #include "platform/utils.h" 9 #include "platform/utils.h"
10 #include "vm/allocation.h" 10 #include "vm/allocation.h"
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 static const char* ObjectToCStringNoGC(const Object& obj) { 466 static const char* ObjectToCStringNoGC(const Object& obj) {
467 if (obj.IsSmi() || 467 if (obj.IsSmi() ||
468 obj.IsMint() || 468 obj.IsMint() ||
469 obj.IsDouble() || 469 obj.IsDouble() ||
470 obj.IsString() || 470 obj.IsString() ||
471 obj.IsNull() || 471 obj.IsNull() ||
472 obj.IsBool() || 472 obj.IsBool() ||
473 obj.IsClass() || 473 obj.IsClass() ||
474 obj.IsFunction() || 474 obj.IsFunction() ||
475 obj.IsICData() || 475 obj.IsICData() ||
476 obj.IsField()) { 476 obj.IsField() ||
477 obj.IsCode()) {
477 return obj.ToCString(); 478 return obj.ToCString();
478 } 479 }
479 480
480 const Class& clazz = Class::Handle(obj.clazz()); 481 const Class& clazz = Class::Handle(obj.clazz());
481 const char* full_class_name = clazz.ToCString(); 482 const char* full_class_name = clazz.ToCString();
482 return OS::SCreate(Thread::Current()->zone(), 483 return OS::SCreate(Thread::Current()->zone(),
483 "instance of %s", full_class_name); 484 "instance of %s", full_class_name);
484 } 485 }
485 486
486 487
(...skipping 1379 matching lines...) Expand 10 before | Expand all | Expand 10 after
1866 } 1867 }
1867 hex_buffer[hex_index] = '\0'; 1868 hex_buffer[hex_index] = '\0';
1868 if (out_instr_len) { 1869 if (out_instr_len) {
1869 *out_instr_len = instruction_length; 1870 *out_instr_len = instruction_length;
1870 } 1871 }
1871 } 1872 }
1872 1873
1873 } // namespace dart 1874 } // namespace dart
1874 1875
1875 #endif // defined TARGET_ARCH_IA32 1876 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/disassembler_arm.cc ('k') | runtime/vm/flow_graph_compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698