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

Unified Diff: src/factory.cc

Issue 201953002: Experimental parser: small fixes (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 6 years, 9 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/factory.h ('k') | src/heap.h » ('j') | src/lexer/lexer-shell.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/factory.cc
diff --git a/src/factory.cc b/src/factory.cc
index 6f86647ef5911348cda4fa55bb590e39d4334b27..0f4ef0676536226011c9d4668052d35be14bf2ab 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -272,10 +272,12 @@ Handle<String> Factory::NewStringFromUtf8(Vector<const char> string,
Handle<String> Factory::NewStringFromTwoByte(Vector<const uc16> string,
+ bool check_for_one_byte,
PretenureFlag pretenure) {
CALL_HEAP_FUNCTION(
isolate(),
- isolate()->heap()->AllocateStringFromTwoByte(string, pretenure),
+ isolate()->heap()->AllocateStringFromTwoByte(
+ string, check_for_one_byte, pretenure),
String);
}
« no previous file with comments | « src/factory.h ('k') | src/heap.h » ('j') | src/lexer/lexer-shell.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698