From 49233e234e5c787396cadb2cea33b31ae0cd65c1 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Wed, 20 Jun 2012 13:01:08 +0200 Subject: Imported WebKit commit 3a8c29f35d00659d2ce7a0ccdfa8304f14e82327 (http://svn.webkit.org/repository/webkit/trunk@120813) New snapshot with Windows build fixes --- .../assembler/AbstractMacroAssembler.h | 24 +++++++++------------- 1 file changed, 10 insertions(+), 14 deletions(-) (limited to 'Source/JavaScriptCore/assembler/AbstractMacroAssembler.h') diff --git a/Source/JavaScriptCore/assembler/AbstractMacroAssembler.h b/Source/JavaScriptCore/assembler/AbstractMacroAssembler.h index a0039cb52..27b8a58d1 100644 --- a/Source/JavaScriptCore/assembler/AbstractMacroAssembler.h +++ b/Source/JavaScriptCore/assembler/AbstractMacroAssembler.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008 Apple Inc. All rights reserved. + * Copyright (C) 2008, 2012 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -48,6 +48,7 @@ namespace JSC { class LinkBuffer; class RepatchBuffer; +class Watchpoint; namespace DFG { class CorrectableJumpPoint; } @@ -70,7 +71,6 @@ public: // The following types are used as operands to MacroAssembler operations, // describing immediate and memory operands to the instructions to be planted. - enum Scale { TimesOne, TimesTwo, @@ -279,6 +279,7 @@ public: friend class Jump; friend class MacroAssemblerCodeRef; friend class LinkBuffer; + friend class Watchpoint; public: Label() @@ -559,6 +560,13 @@ public: return Label(this); } + Label watchpointLabel() + { + Label result; + result.m_label = m_assembler.labelForWatchpoint(); + return result; + } + Label align() { m_assembler.align(16); @@ -655,18 +663,6 @@ protected: { return AssemblerType::readPointer(dataLabelPtr.dataLocation()); } - - static void unreachableForPlatform() - { -#if COMPILER(CLANG) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wmissing-noreturn" - ASSERT_NOT_REACHED(); -#pragma clang diagnostic pop -#else - ASSERT_NOT_REACHED(); -#endif - } }; } // namespace JSC -- cgit v1.2.1