| Index: third_party/WebKit/Source/platform/heap/asm/BUILD.gn
|
| diff --git a/third_party/WebKit/Source/platform/heap/asm/BUILD.gn b/third_party/WebKit/Source/platform/heap/asm/BUILD.gn
|
| index 00681e6687911c7399cc90c9f5bc90b1b3d79a2d..d3a5e6ab96366b35d0e9259ead9c6c163104523e 100644
|
| --- a/third_party/WebKit/Source/platform/heap/asm/BUILD.gn
|
| +++ b/third_party/WebKit/Source/platform/heap/asm/BUILD.gn
|
| @@ -3,46 +3,49 @@
|
| # found in the LICENSE file.
|
|
|
| if (current_cpu == "x86" || current_cpu == "x64") {
|
| -import("//third_party/yasm/yasm_assemble.gni")
|
| + import("//third_party/yasm/yasm_assemble.gni")
|
|
|
| -yasm_assemble("asm") {
|
| - assert(current_cpu == "x86" || current_cpu == "x64")
|
| + yasm_assemble("asm") {
|
| + assert(current_cpu == "x86" || current_cpu == "x64")
|
|
|
| - sources = [ "SaveRegisters_x86.asm" ]
|
| + sources = [
|
| + "SaveRegisters_x86.asm",
|
| + ]
|
|
|
| - yasm_flags = []
|
| - if (is_mac) {
|
| - # Necessary to ensure symbols end up with a _ prefix; added by
|
| - # yasm_compile.gypi for Windows, but not Mac.
|
| - yasm_flags += [ "-DPREFIX" ]
|
| - }
|
| - if (current_cpu == "x64") {
|
| - if (is_win) {
|
| - yasm_flags += [ "-DX64WIN=1" ]
|
| - } else {
|
| - yasm_flags += [ "-DX64POSIX=1" ]
|
| + yasm_flags = []
|
| + if (is_mac) {
|
| + # Necessary to ensure symbols end up with a _ prefix; added by
|
| + # yasm_compile.gypi for Windows, but not Mac.
|
| + yasm_flags += [ "-DPREFIX" ]
|
| + }
|
| + if (current_cpu == "x64") {
|
| + if (is_win) {
|
| + yasm_flags += [ "-DX64WIN=1" ]
|
| + } else {
|
| + yasm_flags += [ "-DX64POSIX=1" ]
|
| + }
|
| + } else { # current_cpu == "x86"
|
| + yasm_flags += [ "-DIA32=1" ]
|
| }
|
| - } else { # current_cpu == "x86"
|
| - yasm_flags += [ "-DIA32=1" ]
|
| - }
|
| -}
|
| -
|
| -} else { # current_cpu == "x86" || current_cpu == "x64"
|
| -
|
| -source_set("asm") {
|
| - if (current_cpu == "arm") {
|
| - sources = [ "SaveRegisters_arm.S" ]
|
| - } else if (current_cpu == "arm64") {
|
| - sources = [ "SaveRegisters_arm64.S" ]
|
| - } else if (current_cpu == "mipsel") {
|
| - sources = [ "SaveRegisters_mips.S" ]
|
| }
|
| +} else { # current_cpu == "x86" || current_cpu == "x64"
|
| + source_set("asm") {
|
| + if (current_cpu == "arm") {
|
| + sources = [
|
| + "SaveRegisters_arm.S",
|
| + ]
|
| + } else if (current_cpu == "arm64") {
|
| + sources = [
|
| + "SaveRegisters_arm64.S",
|
| + ]
|
| + } else if (current_cpu == "mipsel") {
|
| + sources = [
|
| + "SaveRegisters_mips.S",
|
| + ]
|
| + }
|
|
|
| - if (current_cpu == "arm") {
|
| - defines = [ "ARM=1" ]
|
| + if (current_cpu == "arm") {
|
| + defines = [ "ARM=1" ]
|
| + }
|
| }
|
| -}
|
| -
|
| -} # current_cpu == "x86" || current_cpu == "x64"
|
| -
|
| -
|
| +} # current_cpu == "x86" || current_cpu == "x64"
|
|
|