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

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

Issue 143003013: Initial patch for a64. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « test/cctest/test-heap.cc ('k') | test/message/message.status » ('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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #ifdef V8_INTERPRETED_REGEXP 42 #ifdef V8_INTERPRETED_REGEXP
43 #include "interpreter-irregexp.h" 43 #include "interpreter-irregexp.h"
44 #else // V8_INTERPRETED_REGEXP 44 #else // V8_INTERPRETED_REGEXP
45 #include "macro-assembler.h" 45 #include "macro-assembler.h"
46 #include "code.h" 46 #include "code.h"
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_A64
53 #include "a64/assembler-a64.h"
54 #include "a64/macro-assembler-a64.h"
55 #include "a64/regexp-macro-assembler-a64.h"
56 #endif
52 #ifdef V8_TARGET_ARCH_MIPS 57 #ifdef V8_TARGET_ARCH_MIPS
53 #include "mips/assembler-mips.h" 58 #include "mips/assembler-mips.h"
54 #include "mips/macro-assembler-mips.h" 59 #include "mips/macro-assembler-mips.h"
55 #include "mips/regexp-macro-assembler-mips.h" 60 #include "mips/regexp-macro-assembler-mips.h"
56 #endif 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
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 698
694 699
695 #ifndef V8_INTERPRETED_REGEXP 700 #ifndef V8_INTERPRETED_REGEXP
696 701
697 #if V8_TARGET_ARCH_IA32 702 #if V8_TARGET_ARCH_IA32
698 typedef RegExpMacroAssemblerIA32 ArchRegExpMacroAssembler; 703 typedef RegExpMacroAssemblerIA32 ArchRegExpMacroAssembler;
699 #elif V8_TARGET_ARCH_X64 704 #elif V8_TARGET_ARCH_X64
700 typedef RegExpMacroAssemblerX64 ArchRegExpMacroAssembler; 705 typedef RegExpMacroAssemblerX64 ArchRegExpMacroAssembler;
701 #elif V8_TARGET_ARCH_ARM 706 #elif V8_TARGET_ARCH_ARM
702 typedef RegExpMacroAssemblerARM ArchRegExpMacroAssembler; 707 typedef RegExpMacroAssemblerARM ArchRegExpMacroAssembler;
708 #elif V8_TARGET_ARCH_A64
709 typedef RegExpMacroAssemblerA64 ArchRegExpMacroAssembler;
703 #elif V8_TARGET_ARCH_MIPS 710 #elif V8_TARGET_ARCH_MIPS
704 typedef RegExpMacroAssemblerMIPS ArchRegExpMacroAssembler; 711 typedef RegExpMacroAssemblerMIPS ArchRegExpMacroAssembler;
705 #endif 712 #endif
706 713
707 class ContextInitializer { 714 class ContextInitializer {
708 public: 715 public:
709 ContextInitializer() 716 ContextInitializer()
710 : scope_(v8::Isolate::GetCurrent()), 717 : scope_(v8::Isolate::GetCurrent()),
711 env_(v8::Context::New(v8::Isolate::GetCurrent())), 718 env_(v8::Context::New(v8::Isolate::GetCurrent())),
712 zone_(Isolate::Current()->runtime_zone(), DELETE_ON_EXIT) { 719 zone_(Isolate::Current()->runtime_zone(), DELETE_ON_EXIT) {
(...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after
1810 ZoneList<CharacterRange> first_only(4, Isolate::Current()->runtime_zone()); 1817 ZoneList<CharacterRange> first_only(4, Isolate::Current()->runtime_zone());
1811 ZoneList<CharacterRange> second_only(4, Isolate::Current()->runtime_zone()); 1818 ZoneList<CharacterRange> second_only(4, Isolate::Current()->runtime_zone());
1812 ZoneList<CharacterRange> both(4, Isolate::Current()->runtime_zone()); 1819 ZoneList<CharacterRange> both(4, Isolate::Current()->runtime_zone());
1813 } 1820 }
1814 1821
1815 1822
1816 TEST(Graph) { 1823 TEST(Graph) {
1817 V8::Initialize(NULL); 1824 V8::Initialize(NULL);
1818 Execute("\\b\\w+\\b", false, true, true); 1825 Execute("\\b\\w+\\b", false, true, true);
1819 } 1826 }
OLDNEW
« no previous file with comments | « test/cctest/test-heap.cc ('k') | test/message/message.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698