| OLD | NEW |
| 1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 bool RegExpMacroAssembler::CanReadUnaligned() { | 46 bool RegExpMacroAssembler::CanReadUnaligned() { |
| 47 #ifdef V8_HOST_CAN_READ_UNALIGNED | 47 #ifdef V8_HOST_CAN_READ_UNALIGNED |
| 48 return true; | 48 return true; |
| 49 #else | 49 #else |
| 50 return false; | 50 return false; |
| 51 #endif | 51 #endif |
| 52 } | 52 } |
| 53 | 53 |
| 54 | 54 |
| 55 #ifdef V8_NATIVE_REGEXP // Avoid unused code, e.g., on ARM. | 55 #ifndef V8_INTERPRETED_REGEXP // Avoid unused code, e.g., on ARM. |
| 56 | 56 |
| 57 NativeRegExpMacroAssembler::NativeRegExpMacroAssembler() { | 57 NativeRegExpMacroAssembler::NativeRegExpMacroAssembler() { |
| 58 } | 58 } |
| 59 | 59 |
| 60 | 60 |
| 61 NativeRegExpMacroAssembler::~NativeRegExpMacroAssembler() { | 61 NativeRegExpMacroAssembler::~NativeRegExpMacroAssembler() { |
| 62 } | 62 } |
| 63 | 63 |
| 64 | 64 |
| 65 bool NativeRegExpMacroAssembler::CanReadUnaligned() { | 65 bool NativeRegExpMacroAssembler::CanReadUnaligned() { |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 ASSERT(static_cast<size_t>(old_stack_base - stack_pointer) <= size); | 251 ASSERT(static_cast<size_t>(old_stack_base - stack_pointer) <= size); |
| 252 Address new_stack_base = RegExpStack::EnsureCapacity(size * 2); | 252 Address new_stack_base = RegExpStack::EnsureCapacity(size * 2); |
| 253 if (new_stack_base == NULL) { | 253 if (new_stack_base == NULL) { |
| 254 return NULL; | 254 return NULL; |
| 255 } | 255 } |
| 256 *stack_base = new_stack_base; | 256 *stack_base = new_stack_base; |
| 257 intptr_t stack_content_size = old_stack_base - stack_pointer; | 257 intptr_t stack_content_size = old_stack_base - stack_pointer; |
| 258 return new_stack_base - stack_content_size; | 258 return new_stack_base - stack_content_size; |
| 259 } | 259 } |
| 260 | 260 |
| 261 #endif // V8_NATIVE_REGEXP | 261 #endif // V8_INTERPRETED_REGEXP |
| 262 |
| 262 } } // namespace v8::internal | 263 } } // namespace v8::internal |
| OLD | NEW |