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

Side by Side Diff: src/jsregexp.h

Issue 23494046: some random isolate threading (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « src/isolate.h ('k') | src/jsregexp.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1597 matching lines...) Expand 10 before | Expand all | Expand 10 after
1608 bool simple; 1608 bool simple;
1609 bool contains_anchor; 1609 bool contains_anchor;
1610 Handle<String> error; 1610 Handle<String> error;
1611 int capture_count; 1611 int capture_count;
1612 }; 1612 };
1613 1613
1614 1614
1615 class RegExpEngine: public AllStatic { 1615 class RegExpEngine: public AllStatic {
1616 public: 1616 public:
1617 struct CompilationResult { 1617 struct CompilationResult {
1618 explicit CompilationResult(const char* error_message) 1618 CompilationResult(Isolate* isolate, const char* error_message)
1619 : error_message(error_message), 1619 : error_message(error_message),
1620 code(Isolate::Current()->heap()->the_hole_value()), 1620 code(isolate->heap()->the_hole_value()),
1621 num_registers(0) {} 1621 num_registers(0) {}
1622 CompilationResult(Object* code, int registers) 1622 CompilationResult(Object* code, int registers)
1623 : error_message(NULL), 1623 : error_message(NULL),
1624 code(code), 1624 code(code),
1625 num_registers(registers) {} 1625 num_registers(registers) {}
1626 const char* error_message; 1626 const char* error_message;
1627 Object* code; 1627 Object* code;
1628 int num_registers; 1628 int num_registers;
1629 }; 1629 };
1630 1630
1631 static CompilationResult Compile(RegExpCompileData* input, 1631 static CompilationResult Compile(RegExpCompileData* input,
1632 bool ignore_case, 1632 bool ignore_case,
1633 bool global, 1633 bool global,
1634 bool multiline, 1634 bool multiline,
1635 Handle<String> pattern, 1635 Handle<String> pattern,
1636 Handle<String> sample_subject, 1636 Handle<String> sample_subject,
1637 bool is_ascii, Zone* zone); 1637 bool is_ascii, Zone* zone);
1638 1638
1639 static void DotPrint(const char* label, RegExpNode* node, bool ignore_case); 1639 static void DotPrint(const char* label, RegExpNode* node, bool ignore_case);
1640 }; 1640 };
1641 1641
1642 1642
1643 } } // namespace v8::internal 1643 } } // namespace v8::internal
1644 1644
1645 #endif // V8_JSREGEXP_H_ 1645 #endif // V8_JSREGEXP_H_
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | src/jsregexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698