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

Side by Side Diff: src/assembler.cc

Issue 6709022: Re-establish mips basic infrastructure. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Created 9 years, 9 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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 #include "regexp-macro-assembler.h" 48 #include "regexp-macro-assembler.h"
49 #include "platform.h" 49 #include "platform.h"
50 // Include native regexp-macro-assembler. 50 // Include native regexp-macro-assembler.
51 #ifndef V8_INTERPRETED_REGEXP 51 #ifndef V8_INTERPRETED_REGEXP
52 #if V8_TARGET_ARCH_IA32 52 #if V8_TARGET_ARCH_IA32
53 #include "ia32/regexp-macro-assembler-ia32.h" 53 #include "ia32/regexp-macro-assembler-ia32.h"
54 #elif V8_TARGET_ARCH_X64 54 #elif V8_TARGET_ARCH_X64
55 #include "x64/regexp-macro-assembler-x64.h" 55 #include "x64/regexp-macro-assembler-x64.h"
56 #elif V8_TARGET_ARCH_ARM 56 #elif V8_TARGET_ARCH_ARM
57 #include "arm/regexp-macro-assembler-arm.h" 57 #include "arm/regexp-macro-assembler-arm.h"
58 #elif V8_TARGET_ARCH_MIPS
59 #include "mips/regexp-macro-assembler-mips.h"
58 #else // Unknown architecture. 60 #else // Unknown architecture.
59 #error "Unknown architecture." 61 #error "Unknown architecture."
60 #endif // Target architecture. 62 #endif // Target architecture.
61 #endif // V8_INTERPRETED_REGEXP 63 #endif // V8_INTERPRETED_REGEXP
62 64
63 namespace v8 { 65 namespace v8 {
64 namespace internal { 66 namespace internal {
65 67
66 68
67 const double DoubleConstant::min_int = kMinInt; 69 const double DoubleConstant::min_int = kMinInt;
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 #ifndef V8_INTERPRETED_REGEXP 757 #ifndef V8_INTERPRETED_REGEXP
756 758
757 ExternalReference ExternalReference::re_check_stack_guard_state() { 759 ExternalReference ExternalReference::re_check_stack_guard_state() {
758 Address function; 760 Address function;
759 #ifdef V8_TARGET_ARCH_X64 761 #ifdef V8_TARGET_ARCH_X64
760 function = FUNCTION_ADDR(RegExpMacroAssemblerX64::CheckStackGuardState); 762 function = FUNCTION_ADDR(RegExpMacroAssemblerX64::CheckStackGuardState);
761 #elif V8_TARGET_ARCH_IA32 763 #elif V8_TARGET_ARCH_IA32
762 function = FUNCTION_ADDR(RegExpMacroAssemblerIA32::CheckStackGuardState); 764 function = FUNCTION_ADDR(RegExpMacroAssemblerIA32::CheckStackGuardState);
763 #elif V8_TARGET_ARCH_ARM 765 #elif V8_TARGET_ARCH_ARM
764 function = FUNCTION_ADDR(RegExpMacroAssemblerARM::CheckStackGuardState); 766 function = FUNCTION_ADDR(RegExpMacroAssemblerARM::CheckStackGuardState);
767 #elif V8_TARGET_ARCH_MIPS
768 function = FUNCTION_ADDR(RegExpMacroAssemblerMIPS::CheckStackGuardState);
765 #else 769 #else
766 UNREACHABLE(); 770 UNREACHABLE();
767 #endif 771 #endif
768 return ExternalReference(Redirect(function)); 772 return ExternalReference(Redirect(function));
769 } 773 }
770 774
771 ExternalReference ExternalReference::re_grow_stack() { 775 ExternalReference ExternalReference::re_grow_stack() {
772 return ExternalReference( 776 return ExternalReference(
773 Redirect(FUNCTION_ADDR(NativeRegExpMacroAssembler::GrowStack))); 777 Redirect(FUNCTION_ADDR(NativeRegExpMacroAssembler::GrowStack)));
774 } 778 }
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
1004 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); 1008 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
1005 state_.written_position = state_.current_position; 1009 state_.written_position = state_.current_position;
1006 written = true; 1010 written = true;
1007 } 1011 }
1008 1012
1009 // Return whether something was written. 1013 // Return whether something was written.
1010 return written; 1014 return written;
1011 } 1015 }
1012 1016
1013 } } // namespace v8::internal 1017 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698