| Index: test/lexer/cornercases/utf-endlines.js
|
| diff --git a/src/hydrogen-check-elimination.h b/test/lexer/cornercases/utf-endlines.js
|
| similarity index 68%
|
| copy from src/hydrogen-check-elimination.h
|
| copy to test/lexer/cornercases/utf-endlines.js
|
| index fa01964f6faf091c3f2504b6d2cfe416e0a09b16..8ac1ee2fa895d691403ed0f6865a7dfd312b9a8c 100644
|
| --- a/src/hydrogen-check-elimination.h
|
| +++ b/test/lexer/cornercases/utf-endlines.js
|
| @@ -25,28 +25,31 @@
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -#ifndef V8_HYDROGEN_CHECK_ELIMINATION_H_
|
| -#define V8_HYDROGEN_CHECK_ELIMINATION_H_
|
| +// The "-->" at the beginning of a line is a weird SpiderMonkey compatibility
|
| +// hack.
|
|
|
| -#include "hydrogen.h"
|
| +// This file tests if it's recognized after various Unicode new line markers:
|
|
|
| -namespace v8 {
|
| -namespace internal {
|
| +"Line feed":
|
| +--> break
|
|
|
| +// Vertical tab is not recognized as a newline.
|
| +"Vertical tab":--> case
|
|
|
| -// Remove CheckMaps instructions through flow- and branch-sensitive analysis.
|
| -class HCheckEliminationPhase : public HPhase {
|
| - public:
|
| - explicit HCheckEliminationPhase(HGraph* graph)
|
| - : HPhase("H_Check Elimination", graph) { }
|
| +// Form feed is not recognized as a newline.
|
| +"Form feed":--> catch
|
|
|
| - void Run();
|
| +"Carriage return":
|
| --> const
|
|
|
| - private:
|
| - void EliminateLocalChecks(HBasicBlock* block);
|
| -};
|
| +"Carriage return and line feed:"
|
| +--> continue
|
|
|
| +// Next line is not regonized as a newline, instead it's recognized as an identifier.
|
| +"Next line":
|
| +--> debugger
|
|
|
| -} } // namespace v8::internal
|
| +// Line separator is not recognized as a newline, instead it's ILLEGAL.
|
| +//"Line separator":
--> default
|
|
|
| -#endif // V8_HYDROGEN_CHECK_ELIMINATION_H_
|
| +// Paragraph separator is not recognized as a newline, instead it's ILLEGAL.
|
| +//"Paragraph separator":
--> delete
|
|
|