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

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

Issue 11275184: First draft of the sh4 port Base URL: http://github.com/v8/v8.git@master
Patch Set: Use GYP and fixe some typos Created 8 years, 1 month 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
« no previous file with comments | « test/cctest/test-macro-assembler-sh4.cc ('k') | test/cctest/test-regressions-sh4.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 #ifdef V8_TARGET_ARCH_ARM 47 #ifdef V8_TARGET_ARCH_ARM
48 #include "arm/assembler-arm.h" 48 #include "arm/assembler-arm.h"
49 #include "arm/macro-assembler-arm.h" 49 #include "arm/macro-assembler-arm.h"
50 #include "arm/regexp-macro-assembler-arm.h" 50 #include "arm/regexp-macro-assembler-arm.h"
51 #endif 51 #endif
52 #ifdef V8_TARGET_ARCH_MIPS 52 #ifdef V8_TARGET_ARCH_MIPS
53 #include "mips/assembler-mips.h" 53 #include "mips/assembler-mips.h"
54 #include "mips/macro-assembler-mips.h" 54 #include "mips/macro-assembler-mips.h"
55 #include "mips/regexp-macro-assembler-mips.h" 55 #include "mips/regexp-macro-assembler-mips.h"
56 #endif 56 #endif
57 #ifdef V8_TARGET_ARCH_SH4
58 #include "sh4/assembler-sh4.h"
59 #include "sh4/macro-assembler-sh4.h"
60 #include "sh4/regexp-macro-assembler-sh4.h"
61 #endif
57 #ifdef V8_TARGET_ARCH_X64 62 #ifdef V8_TARGET_ARCH_X64
58 #include "x64/assembler-x64.h" 63 #include "x64/assembler-x64.h"
59 #include "x64/macro-assembler-x64.h" 64 #include "x64/macro-assembler-x64.h"
60 #include "x64/regexp-macro-assembler-x64.h" 65 #include "x64/regexp-macro-assembler-x64.h"
61 #endif 66 #endif
62 #ifdef V8_TARGET_ARCH_IA32 67 #ifdef V8_TARGET_ARCH_IA32
63 #include "ia32/assembler-ia32.h" 68 #include "ia32/assembler-ia32.h"
64 #include "ia32/macro-assembler-ia32.h" 69 #include "ia32/macro-assembler-ia32.h"
65 #include "ia32/regexp-macro-assembler-ia32.h" 70 #include "ia32/regexp-macro-assembler-ia32.h"
66 #endif 71 #endif
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 #ifndef V8_INTERPRETED_REGEXP 702 #ifndef V8_INTERPRETED_REGEXP
698 703
699 #if V8_TARGET_ARCH_IA32 704 #if V8_TARGET_ARCH_IA32
700 typedef RegExpMacroAssemblerIA32 ArchRegExpMacroAssembler; 705 typedef RegExpMacroAssemblerIA32 ArchRegExpMacroAssembler;
701 #elif V8_TARGET_ARCH_X64 706 #elif V8_TARGET_ARCH_X64
702 typedef RegExpMacroAssemblerX64 ArchRegExpMacroAssembler; 707 typedef RegExpMacroAssemblerX64 ArchRegExpMacroAssembler;
703 #elif V8_TARGET_ARCH_ARM 708 #elif V8_TARGET_ARCH_ARM
704 typedef RegExpMacroAssemblerARM ArchRegExpMacroAssembler; 709 typedef RegExpMacroAssemblerARM ArchRegExpMacroAssembler;
705 #elif V8_TARGET_ARCH_MIPS 710 #elif V8_TARGET_ARCH_MIPS
706 typedef RegExpMacroAssemblerMIPS ArchRegExpMacroAssembler; 711 typedef RegExpMacroAssemblerMIPS ArchRegExpMacroAssembler;
712 #elif V8_TARGET_ARCH_SH4
713 typedef RegExpMacroAssemblerSH4 ArchRegExpMacroAssembler;
707 #endif 714 #endif
708 715
709 class ContextInitializer { 716 class ContextInitializer {
710 public: 717 public:
711 ContextInitializer() 718 ContextInitializer()
712 : env_(), scope_(), zone_(Isolate::Current()->runtime_zone(), 719 : env_(), scope_(), zone_(Isolate::Current()->runtime_zone(),
713 DELETE_ON_EXIT) { 720 DELETE_ON_EXIT) {
714 env_ = v8::Context::New(); 721 env_ = v8::Context::New();
715 env_->Enter(); 722 env_->Enter();
716 } 723 }
(...skipping 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after
1802 ZoneList<CharacterRange> first_only(4, Isolate::Current()->runtime_zone()); 1809 ZoneList<CharacterRange> first_only(4, Isolate::Current()->runtime_zone());
1803 ZoneList<CharacterRange> second_only(4, Isolate::Current()->runtime_zone()); 1810 ZoneList<CharacterRange> second_only(4, Isolate::Current()->runtime_zone());
1804 ZoneList<CharacterRange> both(4, Isolate::Current()->runtime_zone()); 1811 ZoneList<CharacterRange> both(4, Isolate::Current()->runtime_zone());
1805 } 1812 }
1806 1813
1807 1814
1808 TEST(Graph) { 1815 TEST(Graph) {
1809 V8::Initialize(NULL); 1816 V8::Initialize(NULL);
1810 Execute("\\b\\w+\\b", false, true, true); 1817 Execute("\\b\\w+\\b", false, true, true);
1811 } 1818 }
OLDNEW
« no previous file with comments | « test/cctest/test-macro-assembler-sh4.cc ('k') | test/cctest/test-regressions-sh4.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698