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

Side by Side Diff: src/vm/assembler_x64_macos.cc

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 years, 10 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 | « src/vm/assembler_x64_linux.cc ('k') | src/vm/assembler_x86.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) 2015, the Dartino project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dartino 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.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 #if defined(FLETCH_TARGET_X64) && defined(FLETCH_TARGET_OS_MACOS) 5 #if defined(DARTINO_TARGET_X64) && defined(DARTINO_TARGET_OS_MACOS)
6 6
7 #include <stdio.h> 7 #include <stdio.h>
8 #include "src/vm/assembler.h" 8 #include "src/vm/assembler.h"
9 9
10 namespace fletch { 10 namespace dartino {
11 11
12 const char* kLocalLabelPrefix = "L"; 12 const char* kLocalLabelPrefix = "L";
13 13
14 void Assembler::Bind(const char* prefix, const char* name) { 14 void Assembler::Bind(const char* prefix, const char* name) {
15 printf("\t.globl _%s%s\n", prefix, name); 15 printf("\t.globl _%s%s\n", prefix, name);
16 printf("_%s%s:\n", prefix, name); 16 printf("_%s%s:\n", prefix, name);
17 } 17 }
18 18
19 void Assembler::LocalBind(const char* name) { 19 void Assembler::LocalBind(const char* name) {
20 printf("_%s:\n", name); 20 printf("_%s:\n", name);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 void Assembler::LoadNative(Register destination, Register index) { 57 void Assembler::LoadNative(Register destination, Register index) {
58 ASSERT(destination != index); 58 ASSERT(destination != index);
59 Print("leaq _kNativeTable(%%rip), %rq", destination); 59 Print("leaq _kNativeTable(%%rip), %rq", destination);
60 Print("movq (%rq,%rq,8), %rq", destination, index, destination); 60 Print("movq (%rq,%rq,8), %rq", destination, index, destination);
61 } 61 }
62 62
63 void Assembler::LoadLabel(Register reg, const char* name) { 63 void Assembler::LoadLabel(Register reg, const char* name) {
64 Print("leaq _%s(%%rip), %rq", name, reg); 64 Print("leaq _%s(%%rip), %rq", name, reg);
65 } 65 }
66 66
67 } // namespace fletch 67 } // namespace dartino
68 68
69 #endif // defined(FLETCH_TARGET_X64) && defined(FLETCH_TARGET_OS_MACOS) 69 #endif // defined(DARTINO_TARGET_X64) && defined(DARTINO_TARGET_OS_MACOS)
OLDNEW
« no previous file with comments | « src/vm/assembler_x64_linux.cc ('k') | src/vm/assembler_x86.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698