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

Unified Diff: src/macros.py

Issue 1137683003: Only record one in n line endings to save space. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix false detection of exotic newlines Created 5 years, 6 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
« no previous file with comments | « src/isolate.cc ('k') | src/messages.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/macros.py
diff --git a/src/macros.py b/src/macros.py
index 94f94c39e18c91321ca086bd1b7da8c32c87da34..9e07d421afb1b179073eba426f55f47bb719d110 100644
--- a/src/macros.py
+++ b/src/macros.py
@@ -305,6 +305,13 @@ macro ORDERED_HASH_MAP_CHAIN_AT(table, entry, numBuckets) = (FIXED_ARRAY_GET(tab
# Must match OrderedHashTable::kNotFound.
define NOT_FOUND = -1;
+# Line ends array constants - see v8::internal::Script
+define REDUCTION_INDEX = 0;
+define NUMBER_OF_LINES_INDEX = 1;
+define FIRST_LINE_END_INDEX = 2;
+define ASCII_NL = 10;
+define ASCII_CR = 13;
+
# Check whether debug is active.
define DEBUG_IS_ACTIVE = (%_DebugIsActive() != 0);
macro DEBUG_IS_STEPPING(function) = (%_DebugIsActive() != 0 && %DebugCallbackSupportsStepping(function));
« no previous file with comments | « src/isolate.cc ('k') | src/messages.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698