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

Unified Diff: src/dateparser.h

Issue 435003: Patch for allowing several V8 instances in process:... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/counters.cc ('k') | src/debug.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/dateparser.h
===================================================================
--- src/dateparser.h (revision 3427)
+++ src/dateparser.h (working copy)
@@ -68,6 +68,7 @@
explicit InputReader(Vector<Char> s)
: index_(0),
buffer_(s),
+ v8context_(v8_context()),
has_read_number_(false) {
Next();
}
@@ -101,7 +102,8 @@
bool Skip(uint32_t c) { return ch_ == c ? (Next(), true) : false; }
bool SkipWhiteSpace() {
- return Scanner::kIsWhiteSpace.get(ch_) ? (Next(), true) : false;
+ return v8context_->scanner_data_.
+ kIsWhiteSpace_.get(ch_) ? (Next(), true) : false;
}
bool SkipParentheses() {
@@ -134,6 +136,7 @@
uint32_t GetAsciiAlphaLower() const { return ch_ | 32; }
int index_;
+ V8Context* const v8context_;
Vector<Char> buffer_;
bool has_read_number_;
uint32_t ch_;
« no previous file with comments | « src/counters.cc ('k') | src/debug.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698