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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 Handle<String> Factory::NewStringFromUtf8(Vector<const char> string, 265 Handle<String> Factory::NewStringFromUtf8(Vector<const char> string,
266 PretenureFlag pretenure) { 266 PretenureFlag pretenure) {
267 CALL_HEAP_FUNCTION( 267 CALL_HEAP_FUNCTION(
268 isolate(), 268 isolate(),
269 isolate()->heap()->AllocateStringFromUtf8(string, pretenure), 269 isolate()->heap()->AllocateStringFromUtf8(string, pretenure),
270 String); 270 String);
271 } 271 }
272 272
273 273
274 Handle<String> Factory::NewStringFromTwoByte(Vector<const uc16> string, 274 Handle<String> Factory::NewStringFromTwoByte(Vector<const uc16> string,
275 bool check_for_one_byte,
275 PretenureFlag pretenure) { 276 PretenureFlag pretenure) {
276 CALL_HEAP_FUNCTION( 277 CALL_HEAP_FUNCTION(
277 isolate(), 278 isolate(),
278 isolate()->heap()->AllocateStringFromTwoByte(string, pretenure), 279 isolate()->heap()->AllocateStringFromTwoByte(
280 string, check_for_one_byte, pretenure),
279 String); 281 String);
280 } 282 }
281 283
282 284
283 Handle<SeqOneByteString> Factory::NewRawOneByteString(int length, 285 Handle<SeqOneByteString> Factory::NewRawOneByteString(int length,
284 PretenureFlag pretenure) { 286 PretenureFlag pretenure) {
285 CALL_HEAP_FUNCTION( 287 CALL_HEAP_FUNCTION(
286 isolate(), 288 isolate(),
287 isolate()->heap()->AllocateRawOneByteString(length, pretenure), 289 isolate()->heap()->AllocateRawOneByteString(length, pretenure),
288 SeqOneByteString); 290 SeqOneByteString);
(...skipping 1702 matching lines...) Expand 10 before | Expand all | Expand 10 after
1991 return Handle<Object>::null(); 1993 return Handle<Object>::null();
1992 } 1994 }
1993 1995
1994 1996
1995 Handle<Object> Factory::ToBoolean(bool value) { 1997 Handle<Object> Factory::ToBoolean(bool value) {
1996 return value ? true_value() : false_value(); 1998 return value ? true_value() : false_value();
1997 } 1999 }
1998 2000
1999 2001
2000 } } // namespace v8::internal 2002 } } // namespace v8::internal
OLDNEW
« 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