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

Unified Diff: src/hydrogen.cc

Issue 567313003: RegExp: Add support for the ES6-proposed sticky flag (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add tests Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/heap/heap.h ('k') | src/jsregexp.h » ('j') | src/jsregexp.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen.cc
diff --git a/src/hydrogen.cc b/src/hydrogen.cc
index 8dbe46490318ed6c0f68452383824fd88e9e9245..b265a682b0128f031f9d211ff906ef24b8aee7dd 100644
--- a/src/hydrogen.cc
+++ b/src/hydrogen.cc
@@ -9699,6 +9699,16 @@ void HOptimizedGraphBuilder::GenerateTypedArrayMaxSizeInHeap(
}
+void HOptimizedGraphBuilder::GenerateHarmonyRegExps(
+ CallRuntime* expr) {
+ DCHECK(expr->arguments()->length() == 0);
+ HValue* value = FLAG_harmony_regexps
+ ? graph()->GetConstantTrue()
+ : graph()->GetConstantFalse();
+ return ast_context()->ReturnValue(value);
+}
+
+
void HOptimizedGraphBuilder::GenerateArrayBufferGetByteLength(
CallRuntime* expr) {
DCHECK(expr->arguments()->length() == 1);
« no previous file with comments | « src/heap/heap.h ('k') | src/jsregexp.h » ('j') | src/jsregexp.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698