| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 | 61 |
| 62 # define BYTECODE(name) case BC_##name: \ | 62 # define BYTECODE(name) case BC_##name: \ |
| 63 TraceInterpreter(code_base, \ | 63 TraceInterpreter(code_base, \ |
| 64 pc, \ | 64 pc, \ |
| 65 backtrack_sp - backtrack_stack, \ | 65 backtrack_sp - backtrack_stack, \ |
| 66 current, \ | 66 current, \ |
| 67 BC_##name##_LENGTH, \ | 67 BC_##name##_LENGTH, \ |
| 68 #name); | 68 #name); |
| 69 #else | 69 #else |
| 70 # define BYTECODE(name) case BC_##name: | 70 # define BYTECODE(name) case BC_##name: // NOLINT |
| 71 #endif | 71 #endif |
| 72 | 72 |
| 73 | 73 |
| 74 | 74 |
| 75 static bool RawMatch(const byte* code_base, | 75 static bool RawMatch(const byte* code_base, |
| 76 Vector<const uc16> subject, | 76 Vector<const uc16> subject, |
| 77 int* registers, | 77 int* registers, |
| 78 int current) { | 78 int current) { |
| 79 const byte* pc = code_base; | 79 const byte* pc = code_base; |
| 80 int backtrack_stack[10000]; | 80 int backtrack_stack[10000]; |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 AssertNoAllocation a; | 290 AssertNoAllocation a; |
| 291 const byte* code_base = code_array->GetDataStartAddress(); | 291 const byte* code_base = code_array->GetDataStartAddress(); |
| 292 return RawMatch(code_base, | 292 return RawMatch(code_base, |
| 293 Vector<const uc16>(subject16->GetTwoByteData(), | 293 Vector<const uc16>(subject16->GetTwoByteData(), |
| 294 subject16->length()), | 294 subject16->length()), |
| 295 registers, | 295 registers, |
| 296 start_position); | 296 start_position); |
| 297 } | 297 } |
| 298 | 298 |
| 299 } } // namespace v8::internal | 299 } } // namespace v8::internal |
| OLD | NEW |