Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: test/cctest/test-regexp.cc

Issue 173567: ARM native regexps. (Closed)
Patch Set: Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 22 matching lines...) Expand all
33 #include "string-stream.h" 33 #include "string-stream.h"
34 #include "cctest.h" 34 #include "cctest.h"
35 #include "zone-inl.h" 35 #include "zone-inl.h"
36 #include "parser.h" 36 #include "parser.h"
37 #include "ast.h" 37 #include "ast.h"
38 #include "jsregexp.h" 38 #include "jsregexp.h"
39 #include "regexp-macro-assembler.h" 39 #include "regexp-macro-assembler.h"
40 #include "regexp-macro-assembler-irregexp.h" 40 #include "regexp-macro-assembler-irregexp.h"
41 #ifdef V8_NATIVE_REGEXP 41 #ifdef V8_NATIVE_REGEXP
42 #ifdef V8_TARGET_ARCH_ARM 42 #ifdef V8_TARGET_ARCH_ARM
43 #include "arm/macro-assembler-arm.h"
43 #include "arm/regexp-macro-assembler-arm.h" 44 #include "arm/regexp-macro-assembler-arm.h"
44 #endif 45 #endif
45 #ifdef V8_TARGET_ARCH_X64 46 #ifdef V8_TARGET_ARCH_X64
46 #include "x64/macro-assembler-x64.h" 47 #include "x64/macro-assembler-x64.h"
47 #include "x64/regexp-macro-assembler-x64.h" 48 #include "x64/regexp-macro-assembler-x64.h"
48 #endif 49 #endif
49 #ifdef V8_TARGET_ARCH_IA32 50 #ifdef V8_TARGET_ARCH_IA32
50 #include "ia32/macro-assembler-ia32.h" 51 #include "ia32/macro-assembler-ia32.h"
51 #include "ia32/regexp-macro-assembler-ia32.h" 52 #include "ia32/regexp-macro-assembler-ia32.h"
52 #endif 53 #endif
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 } 599 }
599 } 600 }
600 } 601 }
601 602
602 603
603 // Tests of interpreter. 604 // Tests of interpreter.
604 605
605 606
606 #ifdef V8_NATIVE_REGEXP 607 #ifdef V8_NATIVE_REGEXP
607 608
608 #ifdef V8_TARGET_ARCH_IA32 609 #if V8_TARGET_ARCH_IA32
609 typedef RegExpMacroAssemblerIA32 ArchRegExpMacroAssembler; 610 typedef RegExpMacroAssemblerIA32 ArchRegExpMacroAssembler;
610 #endif 611 #elif V8_TARGET_ARCH_X64
611 #ifdef V8_TARGET_ARCH_X64
612 typedef RegExpMacroAssemblerX64 ArchRegExpMacroAssembler; 612 typedef RegExpMacroAssemblerX64 ArchRegExpMacroAssembler;
613 #elif V8_TARGET_ARCH_ARM
614 typedef RegExpMacroAssemblerARM ArchRegExpMacroAssembler;
613 #endif 615 #endif
614 616
615 class ContextInitializer { 617 class ContextInitializer {
616 public: 618 public:
617 ContextInitializer() 619 ContextInitializer()
618 : env_(), scope_(), zone_(DELETE_ON_EXIT), stack_guard_() { 620 : env_(), scope_(), zone_(DELETE_ON_EXIT), stack_guard_() {
619 env_ = v8::Context::New(); 621 env_ = v8::Context::New();
620 env_->Enter(); 622 env_->Enter();
621 } 623 }
622 ~ContextInitializer() { 624 ~ContextInitializer() {
(...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after
1542 CHECK(!InClass(i, excluded)); 1544 CHECK(!InClass(i, excluded));
1543 } 1545 }
1544 } 1546 }
1545 } 1547 }
1546 1548
1547 1549
1548 TEST(Graph) { 1550 TEST(Graph) {
1549 V8::Initialize(NULL); 1551 V8::Initialize(NULL);
1550 Execute("(?:(?:x(.))?\1)+$", false, true, true); 1552 Execute("(?:(?:x(.))?\1)+$", false, true, true);
1551 } 1553 }
OLDNEW
« src/serialize.cc ('K') | « test/cctest/test-assembler-arm.cc ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698