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

Side by Side Diff: src/jsregexp.cc

Issue 549079: Support for MIPS in architecture independent files.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 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
OLDNEW
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #include "regexp-macro-assembler-irregexp.h" 43 #include "regexp-macro-assembler-irregexp.h"
44 #include "regexp-stack.h" 44 #include "regexp-stack.h"
45 45
46 #ifdef V8_NATIVE_REGEXP 46 #ifdef V8_NATIVE_REGEXP
47 #if V8_TARGET_ARCH_IA32 47 #if V8_TARGET_ARCH_IA32
48 #include "ia32/regexp-macro-assembler-ia32.h" 48 #include "ia32/regexp-macro-assembler-ia32.h"
49 #elif V8_TARGET_ARCH_X64 49 #elif V8_TARGET_ARCH_X64
50 #include "x64/regexp-macro-assembler-x64.h" 50 #include "x64/regexp-macro-assembler-x64.h"
51 #elif V8_TARGET_ARCH_ARM 51 #elif V8_TARGET_ARCH_ARM
52 #include "arm/regexp-macro-assembler-arm.h" 52 #include "arm/regexp-macro-assembler-arm.h"
53 #elif V8_TARGET_ARCH_MIPS
Søren Thygesen Gjesse 2010/01/19 22:59:12 I think you can safely ignore native RegExp for MI
Alexandre 2010/01/22 23:08:42 Removed On 2010/01/19 22:59:12, Søren Gjesse wrote
54 #include "mips/macro-assembler-mips.h"
55 #include "mips/regexp-macro-assembler-mips.h"
53 #else 56 #else
54 #error Unsupported target architecture. 57 #error Unsupported target architecture.
55 #endif 58 #endif
56 #endif 59 #endif
57 60
58 #include "interpreter-irregexp.h" 61 #include "interpreter-irregexp.h"
59 62
60 63
61 namespace v8 { 64 namespace v8 {
62 namespace internal { 65 namespace internal {
(...skipping 4405 matching lines...) Expand 10 before | Expand all | Expand 10 after
4468 NativeRegExpMacroAssembler::Mode mode = 4471 NativeRegExpMacroAssembler::Mode mode =
4469 is_ascii ? NativeRegExpMacroAssembler::ASCII 4472 is_ascii ? NativeRegExpMacroAssembler::ASCII
4470 : NativeRegExpMacroAssembler::UC16; 4473 : NativeRegExpMacroAssembler::UC16;
4471 4474
4472 #if V8_TARGET_ARCH_IA32 4475 #if V8_TARGET_ARCH_IA32
4473 RegExpMacroAssemblerIA32 macro_assembler(mode, (data->capture_count + 1) * 2); 4476 RegExpMacroAssemblerIA32 macro_assembler(mode, (data->capture_count + 1) * 2);
4474 #elif V8_TARGET_ARCH_X64 4477 #elif V8_TARGET_ARCH_X64
4475 RegExpMacroAssemblerX64 macro_assembler(mode, (data->capture_count + 1) * 2); 4478 RegExpMacroAssemblerX64 macro_assembler(mode, (data->capture_count + 1) * 2);
4476 #elif V8_TARGET_ARCH_ARM 4479 #elif V8_TARGET_ARCH_ARM
4477 RegExpMacroAssemblerARM macro_assembler(mode, (data->capture_count + 1) * 2); 4480 RegExpMacroAssemblerARM macro_assembler(mode, (data->capture_count + 1) * 2);
4481 #elif V8_TARGET_ARCH_MIPS
Søren Thygesen Gjesse 2010/01/19 22:59:12 I think you can safely ignore native RegExp for MI
Alexandre 2010/01/22 23:08:42 Removed. On 2010/01/19 22:59:12, Søren Gjesse wrot
4482 RegExpMacroAssemblerMIPS macro_assembler(mode, (data->capture_count + 1) * 2);
4478 #endif 4483 #endif
4479 4484
4480 #else // ! V8_NATIVE_REGEXP 4485 #else // ! V8_NATIVE_REGEXP
4481 // Interpreted regexp implementation. 4486 // Interpreted regexp implementation.
4482 EmbeddedVector<byte, 1024> codes; 4487 EmbeddedVector<byte, 1024> codes;
4483 RegExpMacroAssemblerIrregexp macro_assembler(codes); 4488 RegExpMacroAssemblerIrregexp macro_assembler(codes);
4484 #endif 4489 #endif
4485 4490
4486 return compiler.Assemble(&macro_assembler, 4491 return compiler.Assemble(&macro_assembler,
4487 node, 4492 node,
4488 data->capture_count, 4493 data->capture_count,
4489 pattern); 4494 pattern);
4490 } 4495 }
4491 4496
4492 }} // namespace v8::internal 4497 }} // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698