Index: src/extensions/i18n/footer.js |
diff --git a/test/cctest/test-cpu-x64.cc b/src/extensions/i18n/footer.js |
similarity index 79% |
copy from test/cctest/test-cpu-x64.cc |
copy to src/extensions/i18n/footer.js |
index a2c45cf8621e7aabb1879620b7a897f5a5ca56b8..ac33f1e24224957ff05d2cddef072987dd96942d 100644 |
--- a/test/cctest/test-cpu-x64.cc |
+++ b/src/extensions/i18n/footer.js |
@@ -24,21 +24,17 @@ |
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
+// limitations under the License. |
-#include "v8.h" |
+// ECMAScript 402 API implementation is broken into separate files for |
+// each service. The build system combines them together into one |
+// Intl namespace. |
-#include "cctest.h" |
-#include "cpu.h" |
+// Fix RegExp global state so we don't fail WebKit layout test: |
+// fast/js/regexp-caching.html |
+// It seems that 'g' or test() operations leave state changed. |
+var CLEANUP_RE = new RegExp(''); |
+CLEANUP_RE.test(''); |
-using namespace v8::internal; |
- |
- |
-TEST(RequiredFeaturesX64) { |
- // Test for the features required by every x64 CPU. |
- CPU cpu; |
- CHECK(cpu.has_fpu()); |
- CHECK(cpu.has_cmov()); |
- CHECK(cpu.has_mmx()); |
- CHECK(cpu.has_sse()); |
- CHECK(cpu.has_sse2()); |
-} |
+return Intl; |
+}()); |