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

Unified Diff: src/regexp-stack.h

Issue 165443: X64: Implement RegExp natively. (Closed)
Patch Set: Addressed review comments. Created 11 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: src/regexp-stack.h
diff --git a/src/regexp-stack.h b/src/regexp-stack.h
index 6c090daa6526a8d0a4b6ee3b1d86aca24c01ae5b..eb6df6a92d0fd0a2fc50de4a39fff964abd6b576 100644
--- a/src/regexp-stack.h
+++ b/src/regexp-stack.h
@@ -48,7 +48,7 @@ class RegExpStack {
~RegExpStack(); // Releases the stack if it has grown.
// Gives the top of the memory used as stack.
- static Address stack_top() {
+ static Address stack_base() {
ASSERT(thread_local_.memory_size_ != 0);
return thread_local_.memory_ + thread_local_.memory_size_;
}
@@ -74,7 +74,7 @@ class RegExpStack {
private:
// Artificial limit used when no memory has been allocated.
- static const uint32_t kMemoryTop = 0xffffffff;
+ static const uintptr_t kMemoryTop = -1;
// Minimal size of allocated stack area.
static const size_t kMinimumStackSize = 1 * KB;

Powered by Google App Engine
This is Rietveld 408576698