| OLD | NEW |
| 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 12 matching lines...) Expand all Loading... |
| 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | 27 |
| 28 #ifndef V8_ARM_REGEXP_MACRO_ASSEMBLER_ARM_H_ | 28 #ifndef V8_ARM_REGEXP_MACRO_ASSEMBLER_ARM_H_ |
| 29 #define V8_ARM_REGEXP_MACRO_ASSEMBLER_ARM_H_ | 29 #define V8_ARM_REGEXP_MACRO_ASSEMBLER_ARM_H_ |
| 30 | 30 |
| 31 #include "arm/assembler-arm.h" | 31 #include "arm/assembler-arm.h" |
| 32 #include "arm/assembler-arm-inl.h" | 32 #include "arm/assembler-arm-inl.h" |
| 33 #include "macro-assembler.h" |
| 33 | 34 |
| 34 namespace v8 { | 35 namespace v8 { |
| 35 namespace internal { | 36 namespace internal { |
| 36 | 37 |
| 37 | 38 |
| 38 #ifndef V8_INTERPRETED_REGEXP | 39 #ifndef V8_INTERPRETED_REGEXP |
| 39 class RegExpMacroAssemblerARM: public NativeRegExpMacroAssembler { | 40 class RegExpMacroAssemblerARM: public NativeRegExpMacroAssembler { |
| 40 public: | 41 public: |
| 41 RegExpMacroAssemblerARM(Mode mode, int registers_to_save, Zone* zone); | 42 RegExpMacroAssemblerARM(Mode mode, int registers_to_save, Zone* zone); |
| 42 virtual ~RegExpMacroAssemblerARM(); | 43 virtual ~RegExpMacroAssemblerARM(); |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 inline void Pop(Register target); | 217 inline void Pop(Register target); |
| 217 | 218 |
| 218 // Calls a C function and cleans up the frame alignment done by | 219 // Calls a C function and cleans up the frame alignment done by |
| 219 // by FrameAlign. The called function *is* allowed to trigger a garbage | 220 // by FrameAlign. The called function *is* allowed to trigger a garbage |
| 220 // collection, but may not take more than four arguments (no arguments | 221 // collection, but may not take more than four arguments (no arguments |
| 221 // passed on the stack), and the first argument will be a pointer to the | 222 // passed on the stack), and the first argument will be a pointer to the |
| 222 // return address. | 223 // return address. |
| 223 inline void CallCFunctionUsingStub(ExternalReference function, | 224 inline void CallCFunctionUsingStub(ExternalReference function, |
| 224 int num_arguments); | 225 int num_arguments); |
| 225 | 226 |
| 227 Isolate* isolate() const { return masm_->isolate(); } |
| 226 | 228 |
| 227 MacroAssembler* masm_; | 229 MacroAssembler* masm_; |
| 228 | 230 |
| 229 // Which mode to generate code for (ASCII or UC16). | 231 // Which mode to generate code for (ASCII or UC16). |
| 230 Mode mode_; | 232 Mode mode_; |
| 231 | 233 |
| 232 // One greater than maximal register index actually used. | 234 // One greater than maximal register index actually used. |
| 233 int num_registers_; | 235 int num_registers_; |
| 234 | 236 |
| 235 // Number of registers to output at the end (the saved registers | 237 // Number of registers to output at the end (the saved registers |
| (...skipping 14 matching lines...) Expand all Loading... |
| 250 Label check_preempt_label_; | 252 Label check_preempt_label_; |
| 251 Label stack_overflow_label_; | 253 Label stack_overflow_label_; |
| 252 }; | 254 }; |
| 253 | 255 |
| 254 #endif // V8_INTERPRETED_REGEXP | 256 #endif // V8_INTERPRETED_REGEXP |
| 255 | 257 |
| 256 | 258 |
| 257 }} // namespace v8::internal | 259 }} // namespace v8::internal |
| 258 | 260 |
| 259 #endif // V8_ARM_REGEXP_MACRO_ASSEMBLER_ARM_H_ | 261 #endif // V8_ARM_REGEXP_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |