Skip to content

Commit

Permalink
removed obsolete DoubleCheckedLocking check
Browse files Browse the repository at this point in the history
  • Loading branch information
dougxc committed Apr 4, 2013
0 parents commit 9c82143
Show file tree
Hide file tree
Showing 4,358 changed files with 974,960 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 1 addition & 0 deletions .graalvmrevision
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
285d51520d4c
57 changes: 57 additions & 0 deletions .hgignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# use glob syntax
syntax: glob

TEST-*
*.class
*.pyc
*.log
*.iml
log*.txt
manifest*
^core
*.swp
generated-classes.jar
.#*
.metadata
*.orig
.DS_Store
Maxine.ipr
Maxine.iws
build.xml
nbproject
maxine-tester
test-logs.zip
mx/.checkstyle*.timestamp
mx/env
mx/includes
mx/checkstyle-timestamps
mx/eclipse-launches
*~
*.cfg
vee2010-results
Base/loaded-classes.jar
*.pyc
.classpath
.project
.settings/org.eclipse.jdt.core.prefs
.settings/org.eclipse.jdt.ui.prefs

# switch to regexp syntax
syntax: regexp
^TEST-.*
^manifest.*
^[^/]*\.log
^[^/]*\.jar
^[^/]*/bin/
^[^/]*/build/
^[^/]*/generated/
^[^/]*/dist/
^[^/]*/nbproject/private
^[^/]*/trace.*
^trace.*
^dist/
^scratch/
^xref/
^out/
javadoc/
wikidoc/
12 changes: 12 additions & 0 deletions com.oracle.max.asm/.checkstyle
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<fileset-config file-format-version="1.2.0" simple-config="true">
<local-check-config description="" location="/com.oracle.max.base/.checkstyle_checks.xml" name="Checks" type="project">
<additional-data name="protect-config-file" value="false"/>
</local-check-config>
<fileset check-config-name="Checks" enabled="true" local="true" name="all">
<file-match-pattern include-pattern="true" match-pattern="."/>
</fileset>
<filter check-config-name="Checks" enabled="true" local="true" name="all">
<filter-data value="java"/>
</filter>
</fileset-config>
68 changes: 68 additions & 0 deletions com.oracle.max.asm/src/com/oracle/max/asm/AbstractAssembler.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
/*
* Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package com.oracle.max.asm;

import com.sun.cri.ci.*;
import com.sun.cri.ci.CiArchitecture.*;

/**
* The platform-independent base class for the assembler.
*/
public abstract class AbstractAssembler {
public final CiTarget target;
public final Buffer codeBuffer;

public AbstractAssembler(CiTarget target) {
this.target = target;

if (target.arch.byteOrder == ByteOrder.BigEndian) {
this.codeBuffer = new Buffer.BigEndian();
} else {
this.codeBuffer = new Buffer.LittleEndian();
}
}

public final void bind(Label l) {
assert !l.isBound() : "can bind label only once";
l.bind(codeBuffer.position());
l.patchInstructions(this);
}

protected abstract void patchJumpTarget(int branch, int target);

protected final void emitByte(int x) {
codeBuffer.emitByte(x);
}

protected final void emitShort(int x) {
codeBuffer.emitShort(x);
}

protected final void emitInt(int x) {
codeBuffer.emitInt(x);
}

protected final void emitLong(long x) {
codeBuffer.emitLong(x);
}
}
33 changes: 33 additions & 0 deletions com.oracle.max.asm/src/com/oracle/max/asm/AsmOptions.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* Copyright (c) 2011, 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package com.oracle.max.asm;

public class AsmOptions {
public static int InitialCodeBufferSize = 232;
public static int Atomics = 0;
public static boolean UseNormalNop = true;
public static boolean UseAddressNop = true;
public static boolean UseIncDec = false;
public static boolean UseXmmLoadAndClearUpper = true;
public static boolean UseXmmRegToRegMoveAll = false;
}
Loading

0 comments on commit 9c82143

Please sign in to comment.