| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-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 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1098 ActionNode::Type type_; | 1098 ActionNode::Type type_; |
| 1099 int reg_; | 1099 int reg_; |
| 1100 DeferredAction* next_; | 1100 DeferredAction* next_; |
| 1101 friend class Trace; | 1101 friend class Trace; |
| 1102 }; | 1102 }; |
| 1103 | 1103 |
| 1104 class DeferredCapture : public DeferredAction { | 1104 class DeferredCapture : public DeferredAction { |
| 1105 public: | 1105 public: |
| 1106 DeferredCapture(int reg, bool is_capture, Trace* trace) | 1106 DeferredCapture(int reg, bool is_capture, Trace* trace) |
| 1107 : DeferredAction(ActionNode::STORE_POSITION, reg), | 1107 : DeferredAction(ActionNode::STORE_POSITION, reg), |
| 1108 cp_offset_(trace->cp_offset()) { } | 1108 cp_offset_(trace->cp_offset()), |
| 1109 is_capture_(is_capture) { } |
| 1109 int cp_offset() { return cp_offset_; } | 1110 int cp_offset() { return cp_offset_; } |
| 1110 bool is_capture() { return is_capture_; } | 1111 bool is_capture() { return is_capture_; } |
| 1111 private: | 1112 private: |
| 1112 int cp_offset_; | 1113 int cp_offset_; |
| 1113 bool is_capture_; | 1114 bool is_capture_; |
| 1114 void set_cp_offset(int cp_offset) { cp_offset_ = cp_offset; } | 1115 void set_cp_offset(int cp_offset) { cp_offset_ = cp_offset; } |
| 1115 }; | 1116 }; |
| 1116 | 1117 |
| 1117 class DeferredSetRegister : public DeferredAction { | 1118 class DeferredSetRegister : public DeferredAction { |
| 1118 public: | 1119 public: |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1319 Handle<String> pattern, | 1320 Handle<String> pattern, |
| 1320 bool is_ascii); | 1321 bool is_ascii); |
| 1321 | 1322 |
| 1322 static void DotPrint(const char* label, RegExpNode* node, bool ignore_case); | 1323 static void DotPrint(const char* label, RegExpNode* node, bool ignore_case); |
| 1323 }; | 1324 }; |
| 1324 | 1325 |
| 1325 | 1326 |
| 1326 } } // namespace v8::internal | 1327 } } // namespace v8::internal |
| 1327 | 1328 |
| 1328 #endif // V8_JSREGEXP_H_ | 1329 #endif // V8_JSREGEXP_H_ |
| OLD | NEW |