summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/offlineasm/backends.rb
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
commit32761a6cee1d0dee366b885b7b9c777e67885688 (patch)
treed6bec92bebfb216f4126356e55518842c2f476a1 /Source/JavaScriptCore/offlineasm/backends.rb
parenta4e969f4965059196ca948db781e52f7cfebf19e (diff)
downloadWebKitGtk-tarball-32761a6cee1d0dee366b885b7b9c777e67885688.tar.gz
webkitgtk-2.4.11webkitgtk-2.4.11
Diffstat (limited to 'Source/JavaScriptCore/offlineasm/backends.rb')
-rw-r--r--Source/JavaScriptCore/offlineasm/backends.rb48
1 files changed, 3 insertions, 45 deletions
diff --git a/Source/JavaScriptCore/offlineasm/backends.rb b/Source/JavaScriptCore/offlineasm/backends.rb
index 274441997..bf01b59b5 100644
--- a/Source/JavaScriptCore/offlineasm/backends.rb
+++ b/Source/JavaScriptCore/offlineasm/backends.rb
@@ -1,4 +1,4 @@
-# Copyright (C) 2011, 2016 Apple Inc. All rights reserved.
+# Copyright (C) 2011 Apple Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
@@ -33,9 +33,7 @@ require "cloop"
BACKENDS =
[
"X86",
- "X86_WIN",
"X86_64",
- "X86_64_WIN",
"ARM",
"ARMv7",
"ARMv7_TRADITIONAL",
@@ -53,9 +51,7 @@ BACKENDS =
WORKING_BACKENDS =
[
"X86",
- "X86_WIN",
"X86_64",
- "X86_64_WIN",
"ARM",
"ARMv7",
"ARMv7_TRADITIONAL",
@@ -67,37 +63,6 @@ WORKING_BACKENDS =
BACKEND_PATTERN = Regexp.new('\\A(' + BACKENDS.join(')|(') + ')\\Z')
-$allBackends = {}
-$validBackends = {}
-BACKENDS.each {
- | backend |
- $validBackends[backend] = true
- $allBackends[backend] = true
-}
-
-def includeOnlyBackends(list)
- newValidBackends = {}
- list.each {
- | backend |
- if $validBackends[backend]
- newValidBackends[backend] = true
- end
- }
- $validBackends = newValidBackends
-end
-
-def isBackend?(backend)
- $allBackends[backend]
-end
-
-def isValidBackend?(backend)
- $validBackends[backend]
-end
-
-def validBackends
- $validBackends.keys
-end
-
class Node
def lower(name)
begin
@@ -114,8 +79,7 @@ end
class Label
def lower(name)
- $asm.debugAnnotation codeOrigin.debugDirective if $enableDebugAnnotations
- $asm.putsLabel(self.name[1..-1], @global)
+ $asm.putsLabel(self.name[1..-1])
end
end
@@ -127,13 +91,8 @@ end
class LabelReference
def asmLabel
- if extern?
- Assembler.externLabelReference(name[1..-1])
- else
- Assembler.labelReference(name[1..-1])
- end
+ Assembler.labelReference(name[1..-1])
end
-
def cLabel
Assembler.cLabelReference(name[1..-1])
end
@@ -143,7 +102,6 @@ class LocalLabelReference
def asmLabel
Assembler.localLabelReference("_offlineasm_"+name[1..-1])
end
-
def cLabel
Assembler.cLocalLabelReference("_offlineasm_"+name[1..-1])
end