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

Side by Side Diff: src/jsregexp.h

Issue 18590: Irregexp: Missing initialization of field. (Closed)
Patch Set: Created 11 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698